Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: appc-dgbuilder |
| 5 | spec: |
| 6 | selector: |
| 7 | matchLabels: |
| 8 | app: appc-dgbuilder |
| 9 | template: |
| 10 | metadata: |
| 11 | labels: |
| 12 | app: appc-dgbuilder |
| 13 | name: appc-dgbuilder |
| 14 | annotations: |
| 15 | pod.beta.kubernetes.io/init-containers: '[ |
| 16 | { |
| 17 | "args": [ |
| 18 | "--container-name", |
| 19 | "appc-db-container", |
| 20 | "--container-name", |
| 21 | "appc-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": "appc-dgbuilder-readiness" |
| 40 | } |
| 41 | ]' |
| 42 | spec: |
| 43 | containers: |
| 44 | - command: |
| 45 | - /bin/bash |
| 46 | - -c |
| 47 | - cd /opt/openecomp/sdnc/dgbuilder/ && ./start sdnc1.0 && wait |
| 48 | env: |
| 49 | - name: MYSQL_ROOT_PASSWORD |
| 50 | value: openECOMP1.0 |
| 51 | - name: SDNC_CONFIG_DIR |
| 52 | value: /opt/openecomp/sdnc/data/properties |
| 53 | - name: APPC_CONFIG_DIR |
| 54 | value: /opt/openecomp/appc/data/properties |
Munir Ahmad | 0b13329 | 2017-08-15 15:36:46 -0400 | [diff] [blame] | 55 | image: nexus3.onap.org:10001/openecomp/dgbuilder-sdnc-image:1.1-STAGING-latest |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 56 | name: appc-dgbuilder-container |
| 57 | ports: |
| 58 | - containerPort: 3100 |
| 59 | readinessProbe: |
| 60 | tcpSocket: |
| 61 | port: 3100 |
| 62 | initialDelaySeconds: 5 |
| 63 | periodSeconds: 10 |
| 64 | restartPolicy: Always |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 65 | imagePullSecrets: |
| 66 | - name: onap-docker-registry-key |