Skip to content

Instantly share code, notes, and snippets.

@klingklangdev
Forked from chadmcrowell/pod.yaml
Created December 1, 2020 22:30
Show Gist options
  • Select an option

  • Save klingklangdev/c3f5e8489494ad94199679c99a72ad65 to your computer and use it in GitHub Desktop.

Select an option

Save klingklangdev/c3f5e8489494ad94199679c99a72ad65 to your computer and use it in GitHub Desktop.
Kubernetes Quick Start
apiVersion: v1
kind: Pod
metadata:
name: examplepod
namespace: podexample
spec:
volumes:
- name: html
emptyDir: {}
containers:
- name: webcontainer
image: nginx
volumeMounts:
- name: html
mountPath: /usr/share/nginx/html
- name: filecontainer
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