blob: 91d71d56e8d18554fc4dc650971d098a7797fd93 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: pypdp
5spec:
6 replicas: 1
7 selector:
8 matchLabels:
9 app: pypdp
10 template:
11 metadata:
12 labels:
13 app: pypdp
14 name: pypdp
15 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "mariadb",
21 "--container-name",
22 "nexus",
23 "--container-name",
24 "pap",
25 "--container-name",
26 "pdp"
27 ],
28 "command": [
29 "/root/ready.py"
30 ],
31 "env": [
32 {
33 "name": "NAMESPACE",
34 "valueFrom": {
35 "fieldRef": {
36 "apiVersion": "v1",
37 "fieldPath": "metadata.namespace"
38 }
39 }
40 }
41 ],
42 "image": "oomk8s/readiness-check:1.0.0",
43 "imagePullPolicy": "Always",
44 "name": "pypdp-readiness"
45 }
46 ]'
47 spec:
48 containers:
49 - command:
50 - /bin/bash
51 - ./do-start.sh
52 - pypdp
53 image: nexus3.onap.org:10001/openecomp/policy/policy-pe:1.0-STAGING-latest
54 name: pypdp
55 ports:
56 - containerPort: 8480
57 readinessProbe:
58 tcpSocket:
59 port: 8480
60 initialDelaySeconds: 5
61 periodSeconds: 10
62 volumeMounts:
63 - mountPath: /tmp/policy-install/config
64 name: pe
65 volumes:
66 - name: pe
67 hostPath:
68 path: /dockerdata-nfs/onapdemo/policy/opt/policy/config/pe/
Borislav Glozman5197e2e2017-07-24 10:45:28 +030069 imagePullSecrets:
70 - name: onap-docker-registry-key