blob: 392d6293b5d4d10ecff69873b607b94af3ba8bfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|