Welcome to the Linux Foundation Forum!

Lab 6.4 YAML snippets are wrong

The two snippets of second.yaml in Lab 6.4 are exactly the same as the initial state of that file from Lab 6.1, without the changes that the instructions suggest should be there in step 2 and 6.

  1. ...Begin by adding two lines for the nginx image and name webserver, as found below...

No lines for an nginx image are shown.

  1. ...Edit the YAML file to comment out the setting of a UID for the entire pod

No commenting out of the pod-level runAsUser is shown (I assume this is what this refers to)

They also don't show any of the changes from 6.1-6.3 (setting service account, mounting volumes for secrets, adding capabilities).

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Posts: 8
    edited January 2019

    yep, i'm seeing the same issues!

  • i was able to get this section to work using this yaml for second.yml:

    1. apiVersion: v1
    2. kind: Pod
    3. metadata:
    4. name: secondapp
    5. spec:
    6. securityContext:
    7. runAsUser: 1000
    8. containers:
    9. - image: busybox
    10. name: secondapp
    11. command:
    12. - sleep
    13. - "3600"
    14. securityContext:
    15. runAsUser: 2000
    16. allowPrivilegeEscalation: false
    17. name: busy
    18. - image: nginx:latest
    19. name: webserver
  • What I found to work best is to follow the instructions at every step, and not to necessarily rely on the yaml snippets.

  • Posts: 1,000

    Hello,

    Yes, it seems the same source file was inserted into the document instead of a before and after, showing the edits. I will update the source and it will be included when the course next updates.

    Thank you for letting us know.

    Regards,

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training