Skip to content

Instantly share code, notes, and snippets.

@radu-matei
Last active February 12, 2018 05:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radu-matei/17663dc1c0c14b36947abda8a7c63988 to your computer and use it in GitHub Desktop.
Save radu-matei/17663dc1c0c14b36947abda8a7c63988 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: mc1
spec:
volumes:
- name: html
emptyDir: {}
containers:
- name: 1st
image: nginx
volumeMounts:
- name: html
mountPath: /usr/share/nginx/html
- name: 2nd
image: debian
volumeMounts:
- name: html
mountPath: /html
command: ["/bin/sh", "-c"]
args:
- while true; do
date >> /html/index.html;
sleep 1;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment