30 lines
859 B
YAML
30 lines
859 B
YAML
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
name: {{ include "k8smonitor.fullname" . }}
|
||
|
|
labels:
|
||
|
|
{{- include "k8smonitor.selectorLabels" . | nindent 4 }}
|
||
|
|
spec:
|
||
|
|
replicas: {{ .Values.replicaCount }}
|
||
|
|
selector:
|
||
|
|
matchLabels:
|
||
|
|
{{- include "k8smonitor.selectorLabels" . | nindent 6 }}
|
||
|
|
template:
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
{{- include "k8smonitor.selectorLabels" . | nindent 8 }}
|
||
|
|
spec:
|
||
|
|
containers:
|
||
|
|
- name: {{ .Chart.Name }}
|
||
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||
|
|
ports:
|
||
|
|
- name: http
|
||
|
|
containerPort: {{ .Values.service.port }}
|
||
|
|
volumeMounts:
|
||
|
|
- name: data
|
||
|
|
mountPath: /app/data
|
||
|
|
volumes:
|
||
|
|
- name: data
|
||
|
|
persistentVolumeClaim:
|
||
|
|
claimName: {{ include "k8smonitor.fullname" . }}-data
|