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
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
valueFrom:
secretKeyR ef:
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
name: myapp
key: PASSWORD