From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Lesson 15 lab solution: Managing security settings

Lesson 15 lab solution: Managing security settings - Kubernetes Tutorial

From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Lesson 15 lab solution: Managing security settings

- So to start with, I need kubectl create ns secure and kubectl create sa secure -n secure to create a service account. Then kubectl create deploy securedeploy -n secure. Oops, and --image is something, And finally, kubectl set serviceaccount -n secure deploy securedeploy secure. And that is updating the deployment. And the final check will be kubectl describe -n secure on the pod secure whatever. And there you can see that the service account secure is being used now.

Contents