Skip to content

Instantly share code, notes, and snippets.

@dwdraju
Last active June 23, 2018 08:42
Show Gist options
  • Save dwdraju/939956ecb8121719b4eddd7e3141d312 to your computer and use it in GitHub Desktop.
Save dwdraju/939956ecb8121719b4eddd7e3141d312 to your computer and use it in GitHub Desktop.
nginx ingress controller on Kubernetes k8s
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
helm init
helm install --name nginx-ingress stable/nginx-ingress --set rbac.create=true
annotations: kubernetes.io/ingress.class: nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment