Study. uk . com
  1. Home
  2. All questions
  3. Question 974

CKA study material · question 974 of 1000

A Role must allow reading Pods and their status subresource. How are both named to kubectl create role?

  1. --resource=pods --subresource=status
  2. --resource=pods.status
  3. --resource=pods,status
  4. --resource=pods,pods/status
Show the answer

Answer: D. --resource=pods,pods/status

Subresources are given in the resource list with a slash, exactly as they appear in an RBAC rule's resources field.

Source: kubectl create role (Kubernetes) — Examples

Challenge yourself on this topic → Study as cards