blob: de9adaca81d24fe1daa9ad178fcb71849c2cfe68 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableClampClamp }}
Dusan Rozmanf776f3d2017-09-18 13:07:56 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 labels:
6 app: clamp
7 name: clamp
8 namespace: "{{ .Values.nsPrefix }}-clamp"
9spec:
10 selector:
11 matchLabels:
12 app: clamp
13 template:
14 metadata:
15 labels:
16 app: clamp
17 name: clamp
Dusan Rozmanf776f3d2017-09-18 13:07:56 -040018 spec:
kiranya364b9ad2017-11-23 07:28:50 +000019 initContainers:
20 - command:
21 - /root/ready.py
22 args:
23 - --container-name
24 - clamp-mariadb
25 env:
26 - name: NAMESPACE
27 valueFrom:
28 fieldRef:
29 apiVersion: v1
30 fieldPath: metadata.namespace
31 image: {{ .Values.image.readiness }}
32 imagePullPolicy: {{ .Values.pullPolicy }}
33 name: clamp-readiness
Dusan Rozmanf776f3d2017-09-18 13:07:56 -040034 containers:
35 - env:
36 - name: SPRING_APPLICATION_JSON
Alexis de Talhouƫt41aa98e2017-11-28 11:29:50 -050037 value: '{
38 "spring.datasource.camunda.url": "jdbc:mariadb:sequential://clamp-mariadb.{{ .Values.nsPrefix }}-clamp:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647",
39 "spring.datasource.cldsdb.url": "jdbc:mariadb:sequential://clamp-mariadb.{{ .Values.nsPrefix }}-clamp:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647"
40 }'
Dusan Rozmanf776f3d2017-09-18 13:07:56 -040041 image: {{ .Values.image.clampImage }}:{{ .Values.image.clampVersion }}
42 imagePullPolicy: {{ .Values.pullPolicy }}
43 name: clamp
44 readinessProbe:
45 tcpSocket:
46 port: 8080
47 initialDelaySeconds: 5
48 periodSeconds: 10
49 imagePullSecrets:
50 - name: {{ .Values.nsPrefix }}-docker-registry-key
kiranya364b9ad2017-11-23 07:28:50 +000051#{{ end }}