nerdexam
Linux_Foundation

CKAD · Question #18

Update the Deployment app-1 in the frontend namespace to use the existing Serviceaccount app.

candidate@node-1 ~$ kubectl config use-context k8s Switched to context "k8s". candidate@node-1 ~$ kubectl set serviceaccount deployment app-1 app -n frontend deployment.apps/app-1 serviceaccount updated

Submitted by anna_se· May 4, 2026Application Environment, Configuration and Security

Question

Update the Deployment app-1 in the frontend namespace to use the existing Serviceaccount app.

Exhibits

CKAD question #18 exhibit 1
CKAD question #18 exhibit 2

Explanation

candidate@node-1 ~$ kubectl config use-context k8s Switched to context "k8s". candidate@node-1 ~$ kubectl set serviceaccount deployment app-1 app -n frontend deployment.apps/app-1 serviceaccount updated

Topics

#Deployment#ServiceAccount#Kubernetes Security#kubectl

Community Discussion

No community discussion yet for this question.

Full CKAD Practice