Kubernetes Service Account Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 1: Line 1:
=Internal=
=Internal=
* [[Kubernetes Operations#Subjects|Kubernetes Operations]]
* [[Kubernetes Operations#Subjects|Kubernetes Operations]]
* [[Kubernetes_Security_Concepts#Service_Account|Kubernetes Security Concepts]]


=Create a Service Account=
=Create a Service Account=

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