Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: sdnc-portal |
| 5 | spec: |
| 6 | selector: |
| 7 | matchLabels: |
| 8 | app: sdnc-portal |
| 9 | template: |
| 10 | metadata: |
| 11 | labels: |
| 12 | app: sdnc-portal |
| 13 | name: sdnc-portal |
| 14 | annotations: |
| 15 | pod.beta.kubernetes.io/init-containers: '[ |
| 16 | { |
| 17 | "args": [ |
| 18 | "--container-name", |
| 19 | "sdnc-db-container", |
| 20 | "--container-name", |
| 21 | "sdnc-controller-container" |
| 22 | ], |
| 23 | "command": [ |
| 24 | "/root/ready.py" |
| 25 | ], |
| 26 | "env": [ |
| 27 | { |
| 28 | "name": "NAMESPACE", |
| 29 | "valueFrom": { |
| 30 | "fieldRef": { |
| 31 | "apiVersion": "v1", |
| 32 | "fieldPath": "metadata.namespace" |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | ], |
| 37 | "image": "oomk8s/readiness-check:1.0.0", |
| 38 | "imagePullPolicy": "Always", |
| 39 | "name": "sdnc-portal-readiness" |
| 40 | } |
| 41 | ]' |
| 42 | spec: |
| 43 | containers: |
| 44 | - command: |
| 45 | - /bin/bash |
| 46 | - -c |
| 47 | - cd /opt/openecomp/sdnc/admportal/shell && ./start_portal.sh |
| 48 | env: |
| 49 | - name: MYSQL_ROOT_PASSWORD |
| 50 | value: openECOMP1.0 |
| 51 | - name: SDNC_CONFIG_DIR |
| 52 | value: /opt/openecomp/sdnc/data/properties |
| 53 | image: nexus3.onap.org:10001/openecomp/admportal-sdnc-image:1.0-STAGING-latest |
| 54 | name: sdnc-portal-container |
| 55 | ports: |
| 56 | - containerPort: 8843 |
| 57 | readinessProbe: |
| 58 | tcpSocket: |
| 59 | port: 8843 |
| 60 | initialDelaySeconds: 5 |
| 61 | periodSeconds: 10 |
| 62 | restartPolicy: Always |