blob: d14ebba8db6d861e81559c2c3162c27900491d4a [file] [log] [blame]
gio5449e272025-07-23 13:14:01 +04001apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: {{ include "excalidraw.fullname" . }}
5 labels:
6 {{- include "excalidraw.labels" . | nindent 4 }}
7spec:
8 replicas: {{ .Values.replicaCount }}
9 selector:
10 matchLabels:
11 {{- include "excalidraw.selectorLabels" . | nindent 6 }}
12 template:
13 metadata:
14 {{- with .Values.podAnnotations }}
15 annotations:
16 {{- toYaml . | nindent 8 }}
17 {{- end }}
18 labels:
19 {{- include "excalidraw.selectorLabels" . | nindent 8 }}
20 spec:
21 {{- with .Values.imagePullSecrets }}
22 imagePullSecrets:
23 {{- toYaml . | nindent 8 }}
24 {{- end }}
25 serviceAccountName: {{ include "excalidraw.serviceAccountName" . }}
26 securityContext:
27 {{- toYaml .Values.podSecurityContext | nindent 8 }}
28 containers:
29 - name: {{ .Chart.Name }}
30 securityContext:
31 {{- toYaml .Values.securityContext | nindent 12 }}
32 image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
33 imagePullPolicy: {{ .Values.image.pullPolicy }}
34 ports:
35 - name: http
36 containerPort: 80
37 protocol: TCP
38 livenessProbe:
39 httpGet:
40 path: /
41 port: http
42 readinessProbe:
43 httpGet:
44 path: /
45 port: http
46 resources:
47 {{- toYaml .Values.resources | nindent 12 }}
48 {{- with .Values.nodeSelector }}
49 nodeSelector:
50 {{- toYaml . | nindent 8 }}
51 {{- end }}
52 {{- with .Values.affinity }}
53 affinity:
54 {{- toYaml . | nindent 8 }}
55 {{- end }}
56 {{- with .Values.tolerations }}
57 tolerations:
58 {{- toYaml . | nindent 8 }}
59 {{- end }}