-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
31 lines (31 loc) · 1.05 KB
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{{- if or (not .Values.statefulSet.enabled) (not .Values.persistence.enabled) -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "nussknacker.fullname" . }}
labels:
{{- include "nussknacker.labels" . | nindent 4 }}
annotations:
{{- if .Values.deployment.annotations }}
{{- toYaml .Values.deployment.annotations | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "nussknacker.selectorLabels" . | nindent 6 }}
template:
metadata:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- if .Values.additionalAnnotations }}
{{- toYaml .Values.additionalAnnotations | nindent 8 -}}
{{- end }}
labels:
{{- include "nussknacker.selectorLabels" . | nindent 8 }}
{{- if .Values.additionalLabels }}
{{- toYaml .Values.additionalLabels | nindent 8 -}}
{{- end }}
spec:
{{- include "nussknacker.pod" . | nindent 6 }}
{{- end -}}