-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathdeployment.yaml
More file actions
98 lines (95 loc) · 3.84 KB
/
Copy pathdeployment.yaml
File metadata and controls
98 lines (95 loc) · 3.84 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{{- if .Values.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: ph-ee-connector-ams-mifos
labels:
app: ph-ee-connector-ams-mifos
spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
app: ph-ee-connector-ams-mifos
template:
metadata:
labels:
app: ph-ee-connector-ams-mifos
annotations:
{{- if .Values.deployment.annotations }}
{{ toYaml .Values.deployment.annotations | indent 8 }}
{{- end }}
spec:
initContainers:
#During this Pod's initialization, check that zeebe-gateway service is up and running before starting this pod
- name: check-zeebe-gateway-ready
image: busybox:latest
command: [ 'sh', '-c','until nc -vz {{ .Release.Name }}-zeebe-gateway 26500; do echo "Waiting for zeebe-gateway service"; sleep 2; done;' ]
affinity: {{ toYaml .Values.deployment.affinity | nindent 8 }}
nodeSelector: {{ toYaml .Values.deployment.nodeSelector | nindent 8 }}
tolerations: {{ toYaml ( .Values.tolerations | default .Values.deployment.tolerations ) | nindent 8 }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
serviceAccountName: ph-ee-connector-ams-mifos
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriod }}
containers:
- name: ph-ee-connector-ams-mifos
image: "{{ .Values.image}}"
imagePullPolicy: "{{ .Values.global.imagePullPolicy }}"
ports:
- containerPort: 5000
resources: {{ toYaml ( .Values.resources | default .Values.deployment.resources ) | nindent 10 }}
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
env:
- name: "SPRING_PROFILES_ACTIVE"
value: "{{ .Values.SPRING_PROFILES_ACTIVE }}"
- name: "ams_local_enabled"
value: "{{ .Values.ams_local_enabled }}"
- name: "ams_local_interop_host"
value: "{{ .Values.ams_local_interop_host }}"
- name: "ams_local_customer_host"
value: "{{ .Values.ams_local_customer_host }}"
- name: "ams_local_account_host"
value: "{{ .Values.ams_local_account_host }}"
- name: "ams_local_auth_host"
value: "{{ .Values.ams_local_auth_host }}"
- name: "ams_local_loan_host"
value: "{{ .Values.ams_local_loan_host }}"
- name: "DFSPIDS"
value: "{{ .Values.global.DFSPIDS }}"
- name: "ZEEBE_BROKER_CONTACTPOINT"
value: "{{ .Release.Name }}-zeebe-gateway:26500"
- name: "ZEEBE_CLIENT_MAX-EXECUTION-THREADS"
value: "{{ .Values.global.max_execution_threads}}"
- name: "ZEEBE_CLIENT_POLL-INTERVAL"
value: "{{ .Values.global.poll_interval}}"
{{- if .Values.extraEnvs | default .Values.deployment.extraEnvs }}
{{ toYaml ( .Values.extraEnvs | default .Values.deployment.extraEnvs ) | indent 8 }}
{{- end }}
envFrom: {{ toYaml ( .Values.envFrom | default .Values.deployment.envFrom ) | nindent 10 }}
securityContext: {{ toYaml ( .Values.podSecurityContext | default .Values.deployment.securityContext ) | nindent 10 }}
volumeMounts:
- name: ph-ee-config
mountPath: "/config"
# {{- if .Values.deployment.config }}
# {{ toYaml .Values.deployment.config | indent 12 }}
# {{- end }}
initContainers:
- name: wait-db
image: jwilder/dockerize
imagePullPolicy: IfNotPresent
args:
- -timeout=120s
- -wait
- tcp://{{ .Values.operations_app.datasource.host }}:3306
volumes:
- name: ph-ee-config
configMap:
name: ph-ee-config
{{- if .Values.extraContainers }}
{{ tpl .Values.extraContainers . | indent 6 }}
{{- end }}
{{- end }}