Created
April 3, 2019 22:01
-
-
Save egernst/9cbbb3d6ba566afca98be2a4e29328d6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: | |
| 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