32 lines
845 B
YAML
32 lines
845 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: {{ .Release.Name }}
|
||
|
labels:
|
||
|
{{- include "basic-app.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
replicas: {{ .Values.replicaCount }}
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
{{- include "basic-app.selectorLabels" . | nindent 6 }}
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
{{- include "basic-app.selectorLabels" . | nindent 8 }}
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: {{ .Chart.Name }}
|
||
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
protocol: TCP
|
||
|
volumeMounts:
|
||
|
- name: data
|
||
|
mountPath: /data
|
||
|
volumes:
|
||
|
- name: data
|
||
|
persistentVolumeClaim:
|
||
|
claimName: {{ .Release.Name }}-pvc
|
||
|
|