apiVersion: v1
kind: Pod
metadata:
    name: fortune
spec:
    containers:
    - image: dsmiech/fortune:args
      env:
      - name: INTERVAL
        valueFrom:
          configMapKeyRef:
            name: fortune-config
            key: sleep-interval
      args: ["$(INTERVAL)"]
      name: html-generator
      volumeMounts:
      - name: html
        mountPath: /var/htdocs
    - image: dsmiech/nginx
      name: web-server
      volumeMounts:
      - name: html
        mountPath: /usr/share/nginx/html
        readOnly: true
      ports:
      - containerPort: 80
    volumes:
    - name: html
      emptyDir: {}
