From 43a8c4c6e82339e4d429d76091e67a1fea1e440b Mon Sep 17 00:00:00 2001 From: sandervanvugt Date: Mon, 28 Nov 2022 12:20:43 -0800 Subject: [PATCH] message --- morevolumes.yaml | 25 +++++++++++++++++++++++++ sidecarlog.yaml | 26 ++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 morevolumes.yaml create mode 100644 sidecarlog.yaml diff --git a/morevolumes.yaml b/morevolumes.yaml new file mode 100644 index 0000000..66ca35f --- /dev/null +++ b/morevolumes.yaml @@ -0,0 +1,25 @@ +apiVersion: v1 +kind: Pod +metadata: + name: morevol +spec: + containers: + - name: centos1 + image: centos:7 + command: + - sleep + - "3600" + volumeMounts: + - mountPath: /centos1 + name: test + - name: centos2 + image: centos:7 + command: + - sleep + - "3600" + volumeMounts: + - mountPath: /centos2 + name: test + volumes: + - name: test + emptyDir: {} diff --git a/sidecarlog.yaml b/sidecarlog.yaml new file mode 100644 index 0000000..0e77220 --- /dev/null +++ b/sidecarlog.yaml @@ -0,0 +1,26 @@ +apiVersion: v1 +kind: Pod +metadata: + name: two-containers +spec: + + volumes: + - name: shared-data + emptyDir: {} + + containers: + + - name: nginx-container + image: nginx + volumeMounts: + - name: shared-data + mountPath: /usr/share/nginx/html + + - name: busybox-container + image: busybox + volumeMounts: + - name: shared-data + mountPath: /messages + command: ["/bin/sh"] + args: ["-c", "echo hello from the cluster > /messages/index.html && sleep 600" ] +