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