Files
nginx_CD_chart/nginx-chart/templates/deployment.yaml
T

39 lines
938 B
YAML
Raw Normal View History

2026-07-17 21:26:51 -07:00
apiVersion: apps/v1
kind: Deployment
2026-07-17 21:26:51 -07:00
metadata:
name: {{ include "nginx-chart.fullname" . }}
namespace: {{ .Values.namespace }}
2026-07-17 21:26:51 -07:00
spec:
replicas: {{ .Values.replicaCount }}
2026-07-17 21:26:51 -07:00
selector:
matchLabels:
app: nginx
2026-07-17 21:26:51 -07:00
template:
metadata:
labels:
app: nginx
2026-07-17 21:26:51 -07:00
spec:
imagePullSecrets:
- name: {{ .Values.imagePullSecrets }}
2026-07-17 21:26:51 -07:00
containers:
- name: nginx
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- 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 }}