forked from openshift-qe/v3-testfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpod-dapi-volume.yaml
40 lines (40 loc) · 1.08 KB
/
pod-dapi-volume.yaml
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
32
33
34
35
36
37
38
39
40
apiVersion: v1
kind: Pod
metadata:
name: pod-dapi-volume
labels:
region: r1
zone: z11
rack: a111
annotations:
build: one
builder: qe-one
spec:
#securityContext:
#fsGroup: 1234
containers:
- name: client-container
image: gcr.io/google_containers/busybox
command: ["sh", "-c", "while true; do if [[ -e /var/tmp/podinfo/labels ]]; then cat /var/tmp/podinfo/labels; fi; if [[ -e /var/tmp/podinfo/annotations ]]; then cat /var/tmp/podinfo/annotations; fi; sleep 5; done"]
securityContext:
privileged: false
volumeMounts:
- name: podinfo
mountPath: /var/tmp/podinfo
readOnly: false
volumes:
- name: podinfo
downwardAPI:
items:
- path: "labels"
fieldRef:
fieldPath: metadata.labels
- path: "annotations"
fieldRef:
fieldPath: metadata.annotations
- path: "name"
fieldRef:
fieldPath: metadata.name
- path: "namespace"
fieldRef:
fieldPath: metadata.namespace