Kubernetes
Medium
Security
What is the purpose of a ServiceAccount in Kubernetes?
Select your answer:
Show answer and explanation
Answer: To provide an identity for processes running in a pod
Explanation
ServiceAccounts provide an identity for processes running in a pod. They are used to control which resources the pod can access through the Kubernetes API. Each namespace has a default ServiceAccount, but custom ones can be created for more fine-grained access control.
More medium Kubernetes questions
- Which command would you use to create a secret from a file?
- What is the purpose of a Kubernetes InitContainer?
- Which component is responsible for scheduling pods onto nodes?
- What is the purpose of a Kubernetes ResourceQuota?
- What is the difference between a RollingUpdate and a Recreate deployment strategy?
- Which command would you use to view the logs of a specific container in a multi-container pod?