Skip to content

Instantly share code, notes, and snippets.

@mjbright
Last active April 9, 2020 11:27
Show Gist options
  • Save mjbright/6cc7be0afe08fbb0cba86f0744251568 to your computer and use it in GitHub Desktop.
Save mjbright/6cc7be0afe08fbb0cba86f0744251568 to your computer and use it in GitHub Desktop.
A simple 2-container Pod definition
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: k8s-demo
name: k8s-demo
spec:
containers:
- image: mjbright/k8s-demo:1
name: k8s-demo
resources: {}
- image: mjbright/k8s-demo:alpine1
name: sidecar
command: ['/bin/sh']
args: ['-c', 'while true; do date; sleep 1; done']
resources: {}
dnsPolicy: ClusterFirst
restartPolicy: Always
status: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment