Kubernetes

What the following in a Deployment configuration file means?

spec:
  containers:
    - name: USER_PASSWORD
      valueFrom:
        secretKeyRef:
          name: some-secret
          key: password

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

USER_PASSWORD environment variable will store the value from password key in the secret called "some-secret" In other words, you reference a value from a Kubernetes Secret.