apiVersion: v1
kind: Pod
metadata:
  name: three-containers
spec: 

  restartPolicy: Never

  volumes:
  - name: shared-data
    emptyDir: {}
  containers:
  - name: nginx-container
    image: nginx
    volumeMounts:
    - name: shared-data
      mountPath: /usr/share/nginx/html

  - name: debian-container
    image: debian
    volumeMounts:
    - name: shared-data
      mountPath: /pod-data
    command: ["/bin/sh"]
    args: ["-c", "echo Hello from the debian container > /pod-data/index.html"]

  - name: pinger
    image: reselbob/pinger
    ports:
    - containerPort: 3000