minikube start --memory 4096 --cpus 4
$ curl -LO https://git.io/get_helm.sh
$ chmod 700 get_helm.sh
$ ./get_helm.sh
Use RBAC to grant access to Tiller
kubectl create serviceaccount --namespace kube-system tiller kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
Then, finally
helm init --service-account tiller --upgrade
In helm/container1/
helm dependency update
Then, in root directory
helm install --name container1 ./helm/container1/ --set image.tag=latest,image.repository=lejeunen/container1
Check pod status and logs
Proxy local port 9000 to POD port 9000
kubectl port-forward container1-5f8bcc6c44-dmcvb 9000:9000
We use the hash of the last git commit to tag the image, so that the new image is picked up by kubernetes. This follows the best practice to avoid "floating tags" such as latest.
See container1/deploy-last-commit.sh
helm install stable/traefik --name traefik --set dashboard.enabled=true,serviceType=NodePort,dashboard.domain=dashboard.traefik,rbac.enabled=true,service.nodePorts.http=30284 --namespace kube-system --tiller-namespace infra
kubectl port-forward --namespace kube-system traefik-8b7bdd879-fwvdk 8080:8080
play with ReplacePathRegex