blob: 75055c10d858be7aca9b4598693062189fe21491 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: drools
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-policy"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
7 replicas: 1
8 selector:
9 matchLabels:
10 app: drools
11 template:
12 metadata:
13 labels:
14 app: drools
15 name: drools
16 annotations:
17 pod.beta.kubernetes.io/init-containers: '[
18 {
19 "args": [
20 "--container-name",
21 "mariadb",
22 "--container-name",
23 "nexus",
24 "--container-name",
25 "pap",
26 "--container-name",
27 "pdp",
28 "--container-name",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040029 "brmsgw"
30 ],
31 "command": [
32 "/root/ready.py"
33 ],
34 "env": [
35 {
36 "name": "NAMESPACE",
37 "valueFrom": {
38 "fieldRef": {
39 "apiVersion": "v1",
40 "fieldPath": "metadata.namespace"
41 }
42 }
43 }
44 ],
Eric Aucdaafde2017-08-31 16:18:11 -040045 "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}",
kerenj3b697f62017-08-23 11:21:21 +000046 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040047 "name": "drools-readiness"
48 }
49 ]'
50 spec:
51 containers:
52 - command:
53 - /bin/bash
54 - -c
55 - ./do-start.sh
Eric Aucdaafde2017-08-31 16:18:11 -040056 image: "{{ .Values.image.policyDrools }}:{{ .Values.image.policyDroolsVersion }}"
kerenj3b697f62017-08-23 11:21:21 +000057 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040058 name: drools
59 ports:
60 - containerPort: 6969
61 readinessProbe:
62 tcpSocket:
63 port: 6969
64 initialDelaySeconds: 5
65 periodSeconds: 10
66 volumeMounts:
67 - mountPath: /tmp/policy-install/config
68 name: drools
69 - mountPath: /usr/share/maven/conf/settings.xml
70 name: drools-settingsxml
71 volumes:
72 - name: drools-settingsxml
73 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000074 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/drools/settings.xml
Mandeep Khindad6ea9872017-06-24 11:49:37 -040075 - name: drools
76 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000077 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/drools/
Borislav Glozman5197e2e2017-07-24 10:45:28 +030078 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000079 - name: "{{ .Values.nsPrefix }}-docker-registry-key"