cka-SVV/init1.yaml
Alexander van Vugt 47a50a0f7c initial upload
2019-12-04 12:10:43 +01:00

14 lines
338 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: initpod
spec:
containers:
- name: after-init
image: busybox
command: ['sh', '-c', 'echo its running! && sleep 3600']
initContainers:
- name: init-myservice
image: busybox
command: ['sh', '-c', 'until nslookup myservice; do echo waiting for myservice; sleep 2; done;']