Kubernetes Service Account Operations: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
=Details about the Namespace's Default Service Account= | =Details about the Namespace's Default Service Account= | ||
<syntaxhighlight lang='bash'> | |||
kubectl -n <''namespace'' -o yaml get sa default | |||
<syntaxhighlight lang='bash'> |
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
<syntaxhighlight lang='bash'> kubectl -n <namespace -o yaml get sa default <syntaxhighlight lang='bash'>