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