Debian Codegraph @

helm-chart/templates/deployment.yaml

raw
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4 name: {{ include "..fullname" . }}
5 labels:
6 app: {{ include "..name" . }}
7 annotations:
8 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
9 spec:
10 replicas: {{ .Values.replicaCount }}
11 revisionHistoryLimit: 2
12 selector:
13 matchLabels:
14 app: {{ include "..name" . }}
15 template:
16 metadata:
17 {{- with .Values.podAnnotations }}
18 annotations:
19 {{- toYaml . | nindent 8 }}
20 {{- end }}
21 labels:
22 app: {{ include "..name" . }}
23 spec:
24 {{- with .Values.imagePullSecrets }}
25 imagePullSecrets:
26 {{- toYaml . | nindent 8 }}
27 {{- end }}
28 serviceAccountName: {{ include "..serviceAccountName" . }}
29 securityContext:
30 {{- toYaml .Values.podSecurityContext | nindent 8 }}
31 containers:
32 - name: {{ include "..fullname" . }}
33 securityContext:
34 {{- toYaml .Values.securityContext | nindent 12 }}
35 image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
36 imagePullPolicy: {{ .Values.image.pullPolicy }}
37 envFrom:
38 - configMapRef:
39 name: {{ include "..fullname" . }}
40 {{- if .Values.secrets.enabled }}
41 - secretRef:
42 name: {{ include "..fullname" . }}
43 {{- end }}
44 livenessProbe:
45 {{- toYaml .Values.livenessProbe | nindent 12 }}
46 readinessProbe:
47 {{- toYaml .Values.readinessProbe | nindent 12 }}
48 resources:
49 {{- toYaml .Values.resources | nindent 12 }}
50 {{- with .Values.volumeMounts }}
51 volumeMounts:
52 {{- toYaml . | nindent 12 }}
53 {{- end }}
54 {{- with .Values.nodeSelector }}
55 nodeSelector:
56 {{- toYaml . | nindent 8 }}
57 {{- end }}
58 {{- with .Values.volumes }}
59 volumes:
60 {{- toYaml . | nindent 8 }}
61 {{- end }}
62 {{- with .Values.affinity }}
63 affinity:
64 {{- toYaml . | nindent 8 }}
65 {{- end }}
66 {{- with .Values.tolerations }}
67 tolerations:
68 {{- toYaml . | nindent 8 }}
69 {{- end }}
70