-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathdeployment.yaml
More file actions
118 lines (117 loc) · 5.08 KB
/
Copy pathdeployment.yaml
File metadata and controls
118 lines (117 loc) · 5.08 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{{- if .Values.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
name: ph-ee-connector-bulk
labels:
app: ph-ee-connector-bulk
spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
app: ph-ee-connector-bulk
template:
metadata:
labels:
app: ph-ee-connector-bulk
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;' ]
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriod }}
containers:
- name: ph-ee-connector-bulk
image: "{{ .Values.image}}"
imagePullPolicy: "{{ .Values.imagePullPolicy }}"
ports:
- containerPort: 5000
resources:
limits:
memory: "{{ .Values.limits.memory }}"
cpu: "{{ .Values.limits.cpu }}"
requests:
memory: "{{ .Values.requests.memory }}"
cpu: "{{ .Values.requests.cpu }}"
env:
- name: "SPRING_PROFILES_ACTIVE"
value: "{{ .Values.global.SPRING_PROFILES_ACTIVE }}"
- name: "CAMEL_DISABLE-SSL"
value: "{{ .Values.camel_disable_ssl }}"
- 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}}"
- name: "TENANTS"
value: "{{ .Values.global.tenants }}"
- name: "APPLICATION_BUCKET-NAME"
value: "{{ .Values.global.bucket_name }}"
- name: "OPERATIONS-APP_CONTACTPOINT"
value: "{{ .Values.operations_app.contactpoint }}"
- name: "OPERATIONS-APP_ENDPOINTS_BATCH-TRANSACTION"
value: "{{ .Values.operations_app.endpoints.batch_transaction }}"
- name: "CONFIG_PARTYLOOKUP_ENABLE"
value: "{{ .Values.config.partylookup.enable }}"
- name: "CONFIG_APPROVAL_ENABLE"
value: "{{ .Values.config.approval.enable }}"
- name: "CONFIG_ORDERING_ENABLE"
value: "{{ .Values.config.ordering.enable }}"
- name: "CONFIG_ORDERING_FIELD"
value: "{{ .Values.config.ordering.field }}"
- name: "CONFIG_SPLITTING_ENABLE"
value: "{{ .Values.config.splitting.enable }}"
- name: "CONFIG_SPLITTING_SUB_BATCH_SIZE"
value: "{{ .Values.config.splitting.sub_batch_size }}"
- name: "CONFIG_FORMATTING_ENABLE"
value: "{{ .Values.config.formatting.enable }}"
- name: "CONFIG_FORMATTING_STANDARD"
value: "{{ .Values.config.formatting.standard }}"
- name: "CONFIG_MERGEBACK_ENABLE"
value: "{{ .Values.config.mergeback.enable }}"
- name: "CONFIG_BACKPRESSURE_ENABLE"
value: "{{ .Values.config.backpressure.enable }}"
- name: "CONFIG_COMPLETION-THRESHOLD-CHECK_ENABLE"
value: "{{ .Values.config.completion_threshold_check.enable }}"
- name: "CONFIG_COMPLETION-THRESHOLD-CHECK_COMPLETION-RATE"
value: "{{ .Values.config.completion_threshold_check.completion_rate }}"
- name: "CLOUD_AWS_REGION_STATIC"
valueFrom:
secretKeyRef:
name: "bulk-processor-secret"
key: "aws-region"
- name: "BP_JAVA_OPTS"
value: "-Xmx400m -Xms400m"
- name: "CLOUD_AWS_S3BASEURL"
value: {{.Values.global.s3BaseUrl}}
- name: "AWS_ACCESS_KEY"
valueFrom:
secretKeyRef:
name: "bulk-processor-secret"
key: "aws-access-key"
- name: "AWS_SECRET_KEY"
valueFrom:
secretKeyRef:
name: "bulk-processor-secret"
key: "aws-secret-key"
- name: "IDENTITY_MAPPER_CONTACTPOINT"
value: "{{ .Values.identity_account_mapper.hostname }}"
{{- if .Values.extraEnvs | default .Values.deployment.extraEnvs }}
{{ toYaml ( .Values.extraEnvs | default .Values.deployment.extraEnvs ) | indent 10 }}
{{- end }}
envFrom: {{ toYaml ( .Values.envFrom | default .Values.deployment.envFrom ) | nindent 12 }}
securityContext: {{ toYaml ( .Values.podSecurityContext | default .Values.deployment.securityContext ) | nindent 12 }}
volumeMounts:
- name: ph-ee-config
mountPath: "/config"
volumes:
- name: ph-ee-config
configMap:
name: ph-ee-config
{{- end }}