hue
Hue is an SQL Cloud Editor for Data Warehouses and Databases.
About this chart
Hue Chart
This is an Helm chart to easily start a Hue service.
Install
cd tools/kubernetes/helm/hue
View the configuration values.yaml, edit if needed and run:
helm install hue hue
values.yaml contains the most important parameters in the hue section with for example which database to use. The ini
section let you add any extra regular parameter.
Then follow-up the instructions printed on the screen for getting the URL to connect to Hue.
By default you should see these running containers:
kubectl get pods
NAME READY STATUS RESTARTS AGE
hue-4n2ck 1/1 Running 0 3h
postgres-hue-5jg77 1/1 Running 0 12d
And just copy paste the information printed on the screen or run
kubectl port-forward svc/hue 8888:8888 --address 0.0.0.0
and open-up http://localhost:8888
Uninstall
helm delete hue
Ingress
Minimal
microk8s.enable ingress
kubectl edit daemonsets nginx-ingress-microk8s-controller
And can edit --default-backend-service=$(POD_NAMESPACE)/default-http-backend.
NGINX
Follow https://kubernetes.github.io/ingress-nginx/deploy/#using-helm
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm install ingress-nginx ingress-nginx/ingress-nginx
And set ingress.create=true and ingress.type=nginx in values.yaml.
For SSL, one option is to check jetstack/cert-manager.
Using a local registry
e.g. with microk8s and helm3:
docker build . -t localhost:32000/hue:latest -f tools/docker/hue/Dockerfile
docker build . -t localhost:32000/nginx:latest -f tools/docker/nginx/Dockerfile --build-arg registry=localhost:32000 --build-arg tag=latest
docker push localhost:32000/hue:latest
docker push localhost:32000/nginx:latest
helm install hue hue --set image.registry=localhost:32000
helm delete hue
Deploy hue with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has hue 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charthue is pinned at v1.0.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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