Skip to content

Instantly share code, notes, and snippets.

@hillaryd
Last active April 16, 2019 12:03
Show Gist options
  • Save hillaryd/6f290013a2a9cfd91bd56f1a7929295a to your computer and use it in GitHub Desktop.
Save hillaryd/6f290013a2a9cfd91bd56f1a7929295a to your computer and use it in GitHub Desktop.
How to add ServiceAccount to Deployment/Pod
kubectl patch deploy --namespace kube-system my-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"myaccount"}}}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment