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