blob: 61091a87f3114d1e89b20c3309a44bcfed0f5eea [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
18 annotations:
19 pod.beta.kubernetes.io/init-containers: '[
20 {
21 "args": [
22 "--container-name",
23 "clamp-mariadb"
24 ],
25 "command": [
26 "/root/ready.py"
27 ],
28 "env": [
29 {
30 "name": "NAMESPACE",
31 "valueFrom": {
32 "fieldRef": {
33 "apiVersion": "v1",
34 "fieldPath": "metadata.namespace"
35 }
36 }
37 }
38 ],
39 "image": "{{ .Values.image.readiness }}",
40 "imagePullPolicy": "{{ .Values.pullPolicy }}",
41 "name": "clamp-readiness"
42 }
43 ]'
44 spec:
45 containers:
46 - env:
47 - name: SPRING_APPLICATION_JSON
Alexis de Talhouƫt41aa98e2017-11-28 11:29:50 -050048 value: '{
49 "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",
50 "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"
51 }'
Dusan Rozmanf776f3d2017-09-18 13:07:56 -040052 image: {{ .Values.image.clampImage }}:{{ .Values.image.clampVersion }}
53 imagePullPolicy: {{ .Values.pullPolicy }}
54 name: clamp
55 readinessProbe:
56 tcpSocket:
57 port: 8080
58 initialDelaySeconds: 5
59 periodSeconds: 10
60 imagePullSecrets:
61 - name: {{ .Values.nsPrefix }}-docker-registry-key
yurynfcef9942017-10-26 17:10:50 +030062#{{ end }}