blob: 4e2c9b62a1d69853fe21fd364734aca4027260b9 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: pypdp
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: pypdp
11 template:
12 metadata:
13 labels:
14 app: pypdp
15 name: pypdp
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 ],
29 "command": [
30 "/root/ready.py"
31 ],
32 "env": [
33 {
34 "name": "NAMESPACE",
35 "valueFrom": {
36 "fieldRef": {
37 "apiVersion": "v1",
38 "fieldPath": "metadata.namespace"
39 }
40 }
41 }
42 ],
kerenj3b697f62017-08-23 11:21:21 +000043 "image": "{{ .Values.image.readiness }}",
44 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040045 "name": "pypdp-readiness"
46 }
47 ]'
48 spec:
49 containers:
50 - command:
51 - /bin/bash
52 - ./do-start.sh
53 - pypdp
kerenj3b697f62017-08-23 11:21:21 +000054 image: {{ .Values.image.policyPe }}
55 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 name: pypdp
57 ports:
58 - containerPort: 8480
59 readinessProbe:
60 tcpSocket:
61 port: 8480
62 initialDelaySeconds: 5
63 periodSeconds: 10
64 volumeMounts:
65 - mountPath: /tmp/policy-install/config
66 name: pe
67 volumes:
68 - name: pe
69 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000070 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
Borislav Glozman5197e2e2017-07-24 10:45:28 +030071 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000072 - name: "{{ .Values.nsPrefix }}-docker-registry-key"