Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: pypdp |
| 5 | spec: |
| 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 Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 69 | imagePullSecrets: |
| 70 | - name: onap-docker-registry-key |