Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: v1
- kind: Pod
- metadata:
- name: init-demo
- spec:
- containers:
- - name: nginx
- image: busybox
- volumeMounts:
- - name: workdir
- mountPath: "/data"
- command:
- - sleep
- - "10000"
- # These containers are run during pod initialization
- initContainers:
- - name: install
- image: busybox:1.28
- command:
- - touch
- - "/data/runfile.txt"
- volumeMounts:
- - name: workdir
- mountPath: "/data"
- - name: waitabit
- image: busybox
- command:
- - sleep
- - "20"
- dnsPolicy: Default
- volumes:
- - name: workdir
- emptyDir: {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement