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 |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
vaibhav_16dec | a6719fe | 2018-02-14 09:48:43 +0000 | [diff] [blame] | 8 | replicas: {{ .Values.appcReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
| 11 | app: appc |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: appc |
| 16 | name: appc |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 17 | spec: |
kiranya | fd58313 | 2017-11-22 12:34:34 +0000 | [diff] [blame] | 18 | initContainers: |
| 19 | - command: |
| 20 | - /root/ready.py |
| 21 | args: |
| 22 | - --container-name |
| 23 | - appc-db-container |
| 24 | env: |
| 25 | - name: NAMESPACE |
| 26 | valueFrom: |
| 27 | fieldRef: |
| 28 | apiVersion: v1 |
| 29 | fieldPath: metadata.namespace |
| 30 | image: {{ .Values.image.readiness }} |
| 31 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 32 | name: appc-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 33 | containers: |
| 34 | - command: |
| 35 | - /opt/openecomp/appc/bin/startODL.sh |
| 36 | env: |
| 37 | - name: MYSQL_ROOT_PASSWORD |
| 38 | value: openECOMP1.0 |
| 39 | - name: SDNC_CONFIG_DIR |
Alexis de Talhouƫt | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 40 | value: /opt/openecomp/appc/data/properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 41 | - name: APPC_CONFIG_DIR |
| 42 | value: /opt/openecomp/appc/data/properties |
| 43 | - name: DMAAP_TOPIC_ENV |
| 44 | value: SUCCESS |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 45 | - name: MYSQL_HOST |
| 46 | value: appc-dbhost |
kerenj | 6ca15a7 | 2017-08-23 12:05:23 +0000 | [diff] [blame] | 47 | image: {{ .Values.image.appc }} |
| 48 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 49 | name: appc-controller-container |
| 50 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 51 | - mountPath: /etc/localtime |
| 52 | name: localtime |
| 53 | readOnly: true |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 54 | - mountPath: /opt/openecomp/appc/data/properties/dblib.properties |
| 55 | name: appc-openecomp-appc-data-properties |
| 56 | subPath: dblib.properties |
| 57 | - mountPath: /opt/openecomp/appc/data/properties/svclogic.properties |
| 58 | name: appc-openecomp-appc-data-properties |
| 59 | subPath: svclogic.properties |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 60 | - mountPath: /opt/openecomp/appc/data/properties/appc.properties |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 61 | name: appc-openecomp-appc-data-properties |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 62 | subPath: appc.properties |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 63 | - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 64 | name: appc-openecomp-appc-data-properties |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 65 | subPath: aaiclient.properties |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 66 | - mountPath: /opt/openecomp/appc/svclogic/config/svclogic.properties |
| 67 | name: appc-openecomp-appc-svclogic-config |
| 68 | subPath: svclogic.properties |
| 69 | - mountPath: /opt/openecomp/appc/svclogic/bin/showActiveGraphs.sh |
| 70 | name: appc-openecomp-appc-svclogic-bin |
| 71 | subPath: showActiveGraphs.sh |
| 72 | - mountPath: /opt/openecomp/appc/bin/startODL.sh |
| 73 | name: appc-openecomp-appc-bin |
| 74 | subPath: startODL.sh |
| 75 | - mountPath: /opt/openecomp/appc/bin/installAppcDb.sh |
| 76 | name: appc-openecomp-appc-bin |
| 77 | subPath: installAppcDb.sh |
| 78 | - mountPath: /opt/onap/sdnc/data/properties/dblib.properties |
| 79 | name: appc-onap-sdnc-data-properties |
| 80 | subPath: dblib.properties |
| 81 | - mountPath: /opt/onap/sdnc/data/properties/svclogic.properties |
| 82 | name: appc-onap-sdnc-data-properties |
| 83 | subPath: svclogic.properties |
Mandeep Khinda | 9743d84 | 2017-10-05 22:08:08 +0000 | [diff] [blame] | 84 | - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 85 | name: appc-onap-sdnc-data-properties |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 86 | subPath: aaiclient.properties |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 87 | - mountPath: /opt/onap/sdnc/svclogic/config/svclogic.properties |
| 88 | name: appc-onap-sdnc-svclogic-config |
| 89 | subPath: svclogic.properties |
| 90 | - mountPath: /opt/onap/sdnc/svclogic/bin/showActiveGraphs.sh |
| 91 | name: appc-onap-sdnc-svclogic-bin |
| 92 | subPath: showActiveGraphs.sh |
| 93 | - mountPath: /opt/onap/sdnc/bin/startODL.sh |
| 94 | name: appc-onap-sdnc-bin |
| 95 | subPath: startODL.sh |
| 96 | - mountPath: /opt/onap/sdnc/bin/installSdncDb.sh |
| 97 | name: appc-onap-sdnc-bin |
| 98 | subPath: installSdncDb.sh |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 99 | - mountPath: /var/log/onap |
| 100 | name: appc-logs |
| 101 | - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg |
| 102 | name: appc-log-config |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 103 | subPath: org.ops4j.pax.logging.cfg |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 104 | ports: |
| 105 | - containerPort: 8181 |
| 106 | - containerPort: 1830 |
| 107 | readinessProbe: |
| 108 | tcpSocket: |
| 109 | port: 8181 |
| 110 | initialDelaySeconds: 5 |
| 111 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 112 | - image: {{ .Values.image.filebeat }} |
| 113 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 114 | name: filebeat-onap |
| 115 | volumeMounts: |
| 116 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 117 | name: filebeat-conf |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 118 | subPath: filebeat.yml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 119 | - mountPath: /var/log/onap |
| 120 | name: appc-logs |
| 121 | - mountPath: /usr/share/filebeat/data |
| 122 | name: appc-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 123 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 124 | - name: localtime |
| 125 | hostPath: |
| 126 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 127 | - name: filebeat-conf |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 128 | configMap: |
| 129 | name: appc-filebeat-configmap |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 130 | - name: appc-log-config |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 131 | configMap: |
| 132 | name: appc-logging-cfg-configmap |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 133 | - name: appc-logs |
| 134 | emptyDir: {} |
| 135 | - name: appc-data-filebeat |
| 136 | emptyDir: {} |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 137 | - name: appc-openecomp-appc-data-properties |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 138 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 139 | name: appc-openecomp-appc-data-properties-configmap |
| 140 | - name: appc-openecomp-appc-svclogic-config |
| 141 | configMap: |
| 142 | name: appc-openecomp-appc-svclogic-config-configmap |
| 143 | - name: appc-openecomp-appc-svclogic-bin |
| 144 | configMap: |
| 145 | name: appc-openecomp-appc-svclogic-bin-configmap |
| 146 | defaultMode: 0755 |
| 147 | - name: appc-openecomp-appc-bin |
| 148 | configMap: |
| 149 | name: appc-openecomp-appc-bin-configmap |
| 150 | defaultMode: 0755 |
| 151 | - name: appc-onap-sdnc-data-properties |
| 152 | configMap: |
| 153 | name: appc-onap-sdnc-data-properties-configmap |
| 154 | - name: appc-onap-sdnc-svclogic-config |
| 155 | configMap: |
| 156 | name: appc-onap-sdnc-svclogic-config-configmap |
| 157 | - name: appc-onap-sdnc-svclogic-bin |
| 158 | configMap: |
| 159 | name: appc-onap-sdnc-svclogic-bin-configmap |
| 160 | defaultMode: 0755 |
| 161 | - name: appc-onap-sdnc-bin |
| 162 | configMap: |
| 163 | name: appc-onap-sdnc-bin-configmap |
| 164 | defaultMode: 0755 |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 165 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 166 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kiranya | fd58313 | 2017-11-22 12:34:34 +0000 | [diff] [blame] | 167 | #{{ end }} |