Which of the following flags can be used to enable RBAC in the Kubernetes API server? A) --authorization-config B) --enable-rbac C) --authorization-mode D) --rbac-enabled
Understand the Problem
The question is asking which flag is used to enable Role-Based Access Control (RBAC) in the Kubernetes API server. The answer would involve identifying the correct option from the list provided that relates to the configuration of RBAC within Kubernetes.
Answer
--authorization-mode
The final answer is --authorization-mode
Answer for screen readers
The final answer is --authorization-mode
More Information
To enable RBAC in Kubernetes, you need to set the API server's --authorization-mode
flag to include 'RBAC'. This flag accepts a comma-separated list of values, allowing you to specify multiple authorization modes.
Tips
A common mistake is confusing the --authorization-mode
with --authorization-config
. The latter is a configuration flag and not used for enabling RBAC directly.
Sources
AI-generated content may contain errors. Please verify critical information