Skip to content

Instantly share code, notes, and snippets.

@lachie83
Created May 23, 2017 05:10
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save lachie83/17c1fff4eb58cf75c5fb11a4957a64d2 to your computer and use it in GitHub Desktop.
Save lachie83/17c1fff4eb58cf75c5fb11a4957a64d2 to your computer and use it in GitHub Desktop.
kubectl -n kube-system create sa jenkins
kubectl create clusterrolebinding jenkins --clusterrole cluster-admin --serviceaccount=<namespace>:jenkins
@trahloff
Copy link

trahloff commented Oct 2, 2017

After running both commands I checked with kubectl auth can-i list pods --namespace <namespace> --as jenkins which returned a no. What did I wrong?

@FelipeMiranda
Copy link

What that 'sa' means?

@lukibahr
Copy link

@FelipeMiranda sa in short means serviceaccount and stands for the Kubernetes ServiceAccount API Object: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/

@lafada
Copy link

lafada commented Nov 8, 2021

@trahloff did you get your answer ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment