Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: pypdp |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 5 | namespace: {{ .Values.NS }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 6 | spec: |
| 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 | ], |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 43 | "image": "{{ .Values.image.readiness }}", |
| 44 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 45 | "name": "pypdp-readiness" |
| 46 | } |
| 47 | ]' |
| 48 | spec: |
| 49 | containers: |
| 50 | - command: |
| 51 | - /bin/bash |
| 52 | - ./do-start.sh |
| 53 | - pypdp |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 54 | image: {{ .Values.image.policyPe }} |
| 55 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 56 | 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: |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 70 | path: /dockerdata-nfs/onap/policy/opt/policy/config/pe/ |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 71 | imagePullSecrets: |
| 72 | - name: onap-docker-registry-key |