apiVersion: v1
kind: Pod
metadata:
    name: web
    labels:
        app: web
spec:
    volumes:
    - name: app
      emptyDir: {}
    containers:
    - image: kystkysto/app:latest
      name: app
      volumeMounts:
      - mountPath: /app
        name: app
      readinessProbe: # Добавим проверку готовности
        httpGet: # веб-сервера отдавать
          path: /index.html # контент
          port: 80
      livenessProbe:
        tcpSocket: { port: 8000 }
    initContainers:
    - image: busybox:1.31.0
      name: init-app
      volumeMounts:
      - mountPath: /app
        name: app
      command: ['sh', '-c', 'wget -O- https://raw.githubusercontent.com/express42/otus-platform-snippets/master/Module-02/Introduction-to-Kubernetes/wget.sh | sh']   

    