summaryrefslogtreecommitdiffstats
path: root/kubernetes/secret-example/secret-example-pod.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/secret-example/secret-example-pod.yaml')
-rw-r--r--kubernetes/secret-example/secret-example-pod.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/kubernetes/secret-example/secret-example-pod.yaml b/kubernetes/secret-example/secret-example-pod.yaml
new file mode 100644
index 0000000..7e0fe25
--- /dev/null
+++ b/kubernetes/secret-example/secret-example-pod.yaml
@@ -0,0 +1,32 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: secretpod
+ labels:
+ name: secretpod
+ secrets_namespace: wordpress
+spec:
+ containers:
+ - image: fedora
+ name: secretpod
+ command:
+ - sleep
+ - "86400"
+ env:
+ - name: EXAMPLE_PASSWORD
+ value: mypassword
+ volumeMounts:
+ - name: secretvolume
+ mountPath: /secrets
+ readOnly: true
+ - name: custodia
+ mountPath: /custodia
+ readOnly: true
+ volumes:
+ - name: secretvolume
+ secret:
+ secretName: examplesecrets
+ - name: custodia
+ hostPath:
+ path: /var/lib/custodia/client
+