vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame^] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 15 | #{{ if not .Values.disableAppcAppc }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: appc |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 20 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 21 | spec: |
vaibhav_16dec | a6719fe | 2018-02-14 09:48:43 +0000 | [diff] [blame] | 22 | replicas: {{ .Values.appcReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 23 | selector: |
| 24 | matchLabels: |
| 25 | app: appc |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: appc |
| 30 | name: appc |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 31 | spec: |
kiranya | fd58313 | 2017-11-22 12:34:34 +0000 | [diff] [blame] | 32 | initContainers: |
| 33 | - command: |
| 34 | - /root/ready.py |
| 35 | args: |
| 36 | - --container-name |
| 37 | - appc-db-container |
| 38 | env: |
| 39 | - name: NAMESPACE |
| 40 | valueFrom: |
| 41 | fieldRef: |
| 42 | apiVersion: v1 |
| 43 | fieldPath: metadata.namespace |
| 44 | image: {{ .Values.image.readiness }} |
| 45 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 46 | name: appc-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 47 | containers: |
| 48 | - command: |
| 49 | - /opt/openecomp/appc/bin/startODL.sh |
| 50 | env: |
| 51 | - name: MYSQL_ROOT_PASSWORD |
| 52 | value: openECOMP1.0 |
| 53 | - name: SDNC_CONFIG_DIR |
Alexis de Talhouët | 91c7710 | 2017-09-26 10:29:32 -0400 | [diff] [blame] | 54 | value: /opt/openecomp/appc/data/properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 55 | - name: APPC_CONFIG_DIR |
| 56 | value: /opt/openecomp/appc/data/properties |
| 57 | - name: DMAAP_TOPIC_ENV |
| 58 | value: SUCCESS |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 59 | - name: MYSQL_HOST |
| 60 | value: appc-dbhost |
kerenj | 6ca15a7 | 2017-08-23 12:05:23 +0000 | [diff] [blame] | 61 | image: {{ .Values.image.appc }} |
| 62 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 63 | name: appc-controller-container |
| 64 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 65 | - mountPath: /etc/localtime |
| 66 | name: localtime |
| 67 | readOnly: true |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 68 | - mountPath: /opt/openecomp/appc/data/properties/dblib.properties |
| 69 | name: appc-openecomp-appc-data-properties |
| 70 | subPath: dblib.properties |
| 71 | - mountPath: /opt/openecomp/appc/data/properties/svclogic.properties |
| 72 | name: appc-openecomp-appc-data-properties |
| 73 | subPath: svclogic.properties |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 74 | - mountPath: /opt/openecomp/appc/data/properties/appc.properties |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 75 | name: appc-openecomp-appc-data-properties |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 76 | subPath: appc.properties |
Mandeep Khinda | 9f35481 | 2017-08-25 16:18:28 +0000 | [diff] [blame] | 77 | - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 78 | name: appc-openecomp-appc-data-properties |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 79 | subPath: aaiclient.properties |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 80 | - mountPath: /opt/openecomp/appc/svclogic/config/svclogic.properties |
| 81 | name: appc-openecomp-appc-svclogic-config |
| 82 | subPath: svclogic.properties |
| 83 | - mountPath: /opt/openecomp/appc/svclogic/bin/showActiveGraphs.sh |
| 84 | name: appc-openecomp-appc-svclogic-bin |
| 85 | subPath: showActiveGraphs.sh |
| 86 | - mountPath: /opt/openecomp/appc/bin/startODL.sh |
| 87 | name: appc-openecomp-appc-bin |
| 88 | subPath: startODL.sh |
| 89 | - mountPath: /opt/openecomp/appc/bin/installAppcDb.sh |
| 90 | name: appc-openecomp-appc-bin |
| 91 | subPath: installAppcDb.sh |
| 92 | - mountPath: /opt/onap/sdnc/data/properties/dblib.properties |
| 93 | name: appc-onap-sdnc-data-properties |
| 94 | subPath: dblib.properties |
| 95 | - mountPath: /opt/onap/sdnc/data/properties/svclogic.properties |
| 96 | name: appc-onap-sdnc-data-properties |
| 97 | subPath: svclogic.properties |
Mandeep Khinda | 9743d84 | 2017-10-05 22:08:08 +0000 | [diff] [blame] | 98 | - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 99 | name: appc-onap-sdnc-data-properties |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 100 | subPath: aaiclient.properties |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 101 | - mountPath: /opt/onap/sdnc/svclogic/config/svclogic.properties |
| 102 | name: appc-onap-sdnc-svclogic-config |
| 103 | subPath: svclogic.properties |
| 104 | - mountPath: /opt/onap/sdnc/svclogic/bin/showActiveGraphs.sh |
| 105 | name: appc-onap-sdnc-svclogic-bin |
| 106 | subPath: showActiveGraphs.sh |
| 107 | - mountPath: /opt/onap/sdnc/bin/startODL.sh |
| 108 | name: appc-onap-sdnc-bin |
| 109 | subPath: startODL.sh |
| 110 | - mountPath: /opt/onap/sdnc/bin/installSdncDb.sh |
| 111 | name: appc-onap-sdnc-bin |
| 112 | subPath: installSdncDb.sh |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 113 | - mountPath: /var/log/onap |
| 114 | name: appc-logs |
| 115 | - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg |
| 116 | name: appc-log-config |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 117 | subPath: org.ops4j.pax.logging.cfg |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 118 | ports: |
| 119 | - containerPort: 8181 |
| 120 | - containerPort: 1830 |
| 121 | readinessProbe: |
| 122 | tcpSocket: |
| 123 | port: 8181 |
| 124 | initialDelaySeconds: 5 |
| 125 | periodSeconds: 10 |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 126 | - image: {{ .Values.image.filebeat }} |
| 127 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 128 | name: filebeat-onap |
| 129 | volumeMounts: |
| 130 | - mountPath: /usr/share/filebeat/filebeat.yml |
| 131 | name: filebeat-conf |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 132 | subPath: filebeat.yml |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 133 | - mountPath: /var/log/onap |
| 134 | name: appc-logs |
| 135 | - mountPath: /usr/share/filebeat/data |
| 136 | name: appc-data-filebeat |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 137 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 138 | - name: localtime |
| 139 | hostPath: |
| 140 | path: /etc/localtime |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 141 | - name: filebeat-conf |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 142 | configMap: |
| 143 | name: appc-filebeat-configmap |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 144 | - name: appc-log-config |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 145 | configMap: |
| 146 | name: appc-logging-cfg-configmap |
yuryn | d0707be | 2017-09-27 14:54:18 +0300 | [diff] [blame] | 147 | - name: appc-logs |
| 148 | emptyDir: {} |
| 149 | - name: appc-data-filebeat |
| 150 | emptyDir: {} |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 151 | - name: appc-openecomp-appc-data-properties |
mayankg2703 | 8509115 | 2018-01-16 09:42:30 +0000 | [diff] [blame] | 152 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 153 | name: appc-openecomp-appc-data-properties-configmap |
| 154 | - name: appc-openecomp-appc-svclogic-config |
| 155 | configMap: |
| 156 | name: appc-openecomp-appc-svclogic-config-configmap |
| 157 | - name: appc-openecomp-appc-svclogic-bin |
| 158 | configMap: |
| 159 | name: appc-openecomp-appc-svclogic-bin-configmap |
| 160 | defaultMode: 0755 |
| 161 | - name: appc-openecomp-appc-bin |
| 162 | configMap: |
| 163 | name: appc-openecomp-appc-bin-configmap |
| 164 | defaultMode: 0755 |
| 165 | - name: appc-onap-sdnc-data-properties |
| 166 | configMap: |
| 167 | name: appc-onap-sdnc-data-properties-configmap |
| 168 | - name: appc-onap-sdnc-svclogic-config |
| 169 | configMap: |
| 170 | name: appc-onap-sdnc-svclogic-config-configmap |
| 171 | - name: appc-onap-sdnc-svclogic-bin |
| 172 | configMap: |
| 173 | name: appc-onap-sdnc-svclogic-bin-configmap |
| 174 | defaultMode: 0755 |
| 175 | - name: appc-onap-sdnc-bin |
| 176 | configMap: |
| 177 | name: appc-onap-sdnc-bin-configmap |
| 178 | defaultMode: 0755 |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 179 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 180 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
kiranya | fd58313 | 2017-11-22 12:34:34 +0000 | [diff] [blame] | 181 | #{{ end }} |