Last active
April 9, 2020 11:27
-
-
Save mjbright/6cc7be0afe08fbb0cba86f0744251568 to your computer and use it in GitHub Desktop.
A simple 2-container Pod definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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