Kubernetes Service Account Operations: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 11: | Line 11: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
kubectl -n <''namespace'' -o yaml get sa default | kubectl -n <''namespace'' -o yaml get sa default | ||
<syntaxhighlight | </syntaxhighlight> |
Revision as of 05:24, 3 September 2020
Internal
Create a Service Account
kubectl create serviceaccount -n <namespace> <service-account-name>
kubectl create serviceaccount -n blue blue-serviceaccount
Details about the Namespace's Default Service Account
kubectl -n <''namespace'' -o yaml get sa default