Please help me with CKA course practice test security context question 2. I us . . .

emden Lee:
Please help me with CKA course practice test security context question 2. I used the commands on pic1, but it says the task is not completed on task 3 (pic2). My yaml file section (pic3). I couldn’t find anything wrong?? p.s. I tried again, it looks like we need to delete those extra lines in the yaml file otherwise that will be an issue?
image.png


Mohamed Ayman:
You need to add security context under containers section

Mohamed Ayman:
Like this:

spec:
    containers:
    - command:
      - sleep
      - "4800"
      image: ubuntu
      imagePullPolicy: Always
      name: ubuntu
      securityContext:
        runAsUser: 1010

Mohamed Ayman:
Check this GIF:
CKA-SecurityContextQ2.gif