This repository was archived by the owner on Apr 24, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
62 lines (62 loc) · 2.13 KB
/
deployment.yaml
File metadata and controls
62 lines (62 loc) · 2.13 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "document-tokenizer.fullname" . }}
labels:
{{- include "document-tokenizer.full.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{ include "document-tokenizer.common.labels" . | nindent 6 }}
template:
metadata:
labels:
{{ include "document-tokenizer.common.labels" . | nindent 8 }}
annotations:
checksum/config: {{ include "document-tokenizer.env.config" . | sha256sum | quote }}
checksum/secret: {{ include "document-tokenizer.env.secret" . | sha256sum | quote }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if or .Values.imagePullSecrets .Values.secrets.dockerCredentials }}
imagePullSecrets:
{{- with .Values.imagePullSecrets }}
{{ toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.secrets.dockerCredentials }}
- name: {{ template "document-tokenizer.fullname" . }}-docker-secret
{{- end }}
{{- end }}
terminationGracePeriodSeconds: 90
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
envFrom:
- configMapRef:
name: {{ include "document-tokenizer.fullname" . }}
- secretRef:
name: {{ include "document-tokenizer.fullname" . }}
{{- if .Values.envFrom }}
{{- toYaml .Values.envFrom | nindent 12 }}
{{- end }}
ports:
- name: http
containerPort: 80
protocol: TCP
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}