Welcome to the Linux Foundation Forum!

Code snippet for Using Secrets via Environment Variables is wrong?

  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

Whereas the example shows in official docs has quite different layout:

  1. spec:
  2. containers:
  3. - name: mycontainer
  4. image: redis
  5. env:
  6. - name: SECRET_USERNAME
  7. valueFrom:
  8. secretKeyRef:
  9. name: mysecret
  10. key: username

Answers

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