data-fair

by data354

Helm chartv1.1.2App 3.0MITVerified publisher

A Helm chart for datafair project

About this chart

Data-fair

Data Fair and its ecosystem enable the implementation of a data sharing platform (internal or opendata) and visualizations. This platform can be aimed at the general public, who can access the data through adapted interactive visualizations, as well as at a more expert public who can access the data through APIs.

Prerequisites

Kubernetes 1.16+
Helm 3+

Managing package

Get Helm Repository Info

helm repo add data354-helm https://data354.github.io/helm
helm repo update
helm install [RELEASE_NAME] data354-helm/data-fair

Installing Helm Chart

helm install [RELEASE_NAME] data354-helm/data-fair

Note that the above command will install Superset into current namespace of your Kubernetes cluster. If you want to use another namespace specify it:

helm install [RELEASE_NAME] data354-helm/data-fair --namesape data-fair

data-fair namespace which must exist before.

Uninstalling Helm Chart

helm uninstall [RELEASE_NAME]

This removes all the Kubernetes components associated with the chart and deletes the release.

See helm uninstall for command documentation.

Upgrading Helm Chart

helm upgrade [RELEASE_NAME] data354-helm/data-fair

Overrides values

Define proxy address and port

If you are in a test environment like Minikube, this configuration will work without any problem.

proxy:
  public_address: 192.168.49.2 # Minikube host for testing
  scheme: http # Or https
  port: 32000
  nodePort: true

When you set the nodePort option to true, make sure you choose a port value between 30000 and 32767 so that it is accepted by kubernetes, because the nodeport service created uses the same defined port number.

In production you have to set the nodeport to false to avoid some conflicts, in this case a CLusterIp service is created. It would then be better to create an ingress resource to redirect external traffic to your service. Set public_address to the DNS record that resolves to your load balancer.

proxy:
  public_address: datafair.data354.com
  scheme: https # Or https
  port: 443
  nodePort: false

For now, this version of our chart does not have a built-in ingress resource. This feature will be added in a later version.

Prometheus Metrics

prometheus:
  enable: true
  metrics_path: /global-metrics
  scrape_interval: 120s

By default promteheus is enabled with this configuration. If you want to disable it :

helm install --set prometheus.enable=false [RELEASE_NAME] data354-helm/data-fair

Deploy data-fair with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has data-fair on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdata-fair is pinned at v1.1.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply