apiVersion: v1
kind: Pod
metadata:
  name: web
  labels:
    app: web
spec:
  initContainers:
    - name: html
      image: busybox:1.32.0
      command: [ 'sh', '-c', 'wget -O- https://tinyurl.com/otus-k8s-intro | sh' ]
      volumeMounts:
      - name: app
        mountPath: /app
  containers:
  - name: web
    image: tjma/webserver:alpine-0.1
    volumeMounts:
    - name: app
      mountPath: /app
    readinessProbe:
      httpGet:
        port: 80
        path: /index.html
    livenessProbe:
      tcpSocket:
        port: 8000
  volumes:
  - name: app
    emptyDir: {}
