Skip to content

Instantly share code, notes, and snippets.

@verchol
Created May 30, 2019 17:56
Show Gist options
  • Save verchol/256415c3a40452c5e7472c695d662a49 to your computer and use it in GitHub Desktop.
Save verchol/256415c3a40452c5e7472c695d662a49 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
namespace : oleg
name: myapp-pod
labels:
app: myapp
spec:
containers:
- name: myfirst-container
image: busybox:1.29.0
command: ['sh', '-c', 'echo The first container is running! && sleep 120']
- name: mysecond-container
image: busybox:1.29.0
command: ['sh', '-c', 'echo The app is running! && sleep 120']
initContainers:
- name: init-mydb
image: busybox:1.29.0
command: ['sh', '-c', 'sleep 2']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment