From 9e6c2df4cd5a154109c0bcb92a6c99963d84aec4 Mon Sep 17 00:00:00 2001 From: Sabbir Ahmed Shameem <145862004+SAShameem@users.noreply.github.com> Date: Mon, 6 May 2024 21:02:51 +0600 Subject: [PATCH] Create deployment-with-configmap-as-volume.yaml --- .../deployment-with-configmap-as-volume.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 content/bn/examples/deployments/deployment-with-configmap-as-volume.yaml diff --git a/content/bn/examples/deployments/deployment-with-configmap-as-volume.yaml b/content/bn/examples/deployments/deployment-with-configmap-as-volume.yaml new file mode 100644 index 0000000000..ecb03f9a5d --- /dev/null +++ b/content/bn/examples/deployments/deployment-with-configmap-as-volume.yaml @@ -0,0 +1,33 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: configmap-volume + labels: + app.kubernetes.io/name: configmap-volume +spec: + replicas: 3 + selector: + matchLabels: + app.kubernetes.io/name: configmap-volume + template: + metadata: + labels: + app.kubernetes.io/name: configmap-volume + spec: + containers: + - name: alpine + image: alpine:3 + command: + - /bin/sh + - -c + - while true; do echo "$(date) My preferred sport is $(cat /etc/config/sport)"; + sleep 10; done; + ports: + - containerPort: 80 + volumeMounts: + - name: config-volume + mountPath: /etc/config + volumes: + - name: config-volume + configMap: + name: sport