apiVersion: apps/v1
kind: Deployment
metadata:
  name: cannot-run
  labels:
    name: cannot-run
    app: crash-app
spec:
  replicas: 2
  selector:
    matchLabels:
      name: cannot-run
      app: crash-app
  progressDeadlineSeconds: 60
  template:
    metadata:
      labels:
        name: cannot-run
        app: crash-app
    spec:
      initContainers:
      - name: successful-init
        image: busybox
        imagePullPolicy: IfNotPresent
        command: ["sh", "-c", "echo 'Log from successful init container' && test 1 -eq 1"]
      containers:
      - name: container-cannot-run
        image: busybox
        imagePullPolicy: IfNotPresent
        command: ["/some/bad/path"]
