|
|
6 年之前 | |
|---|---|---|
| .. | ||
| helm | 6 年之前 | |
| README.md | 6 年之前 | |
How to run Hue in Kubernetes.
Assuming you have a Kubernetes cluster configured with Helm installed and images pushed (if not, check the K8s Cluster section below).
Update the Hue pods:
kubectl delete pods `kubectl get pods | grep hue | grep -v postgres | cut -d" " -f1`
https://microk8s.io/#quick-start
sudo snap install microk8s --classicmicro
snap alias microk8s.kubectl kubectl
k8s.enable metrics-server dns
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
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.
All the images can currently can be built via Docker.