Add a ConfigMap

This commit is contained in:
Ryan Cavicchioni 2024-08-18 01:35:47 -05:00
parent 2417429953
commit af77b895e0
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
3 changed files with 13 additions and 0 deletions

9
kustomize/app/cm.yaml Normal file
View File

@ -0,0 +1,9 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: toy-cm
namespace: toy
data:
CAT: pancake

View File

@ -4,6 +4,7 @@ kind: Kustomization
namespace: toy namespace: toy
resources: resources:
- secret.yaml - secret.yaml
- cm.yaml
- rollout.yaml - rollout.yaml
- services.yaml - services.yaml
- ingress.yaml - ingress.yaml

View File

@ -41,6 +41,9 @@ spec:
name: toy-session-secret name: toy-session-secret
key: session_secret key: session_secret
optional: true optional: true
envFrom:
- configMapRef:
name: toy-cm
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /livez path: /livez