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

CKA study material · question 975 of 1000

How is the ServiceAccount sa-dev in namespace monitoring named as a subject to kubectl create rolebinding?

  1. --serviceaccount=sa-dev@monitoring
  2. --user=system:serviceaccount:monitoring:sa-dev
  3. --group=monitoring/sa-dev
  4. --serviceaccount=monitoring:sa-dev
Show the answer

Answer: D. --serviceaccount=monitoring:sa-dev

The --serviceaccount flag takes namespace:name. The system:serviceaccount: form is the RBAC username, used with --user rather than --serviceaccount.

Source: kubectl create rolebinding (Kubernetes) — Synopsis

Challenge yourself on this topic → Study as cards