From 527829b5cd4d53f2210f7a328df5ab3ef1bec8c6 Mon Sep 17 00:00:00 2001 From: ldynia Date: Tue, 1 Sep 2020 23:01:23 +0000 Subject: [PATCH 1/3] adding missing shared-volume.yaml file --- shared-volume.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 shared-volume.yaml diff --git a/shared-volume.yaml b/shared-volume.yaml new file mode 100644 index 0000000..cf014c5 --- /dev/null +++ b/shared-volume.yaml @@ -0,0 +1,25 @@ +apiVersion: v1 +kind: Pod +metadata: + name: sharedvolume +spec: + containers: + - image: centos:7 + name: centos1 + command: + - sleep + - "3600" + volumeMounts: + - mountPath: /centos1 + name: test + - image: centos:7 + name: centos2 + command: + - sleep + - "3600" + volumeMounts: + - mountPath: /centos2 + name: test + volumes: + - name: test + emptyDir: {} From d2ab2b24496ff7e03deb70251b602cdff3ecbc90 Mon Sep 17 00:00:00 2001 From: ldynia Date: Tue, 1 Sep 2020 23:17:05 +0000 Subject: [PATCH 2/3] adding missing pv.yaml file --- pv.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pv.yaml diff --git a/pv.yaml b/pv.yaml new file mode 100644 index 0000000..4a30d2e --- /dev/null +++ b/pv.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: pv-volume + labels: + type: local +spec: + capacity: + storage: 2Gi + accessModes: + - ReadWriteOnce + hostPath: + path: "/mydata" From 769a63cf0dae2a2298c8f2ddabd399814a5abe60 Mon Sep 17 00:00:00 2001 From: ldynia Date: Wed, 2 Sep 2020 00:26:41 +0000 Subject: [PATCH 3/3] adding additional files --- pod-secret-as-var.yaml | 17 +++++++++++++++++ pod-secret.yaml | 18 ++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 pod-secret-as-var.yaml create mode 100644 pod-secret.yaml diff --git a/pod-secret-as-var.yaml b/pod-secret-as-var.yaml new file mode 100644 index 0000000..de3509d --- /dev/null +++ b/pod-secret-as-var.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Pod +metadata: + name: mymysql +spec: + containers: + - name: famke-mysql + image: busybox + command: + - sleep + - "3600" + env: + - name: MYSQL_ROOT_PASSWORD + valueFrom: + secretKeyRef: + name: mysql + key: password diff --git a/pod-secret.yaml b/pod-secret.yaml new file mode 100644 index 0000000..5803d04 --- /dev/null +++ b/pod-secret.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: Pod +metadata: + name: secretbox2 +spec: + containers: + - name: secretbox + image: busybox + command: + - sleep + - "3600" + volumeMounts: + - name: secret + mountPath: /secretstuff + volumes: + - name: secret + secret: + secretName: secretstuff