2023-06-19 21:57:53 +10:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2023-06-19 22:11:51 +10:00
|
|
|
name: {{ .Release.name }}
|
2023-06-19 21:57:53 +10:00
|
|
|
labels:
|
|
|
|
app: nginx
|
|
|
|
spec:
|
|
|
|
replicas: {{ .Values.replicaCount }}
|
2023-06-19 21:59:10 +10:00
|
|
|
namespace: {{ .Values.namespace }}
|
2023-06-19 21:57:53 +10:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: nginx
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: nginx
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: {{ .Chart.Name }}
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
containerPort: 80
|
2023-06-19 22:09:23 +10:00
|
|
|
protocol: TCP
|
|
|
|
volumeMounts:
|
|
|
|
- name: nginx-index-file
|
|
|
|
mountPath: /usr/share/nginx/html/
|
|
|
|
volumes:
|
|
|
|
- name: nginx-index-file
|
|
|
|
configMap:
|
|
|
|
name: index-html-configmap
|