blob: 2c2e13f994ef16b432b801178e5cd7bd06ce1173 [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
BorislavG8bfc6cf2018-02-27 15:04:26 +00008 namespace: "{{ .Values.nsPrefix }}"
Dusan Rozmanf776f3d2017-09-18 13:07:56 -04009spec:
vaibhav_16decb508e0f2018-02-16 06:58:06 +000010 replicas: {{ .Values.clampReplicas }}
Dusan Rozmanf776f3d2017-09-18 13:07:56 -040011 selector:
12 matchLabels:
13 app: clamp
14 template:
15 metadata:
16 labels:
17 app: clamp
18 name: clamp
Dusan Rozmanf776f3d2017-09-18 13:07:56 -040019 spec:
kiranya364b9ad2017-11-23 07:28:50 +000020 initContainers:
21 - command:
22 - /root/ready.py
23 args:
24 - --container-name
25 - clamp-mariadb
26 env:
27 - name: NAMESPACE
28 valueFrom:
29 fieldRef:
30 apiVersion: v1
31 fieldPath: metadata.namespace
32 image: {{ .Values.image.readiness }}
33 imagePullPolicy: {{ .Values.pullPolicy }}
34 name: clamp-readiness
Dusan Rozmanf776f3d2017-09-18 13:07:56 -040035 containers:
36 - env:
37 - name: SPRING_APPLICATION_JSON
Alexis de Talhouët41aa98e2017-11-28 11:29:50 -050038 value: '{
BorislavG8bfc6cf2018-02-27 15:04:26 +000039 "spring.datasource.camunda.url": "jdbc:mariadb:sequential://clamp-mariadb.{{ .Values.nsPrefix }}:3306/camundabpm?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647",
40 "spring.datasource.cldsdb.url": "jdbc:mariadb:sequential://clamp-mariadb.{{ .Values.nsPrefix }}:3306/cldsdb4?verifyServerCertificate=false&useSSL=false&requireSSL=false&autoReconnect=true&retriesAllDown=2147483647&failoverLoopRetries=2147483647"
Alexis de Talhouët41aa98e2017-11-28 11:29:50 -050041 }'
Dusan Rozmanf776f3d2017-09-18 13:07:56 -040042 image: {{ .Values.image.clampImage }}:{{ .Values.image.clampVersion }}
43 imagePullPolicy: {{ .Values.pullPolicy }}
44 name: clamp
45 readinessProbe:
46 tcpSocket:
47 port: 8080
48 initialDelaySeconds: 5
49 periodSeconds: 10
50 imagePullSecrets:
51 - name: {{ .Values.nsPrefix }}-docker-registry-key
kiranya364b9ad2017-11-23 07:28:50 +000052#{{ end }}