From af77b895e096f8af4bae13477839fbdbf0983fdf Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sun, 18 Aug 2024 01:35:47 -0500 Subject: [PATCH] Add a ConfigMap --- kustomize/app/cm.yaml | 9 +++++++++ kustomize/app/kustomization.yaml | 1 + kustomize/app/rollout.yaml | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 kustomize/app/cm.yaml diff --git a/kustomize/app/cm.yaml b/kustomize/app/cm.yaml new file mode 100644 index 0000000..d9327d3 --- /dev/null +++ b/kustomize/app/cm.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: toy-cm + namespace: toy +data: + CAT: pancake + diff --git a/kustomize/app/kustomization.yaml b/kustomize/app/kustomization.yaml index 2ca103c..d140fc8 100644 --- a/kustomize/app/kustomization.yaml +++ b/kustomize/app/kustomization.yaml @@ -4,6 +4,7 @@ kind: Kustomization namespace: toy resources: - secret.yaml + - cm.yaml - rollout.yaml - services.yaml - ingress.yaml diff --git a/kustomize/app/rollout.yaml b/kustomize/app/rollout.yaml index 05daaf4..f7d1372 100644 --- a/kustomize/app/rollout.yaml +++ b/kustomize/app/rollout.yaml @@ -41,6 +41,9 @@ spec: name: toy-session-secret key: session_secret optional: true + envFrom: + - configMapRef: + name: toy-cm livenessProbe: httpGet: path: /livez