yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableAppcAppc }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: appc |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-appc" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: appc |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: appc |
| 15 | name: appc |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 16 | spec: |
kiranya | fd58313 | 2017-11-22 12:34:34 +0000 | [diff] [blame^] | 17 | initContainers: |
| 18 | - command: |
| 19 | - /root/ready.py |
| 20 | args: |
| 21 | - --container-name |
| 22 | - appc-db-container |
| 23 | env: |
| 24 | - name: NAMESPACE |
| 25 | valueFrom: |
| 26 | fieldRef: |
| 27 | apiVersion: v1 |
| 28 | fieldPath: metadata.namespace |
| 29 | image: {{ .Values.image.readiness }} |
| 30 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 31 | name: appc-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 32 | containers: |
| 33 | - command: |
| 34 | - /opt/openecomp/appc/bin/startODL.sh |
| 35 | env: |
| 36 | - name: MYSQL_ROOT_PASSWORD |
| 37 | value: openECOMP1.0 |
| 38 | - name: SDNC_CONFIG_DIR |
Alexis de Talhouƫt | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 39 | value: /opt/openecomp/appc/data/properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 40 | - name: APPC_CONFIG_DIR |
| 41 | value: /opt/openecomp/appc/data/properties |
| 42 | - name: DMAAP_TOPIC_ENV |
| 43 | value: SUCCESS |
kerenj | 6ca15a7 | 2017-08-23 12:05:23 +0000 | [diff] [blame] | 44 | image: {{ .Values.image.appc }} |
| 45 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 46 | name: appc-controller-container |
| 47 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 48 | - mountPath: /etc/localtime |
| 49 | name: localtime |
| 50 | readOnly: true |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 51 | - mountPath: /opt/openecomp/appc/data/properties/appc.properties |
| 52 | name: appc-properties |
| 53 | - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties |
| 54 | name: appc-aaiclient-properties |
Mandeep Khinda | 9743d84 | 2017-10-05 22:08:08 +0000 | [diff] [blame] | 55 | - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 56 | name: sdnc-aaiclient-properties |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 57 | - mountPath: /var/log/onap |
| 58 | name: appc-logs |
| 59 | - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg |
| 60 | name: appc-log-config |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 61 | ports: |
| 62 | - containerPort: 8181 |
| 63 | - containerPort: 1830 |
| 64 | readinessProbe: |
| 65 | tcpSocket: |
| 66 | port: 8181 |
| 67 | initialDelaySeconds: 5 |
| 68 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 69 | - image: {{ .Values.image.filebeat }} |
| 70 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 71 | name: filebeat-onap |
| 72 | volumeMounts: |
| 73 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 74 | name: filebeat-conf |
| 75 | - mountPath: /var/log/onap |
| 76 | name: appc-logs |
| 77 | - mountPath: /usr/share/filebeat/data |
| 78 | name: appc-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 79 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 80 | - name: localtime |
| 81 | hostPath: |
| 82 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 83 | - name: filebeat-conf |
| 84 | hostPath: |
| 85 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml |
| 86 | - name: appc-log-config |
| 87 | hostPath: |
| 88 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/appc/org.ops4j.pax.logging.cfg |
| 89 | - name: appc-logs |
| 90 | emptyDir: {} |
| 91 | - name: appc-data-filebeat |
| 92 | emptyDir: {} |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 93 | - name: appc-properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 94 | hostPath: |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 95 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/appc.properties |
| 96 | - name: appc-aaiclient-properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 97 | hostPath: |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 98 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/aaiclient.properties |
| 99 | - name: sdnc-aaiclient-properties |
| 100 | hostPath: |
| 101 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 102 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 103 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kiranya | fd58313 | 2017-11-22 12:34:34 +0000 | [diff] [blame^] | 104 | #{{ end }} |