Comment 1 for bug 1858515

Revision history for this message
Camille Rodriguez (camille.rodriguez) wrote :

Similar situation here, I am trying to convert this type of yaml into a charm and I do not see how I can save the secret values directly into my pod environment variables.

apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: myapp-deployment
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: myapp
    spec:
      containers:
      - name: myapp
        image: myapp:2017-latest
        ports:
        - containerPort: 1234
        env:
        - name: MYAPP_PASSWORD
          valueFrom:
            secretKeyRef:
              name: myapp
              key: PASSWORD