foo.yaml
Yaml
code posted
created at 26 Jan 17:32, updated at 26 Jan 17:32
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
apiVersion: v1 kind: Pod metadata: name: mc1 labels: app: mc1 spec: volumes: - name: html emptyDir: {} containers: - name: 1st image: nginx ports: - containerPort: 80 volumeMounts: - name: html mountPath: /usr/share/nginx/html - name: 2nd image: debian volumeMounts: - name: html mountPath: /html command: ["/bin/sh", "-c"] args: - while true; do date >> /html/index.html; sleep 1; done |
524 Bytes in 5 ms with coderay