Skip to content

Instantly share code, notes, and snippets.

@wuestkamp
Last active December 19, 2020 15:59
Show Gist options
  • Save wuestkamp/4c381e16afb49cc0e07927176221daa4 to your computer and use it in GitHub Desktop.
Save wuestkamp/4c381e16afb49cc0e07927176221daa4 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: secret-manager
name: secret-manager
namespace: ns-secure
spec:
volumes:
- name: sec-a2
secret:
secretName: sec-a2
serviceAccountName: secret-manager
containers:
- image: nginx
name: secret-manager
volumeMounts:
- name: sec-a2
mountPath: /etc/sec-a2
readOnly: true
env:
- name: SEC_A1
valueFrom:
secretKeyRef:
name: sec-a1
key: user
dnsPolicy: ClusterFirst
restartPolicy: Always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment