32 lines
799 B
YAML
32 lines
799 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.name }}
|
|
labels:
|
|
app: nginx
|
|
spec:
|
|
replicas: {{ .Values.replicaCount }}
|
|
namespace: {{ .Values.namespace }}
|
|
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
|
|
protocol: TCP
|
|
volumeMounts:
|
|
- name: nginx-index-file
|
|
mountPath: /usr/share/nginx/html/
|
|
volumes:
|
|
- name: nginx-index-file
|
|
configMap:
|
|
name: index-html-configmap |