Skip to content

Instantly share code, notes, and snippets.

@ccollicutt
Created September 13, 2018 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ccollicutt/c1f38d24903a9147685df2867c1b18a2 to your computer and use it in GitHub Desktop.
Save ccollicutt/c1f38d24903a9147685df2867c1b18a2 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: nginx-latest
spec:
volumes:
- name: html-data
emptyDir: {}
containers:
- name: nginx-latest-container
image: nginx:latest
ports:
- containerPort: 80
volumeMounts:
- name: html-data
mountPath: /usr/share/nginx/html
- name: busybox-sidecar
image: busybox:latest
volumeMounts:
- name: html-data
mountPath: /pod-data
command: [ "/bin/sh" ]
args: ["-c", "while true; do date >> /pod-data/index.html; sleep 1; done"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment