Skip to content

Instantly share code, notes, and snippets.

@psucodervn
Created April 9, 2019 12:40
Show Gist options
  • Save psucodervn/b229fdaaaba449b32ec20be744f94b2f to your computer and use it in GitHub Desktop.
Save psucodervn/b229fdaaaba449b32ec20be744f94b2f to your computer and use it in GitHub Desktop.
k8s
kubectl --namespace kube-system create serviceaccount tiller

kubectl create clusterrolebinding tiller-cluster-rule \
 --clusterrole=cluster-admin --serviceaccount=kube-system:tiller

kubectl --namespace kube-system patch deploy tiller-deploy \
 -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment