Welcome to the Linux Foundation Forum!

k8s description in 5.14 is incorrect

Current version

spec:
    containers:
    - image: mysql:5.5
      env:
      - name: MYSQL_ROOT_PASSWORD
        valueFrom:
            secretKeyRef:
                name: mysql
                key: password
          name: mysql  # this line is wrong

correct version

spec:
    containers:
    - image: mysql:5.5
      env:
      - name: MYSQL_ROOT_PASSWORD
        valueFrom:
            secretKeyRef:
                name: mysql
                key: password

Comments

  • chrispokorni
    chrispokorni Posts: 2,337

    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:

    spec:
        containers:
        - image: mysql:5.5
          env:
          - name: MYSQL_ROOT_PASSWORD
            valueFrom:
                secretKeyRef:
                    name: mysql
                    key: password
          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

Categories

Upcoming Training