-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecret-testpod.yml
More file actions
28 lines (28 loc) · 921 Bytes
/
Copy pathsecret-testpod.yml
File metadata and controls
28 lines (28 loc) · 921 Bytes
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
apiVersion: v1
kind: Pod
metadata:
name: secret-test-pod # changed from configmap-test-pod
namespace: default
labels:
name: secret-test-pod # changed from configmap-test-pod
spec:
containers:
- name: secret-test-pod # changed from configmap-test-pod
image: registry.k8s.io/busybox
command: ["/bin/sh", "-c", "env"]
env:
- name: USERNAME # changed from CONFIGMAP_MESSAGE
valueFrom:
secretKeyRef: # changed from configMapKeyRef
name: podsecret # changed from configmap-message
key: username # changed from message
- name: PASSWORD # changed from CONFIGMAP_WARNING
valueFrom:
secretKeyRef: # changed from configMapKeyRef
name: podsecret # changed from configmap-warning
key: password # changed from message
resources:
limits:
memory: "128Mi"
cpu: "500m"
restartPolicy: Never