Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: appc |
kerenj | 6ca15a7 | 2017-08-23 12:05:23 +0000 | [diff] [blame] | 5 | namespace: {{ .Values.NS }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 6 | spec: |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: appc |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: appc |
| 14 | name: appc |
| 15 | annotations: |
| 16 | pod.beta.kubernetes.io/init-containers: '[ |
| 17 | { |
| 18 | "args": [ |
| 19 | "--container-name", |
| 20 | "appc-db-container" |
| 21 | ], |
| 22 | "command": [ |
| 23 | "/root/ready.py" |
| 24 | ], |
| 25 | "env": [ |
| 26 | { |
| 27 | "name": "NAMESPACE", |
| 28 | "valueFrom": { |
| 29 | "fieldRef": { |
| 30 | "apiVersion": "v1", |
| 31 | "fieldPath": "metadata.namespace" |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | ], |
kerenj | 6ca15a7 | 2017-08-23 12:05:23 +0000 | [diff] [blame] | 36 | "image": "{{ .Values.image.readiness }}", |
| 37 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 38 | "name": "appc-readiness" |
| 39 | } |
| 40 | ]' |
| 41 | spec: |
| 42 | containers: |
| 43 | - command: |
| 44 | - /opt/openecomp/appc/bin/startODL.sh |
| 45 | env: |
| 46 | - name: MYSQL_ROOT_PASSWORD |
| 47 | value: openECOMP1.0 |
| 48 | - name: SDNC_CONFIG_DIR |
| 49 | value: /opt/openecomp/sdnc/data/properties |
| 50 | - name: APPC_CONFIG_DIR |
| 51 | value: /opt/openecomp/appc/data/properties |
| 52 | - name: DMAAP_TOPIC_ENV |
| 53 | value: SUCCESS |
kerenj | 6ca15a7 | 2017-08-23 12:05:23 +0000 | [diff] [blame] | 54 | image: {{ .Values.image.appc }} |
| 55 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 56 | name: appc-controller-container |
| 57 | volumeMounts: |
| 58 | - mountPath: /opt/openecomp/appc/data/properties |
| 59 | name: appc-conf |
| 60 | - mountPath: /opt/openecomp/sdnc/data/properties |
| 61 | name: sdnc-conf |
| 62 | ports: |
| 63 | - containerPort: 8181 |
| 64 | - containerPort: 1830 |
| 65 | readinessProbe: |
| 66 | tcpSocket: |
| 67 | port: 8181 |
| 68 | initialDelaySeconds: 5 |
| 69 | periodSeconds: 10 |
| 70 | volumes: |
| 71 | - name: appc-conf |
| 72 | hostPath: |
kerenj | 6ca15a7 | 2017-08-23 12:05:23 +0000 | [diff] [blame] | 73 | path: /dockerdata-nfs/onap/appc/conf |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 74 | - name: sdnc-conf |
| 75 | hostPath: |
kerenj | 6ca15a7 | 2017-08-23 12:05:23 +0000 | [diff] [blame] | 76 | path: /dockerdata-nfs/onap/sdnc/conf |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 77 | imagePullSecrets: |
| 78 | - name: onap-docker-registry-key |