Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: appc |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-appc" |
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: |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame^] | 58 | - mountPath: /opt/openecomp/appc/data/properties/appc.properties |
| 59 | name: appc-properties |
| 60 | - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties |
| 61 | name: appc-aaiclient-properties |
| 62 | - mountPath: /opt/openecomp/sdnc/data/properties/aaiclient.properties |
| 63 | name: sdnc-aaiclient-properties |
| 64 | - mountPath: /opt/openecomp/sdnc/data/properties/admportal.json |
| 65 | name: sdnc-admportal-json |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 66 | ports: |
| 67 | - containerPort: 8181 |
| 68 | - containerPort: 1830 |
| 69 | readinessProbe: |
| 70 | tcpSocket: |
| 71 | port: 8181 |
| 72 | initialDelaySeconds: 5 |
| 73 | periodSeconds: 10 |
| 74 | volumes: |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame^] | 75 | - name: appc-properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 76 | hostPath: |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame^] | 77 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/appc.properties |
| 78 | - name: appc-aaiclient-properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 79 | hostPath: |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame^] | 80 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/aaiclient.properties |
| 81 | - name: sdnc-aaiclient-properties |
| 82 | hostPath: |
| 83 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties |
| 84 | - name: sdnc-admportal-json |
| 85 | hostPath: |
| 86 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/admportal.json |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 87 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 88 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |