apiVersion: v1
kind: Pod
metadata:
  name: initcontainerpod
spec:
  containers:
  - name: appcontainer
    image: quay.io/muradsamadov/busybox
    command: ["sh", "-c", "echo The app is running! && sleep 3600"]
  initContainers:
  - name: initcontainer
    image: quay.io/muradsamadov/busybox
    command: ["sh", "-c", "until nslookup myservice; do echo waiting for myservice; sleep 2; done"]
