Fix templates

This commit is contained in:
dvirlabs 2025-06-19 12:18:47 +03:00
parent ba8eaac5ec
commit 7bf8baceb6
4 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: {{ include "nginx-message.fullname" . }}-html name: {{ .Release.Name }}-html
data: data:
index.html: | index.html: |
<html><body><h1>{{ .Values.message }}</h1></body></html> <html><body><h1>{{ .Values.message }}</h1></body></html>

View File

@ -1,16 +1,16 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ include "nginx-message.fullname" . }} name: {{ .Release.Name }}
spec: spec:
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount | default 1 }}
selector: selector:
matchLabels: matchLabels:
app: {{ include "nginx-message.name" . }} app: {{ .Release.Name }}
template: template:
metadata: metadata:
labels: labels:
app: {{ include "nginx-message.name" . }} app: {{ .Release.Name }}
spec: spec:
containers: containers:
- name: nginx - name: nginx
@ -23,4 +23,4 @@ spec:
volumes: volumes:
- name: html - name: html
configMap: configMap:
name: {{ include "nginx-message.fullname" . }}-html name: {{ .Release.Name }}-html

View File

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: {{ include "nginx-message.fullname" . }}-html name: {{ .Release.Name }}-html
data: data:
index.html: | index.html: |
<html><body><h1>{{ .Values.message }}</h1></body></html> <html><body><h1>{{ .Values.message }}</h1></body></html>

View File

@ -1,16 +1,16 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ include "nginx-message.fullname" . }} name: {{ .Release.Name }}
spec: spec:
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount | default 1 }}
selector: selector:
matchLabels: matchLabels:
app: {{ include "nginx-message.name" . }} app: {{ .Release.Name }}
template: template:
metadata: metadata:
labels: labels:
app: {{ include "nginx-message.name" . }} app: {{ .Release.Name }}
spec: spec:
containers: containers:
- name: nginx - name: nginx
@ -23,4 +23,4 @@ spec:
volumes: volumes:
- name: html - name: html
configMap: configMap:
name: {{ include "nginx-message.fullname" . }}-html name: {{ .Release.Name }}-html