Romain a3fc8145de HUE-8744 [k8s] Limit default interpreters 6 years ago
..
helm a3fc8145de HUE-8744 [k8s] Limit default interpreters 6 years ago
yaml 93e3e51542 HUE-8744 [k8s] Clean-up bunch of typos in the configs 6 years ago
README.md 425773e831 HUE-8743 [k8s] Split Hue yaml into different files 6 years ago

README.md

Hue on Kubernetes

How to run Hue in Kubernetes.

Quick Start

Assuming you have a Kubernetes cluster configured with Helm installed and images pushed (if not, check the K8s Cluster section below).

Hue

Update the Hue pods:

kubectl delete pods `kubectl get pods | grep hue | grep -v postgres | cut -d" " -f1`

K8s Cluster

Ubuntu

  • OS: Ubuntu 16.04 or 18.04.
  • Nodes: 1 primary instance of m3.medium (1CPU 3GB).

Quick start with https://microk8s.io/#quick-start

sudo snap install microk8s --classic

snap alias microk8s.kubectl kubectl

microk8s.enable metrics-server dns

And

sudo snap install helm --classic

helm init

If in Dev, for having the provisioner run properly:

kubectl create clusterrolebinding serviceaccounts-cluster-admin --clusterrole=cluster-admin --group=system:serviceaccounts

GKE

Install Helm onto GKE cluster requires creating a service account with the correct permissions:

kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
helm init --service-account tiller --upgrade

On GKE, this chart uses a LoadBalancer to route to Traefik rather than using the GKE HTTP LoadBalancer. This avoids creating global static ips.

Images

All the images are on Docker Hub or can be built via Docker at tools/docker.