aboutsummaryrefslogtreecommitdiff
path: root/flagfolder/testpod.yml
diff options
context:
space:
mode:
Diffstat (limited to 'flagfolder/testpod.yml')
-rw-r--r--flagfolder/testpod.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/flagfolder/testpod.yml b/flagfolder/testpod.yml
new file mode 100644
index 0000000..392d629
--- /dev/null
+++ b/flagfolder/testpod.yml
@@ -0,0 +1,31 @@
+apiVersion: v1
+kind: Secret
+metadata:
+ name: shell
+ namespace: default
+data:
+ foo: Zm9v
+ bar: YmFy
+---
+apiVersion: v1
+kind: Pod
+metadata:
+ name: shell
+ namespace: default
+spec:
+ volumes:
+ - name: secret-volume
+ secret:
+ secretName: shell
+ containers:
+ - name: shell
+ image: ubuntu:latest
+ command:
+ - sleep
+ - "infinity"
+ imagePullPolicy: IfNotPresent
+ volumeMounts:
+ - name: secret-volume
+ readOnly: true
+ mountPath: "/run/secrets/shell"
+ restartPolicy: Always