blob: d7d697d71d34155569d8d22dc2e7ae1099b2e044 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: pdp
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: pdp
11 template:
12 metadata:
13 labels:
14 app: pdp
15 name: pdp
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 ],
27 "command": [
28 "/root/ready.py"
29 ],
30 "env": [
31 {
32 "name": "NAMESPACE",
33 "valueFrom": {
34 "fieldRef": {
35 "apiVersion": "v1",
36 "fieldPath": "metadata.namespace"
37 }
38 }
39 }
40 ],
Eric Aucdaafde2017-08-31 16:18:11 -040041 "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}",
kerenj3b697f62017-08-23 11:21:21 +000042 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040043 "name": "pdp-readiness"
44 }
45 ]'
46 spec:
47 containers:
48 - command:
49 - /bin/bash
50 - ./do-start.sh
51 - pdp
Eric Aucdaafde2017-08-31 16:18:11 -040052 image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion }}"
kerenj3b697f62017-08-23 11:21:21 +000053 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040054 name: pdp
55 ports:
56 - containerPort: 8081
57 readinessProbe:
58 tcpSocket:
59 port: 8081
60 initialDelaySeconds: 5
61 periodSeconds: 10
62 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030063 - mountPath: /etc/localtime
64 name: localtime
65 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040066 - mountPath: /tmp/policy-install/config
67 name: pe
68 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030069 - name: localtime
70 hostPath:
71 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040072 - name: pe
73 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000074 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
Borislav Glozman5197e2e2017-07-24 10:45:28 +030075 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000076 - name: "{{ .Values.nsPrefix }}-docker-registry-key"