Welcome to the new 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).

Comments

  • EitanSuezEitanSuez Posts: 8
    edited January 30

    yep, i'm seeing the same issues!

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

    apiVersion: v1
    kind: Pod
    metadata:
      name: secondapp
    spec:
      securityContext:
        runAsUser: 1000
      containers:
      - image: busybox
        name: secondapp
        command:
        - sleep
        - "3600"
        securityContext:
          runAsUser: 2000
          allowPrivilegeEscalation: false
        name: busy
      - image: nginx:latest
        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.

  • serewiczserewicz Posts: 517

    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,

Sign In or Register to comment.