Skip to content

Instantly share code, notes, and snippets.

@egernst
Created April 3, 2019 22:01
Show Gist options
  • Select an option

  • Save egernst/9cbbb3d6ba566afca98be2a4e29328d6 to your computer and use it in GitHub Desktop.

Select an option

Save egernst/9cbbb3d6ba566afca98be2a4e29328d6 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: two-containers-kata-guaranteed
spec:
runtimeClassName: kata
restartPolicy: Never
volumes:
- name: shared-data
emptyDir: {}
containers:
- name: nginx-container
image: nginx
volumeMounts:
- name: shared-data
mountPath: /usr/share/nginx/html
resources:
limits:
memory: "200Mi"
cpu: "500m"
requests:
memory: "200Mi"
cpu: "500m"
- name: debian-container
image: debian
volumeMounts:
- name: shared-data
mountPath: /pod-data
resources:
limits:
memory: "300Mi"
cpu: "1200m"
requests:
memory: "300Mi"
cpu: "1200m"
command: ["/bin/sh"]
args: ["-c", "echo Hello from the debian container > /pod-data/index.html"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment