Kubernetes Service Account Operations: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
=Details about the Namespace's Default Service Account= | =Details about the Namespace's Default Service Account= | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
kubectl -n < | kubectl -n <namespace> -o yaml get sa default | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 05:25, 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