2026-07-17 21:26:51 -07:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
2026-07-18 05:51:17 +00:00
|
|
|
|
2026-07-17 21:26:51 -07:00
|
|
|
metadata:
|
|
|
|
|
name: {{ include "nginx-chart.fullname" . }}
|
|
|
|
|
namespace: {{ .Values.namespace }}
|
2026-07-18 05:51:17 +00:00
|
|
|
|
2026-07-17 21:26:51 -07:00
|
|
|
spec:
|
|
|
|
|
replicas: {{ .Values.replicaCount }}
|
2026-07-18 05:51:17 +00:00
|
|
|
|
2026-07-17 21:26:51 -07:00
|
|
|
selector:
|
2026-07-18 05:51:17 +00:00
|
|
|
matchLabels:
|
|
|
|
|
app: nginx
|
|
|
|
|
|
2026-07-17 21:26:51 -07:00
|
|
|
template:
|
|
|
|
|
metadata:
|
2026-07-18 05:51:17 +00:00
|
|
|
labels:
|
|
|
|
|
app: nginx
|
2026-07-17 21:26:51 -07:00
|
|
|
spec:
|
2026-07-18 05:59:07 +00:00
|
|
|
imagePullSecrets:
|
2026-11-04 06:43:05 +06:00
|
|
|
- name: {{ .Values.imagePullSecrets }}
|
2026-07-17 21:26:51 -07:00
|
|
|
containers:
|
2026-07-18 05:51:17 +00:00
|
|
|
- name: nginx
|
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
2026-11-04 06:43:05 +06:00
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
2026-07-18 05:51:17 +00:00
|
|
|
ports:
|
2026-11-04 06:43:05 +06:00
|
|
|
- containerPort: 80
|
|
|
|
|
envFrom:
|
|
|
|
|
- secretRef:
|
|
|
|
|
name: {{ .Values.secret.name }}
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: nginx-config
|
|
|
|
|
mountPath: /etc/nginx/conf.d/default.conf
|
|
|
|
|
subPath: default.conf
|
|
|
|
|
volumes:
|
|
|
|
|
- name: nginx-config
|
|
|
|
|
configMap:
|
|
|
|
|
name: {{ .Values.configMap.name }}
|