Title / Description
Code 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
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code