k8s-samples/CKA_Course/pods/init-container.yaml

13 lines
196 B
YAML
Raw Permalink Normal View History

2022-08-17 02:59:58 +00:00
apiVersion: v1
kind: Pod
metadata:
name: init-pod
spec:
containers:
- name: nginx
image: nginx:1.19.1
initContainers:
- name: delay
image: busybox
command: [ "sleep", "30" ]