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.disableAaiSparkyBe }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 16 | apiVersion: extensions/v1beta1 |
| 17 | kind: Deployment |
| 18 | metadata: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 19 | name: aai-sparky-be |
| 20 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 21 | spec: |
vaibhav_16dec | a97d3fd | 2018-02-14 05:32:10 +0000 | [diff] [blame] | 22 | replicas: {{ .Values.sparkyReplicas }} |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 23 | selector: |
| 24 | matchLabels: |
| 25 | app: sparky-be |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: sparky-be |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 30 | name: aai-sparky-be |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 31 | spec: |
| 32 | containers: |
| 33 | - name: sparky-be |
| 34 | image: "{{ .Values.image.sparkyBeImage }}:{{ .Values.image.sparkyBeVersion }}" |
| 35 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 36 | env: |
| 37 | - name: CONFIG_HOME |
| 38 | value: /opt/app/sparky/config/ |
| 39 | - name: KEY_MANAGER_PASSWORD |
| 40 | value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o |
| 41 | - name: KEY_STORE_PASSWORD |
| 42 | value: OBF:1i9a1u2a1unz1lr61wn51wn11lss1unz1u301i6o |
| 43 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 44 | - mountPath: /etc/localtime |
| 45 | name: localtime |
| 46 | readOnly: true |
mayankg2703 | 9f44dc2 | 2018-02-06 16:40:19 +0000 | [diff] [blame] | 47 | - mountPath: /opt/app/sparky/config/auth/ |
| 48 | name: aai-sparky-be-auth-config |
| 49 | - mountPath: /opt/app/sparky/config/synchronizer.properties |
| 50 | subPath: synchronizer.properties |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 51 | name: aai-sparky-be-config |
mayankg2703 | 9f44dc2 | 2018-02-06 16:40:19 +0000 | [diff] [blame] | 52 | - mountPath: /opt/app/sparky/config/suggestive-search.properties |
| 53 | subPath: suggestive-search.properties |
| 54 | name: aai-sparky-be-config |
| 55 | - mountPath: /opt/app/sparky/config/search-service.properties |
| 56 | subPath: search-service.properties |
| 57 | name: aai-sparky-be-config |
| 58 | - mountPath: /opt/app/sparky/config/roles.config |
| 59 | subPath: roles.config |
| 60 | name: aai-sparky-be-config |
| 61 | - mountPath: /opt/app/sparky/config/elasticsearch.properties |
| 62 | subPath: elasticsearch.properties |
| 63 | name: aai-sparky-be-config |
| 64 | - mountPath: /opt/app/sparky/config/aai.properties |
| 65 | subPath: aai.properties |
| 66 | name: aai-sparky-be-config |
| 67 | - mountPath: /opt/app/sparky/config/model/ |
| 68 | name: aai-sparky-be-model-config |
| 69 | - mountPath: /opt/app/sparky/config/portal/ |
| 70 | name: aai-sparky-be-portal-config |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 71 | - mountPath: /var/log/onap |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 72 | name: aai-sparky-be-logs |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 73 | - mountPath: /opt/app/sparky/bundleconfig/etc/logback.xml |
| 74 | name: aai-sparky-be-log-conf |
| 75 | subPath: logback.xml |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 76 | ports: |
| 77 | - containerPort: 9517 |
| 78 | readinessProbe: |
| 79 | tcpSocket: |
| 80 | port: 9517 |
| 81 | initialDelaySeconds: 5 |
| 82 | periodSeconds: 10 |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 83 | - name: filebeat-onap-aai-sparky |
| 84 | image: {{ .Values.image.filebeat }} |
| 85 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 86 | volumeMounts: |
| 87 | - mountPath: /usr/share/filebeat/filebeat.yml |
mayankg2703 | 9f44dc2 | 2018-02-06 16:40:19 +0000 | [diff] [blame] | 88 | subPath: filebeat.yml |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 89 | name: filebeat-conf |
| 90 | - mountPath: /var/log/onap |
| 91 | name: aai-sparky-be-logs |
| 92 | - mountPath: /usr/share/filebeat/data |
| 93 | name: aai-sparky-filebeat |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 94 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 95 | - name: localtime |
| 96 | hostPath: |
| 97 | path: /etc/localtime |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 98 | - name: aai-sparky-be-config |
mayankg2703 | 9f44dc2 | 2018-02-06 16:40:19 +0000 | [diff] [blame] | 99 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 100 | name: aai-sparky-be-configmap |
mayankg2703 | 9f44dc2 | 2018-02-06 16:40:19 +0000 | [diff] [blame] | 101 | - name: aai-sparky-be-model-config |
| 102 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 103 | name: aai-sparky-be-model-configmap |
mayankg2703 | 9f44dc2 | 2018-02-06 16:40:19 +0000 | [diff] [blame] | 104 | - name: aai-sparky-be-portal-config |
| 105 | configMap: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 106 | name: aai-sparky-be-portal-configmap |
mayankg2703 | 9f44dc2 | 2018-02-06 16:40:19 +0000 | [diff] [blame] | 107 | - name: aai-sparky-be-auth-config |
| 108 | secret: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 109 | secretName: aai-sparky-be-secret |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 110 | - name: filebeat-conf |
mayankg2703 | 9f44dc2 | 2018-02-06 16:40:19 +0000 | [diff] [blame] | 111 | configMap: |
| 112 | name: aai-filebeat-configmap |
BorislavG | b2b9918 | 2017-10-03 15:40:55 +0300 | [diff] [blame] | 113 | - name: aai-sparky-be-logs |
| 114 | emptyDir: {} |
| 115 | - name: aai-sparky-filebeat |
| 116 | emptyDir: {} |
| 117 | - name: aai-sparky-be-log-conf |
| 118 | configMap: |
mayankg2703 | 38d6d7b | 2018-02-07 05:29:22 +0000 | [diff] [blame] | 119 | name: aai-sparky-be-log-configmap |
Mandeep Khinda | 4b88197 | 2017-08-30 14:24:02 +0000 | [diff] [blame] | 120 | restartPolicy: Always |
| 121 | imagePullSecrets: |
| 122 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | 4a022bd | 2017-12-17 16:33:34 +0200 | [diff] [blame] | 123 | #{{ end }} |