From a3714a6933afe2186483fdfbb864c17008fe2c3b Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 18 Jul 2026 05:51:17 +0000 Subject: [PATCH] Update nginx-chart/templates/deployment.yaml --- nginx-chart/templates/deployment.yaml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/nginx-chart/templates/deployment.yaml b/nginx-chart/templates/deployment.yaml index 5b4a74a..1e9a82a 100644 --- a/nginx-chart/templates/deployment.yaml +++ b/nginx-chart/templates/deployment.yaml @@ -1,18 +1,25 @@ apiVersion: apps/v1 kind: Deployment + metadata: name: {{ include "nginx-chart.fullname" . }} namespace: {{ .Values.namespace }} + spec: replicas: {{ .Values.replicaCount }} + selector: - matchLabels: {app: nginx} + matchLabels: + app: nginx + template: metadata: - labels: {app: nginx} + labels: + app: nginx spec: + imagePullSecrets: harbor-secret containers: - - name: nginx - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" - ports: - - containerPort: 80 + - name: nginx + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + ports: + - containerPort: 80 \ No newline at end of file