Files
helm-myapp-cloud/templates/configmap.yaml
T
2026-06-22 12:01:13 +01:00

36 lines
731 B
YAML

---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-configmap
data:
myvalue: "Hello World"
drink: {{ .Values.favouriteDrink }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-nginx-container2
data:
default.conf: |
server {
listen {{ .Values.container2.port }};
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-nginx-container3
data:
default.conf: |
server {
listen {{ .Values.container3.port }};
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
}