Welcome to the Linux Foundation Forum!

k8s description in 5.14 is incorrect

Current version

  1. spec:
  2. containers:
  3. - image: mysql:5.5
  4. env:
  5. - name: MYSQL_ROOT_PASSWORD
  6. valueFrom:
  7. secretKeyRef:
  8. name: mysql
  9. key: password
  10. name: mysql # this line is wrong

correct version

  1. spec:
  2. containers:
  3. - image: mysql:5.5
  4. env:
  5. - name: MYSQL_ROOT_PASSWORD
  6. valueFrom:
  7. secretKeyRef:
  8. name: mysql
  9. key: password

Comments

  • Posts: 2,453

    Hi @NargiT ,
    Thanks for bringing this to our attention. There is indeed a typo on the slide, but the correct configuration for this container would be:

    1. spec:
    2. containers:
    3. - image: mysql:5.5
    4. env:
    5. - name: MYSQL_ROOT_PASSWORD
    6. valueFrom:
    7. secretKeyRef:
    8. name: mysql
    9. key: password
    10. name: mysql # this line now is correct, but not indented properly on the slide

    The "name" in the last line should be aligned with "image", both part of this container's definition, where "image" passes the container image name, and "name" passes the container name.

    Regards,
    -Chris

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