blob: 4b3196910e11c386a3fd160d90d73b277fdddef1 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# 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
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableAaiSparkyBe }}
Mandeep Khinda4b881972017-08-30 14:24:02 +000016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000019 name: aai-sparky-be
20 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khinda4b881972017-08-30 14:24:02 +000021spec:
vaibhav_16deca97d3fd2018-02-14 05:32:10 +000022 replicas: {{ .Values.sparkyReplicas }}
Mandeep Khinda4b881972017-08-30 14:24:02 +000023 selector:
24 matchLabels:
25 app: sparky-be
26 template:
27 metadata:
28 labels:
29 app: sparky-be
BorislavG8bfc6cf2018-02-27 15:04:26 +000030 name: aai-sparky-be
Mandeep Khinda4b881972017-08-30 14:24:02 +000031 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:
yuryn8b3bc5a2017-09-13 19:21:03 +030044 - mountPath: /etc/localtime
45 name: localtime
46 readOnly: true
mayankg27039f44dc22018-02-06 16:40:19 +000047 - 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 Khinda4b881972017-08-30 14:24:02 +000051 name: aai-sparky-be-config
mayankg27039f44dc22018-02-06 16:40:19 +000052 - 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
BorislavGb2b99182017-10-03 15:40:55 +030071 - mountPath: /var/log/onap
Mandeep Khinda4b881972017-08-30 14:24:02 +000072 name: aai-sparky-be-logs
BorislavGb2b99182017-10-03 15:40:55 +030073 - mountPath: /opt/app/sparky/bundleconfig/etc/logback.xml
74 name: aai-sparky-be-log-conf
75 subPath: logback.xml
Mandeep Khinda4b881972017-08-30 14:24:02 +000076 ports:
77 - containerPort: 9517
78 readinessProbe:
79 tcpSocket:
80 port: 9517
81 initialDelaySeconds: 5
82 periodSeconds: 10
BorislavGb2b99182017-10-03 15:40:55 +030083 - name: filebeat-onap-aai-sparky
84 image: {{ .Values.image.filebeat }}
85 imagePullPolicy: {{ .Values.pullPolicy }}
86 volumeMounts:
87 - mountPath: /usr/share/filebeat/filebeat.yml
mayankg27039f44dc22018-02-06 16:40:19 +000088 subPath: filebeat.yml
BorislavGb2b99182017-10-03 15:40:55 +030089 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 Khinda4b881972017-08-30 14:24:02 +000094 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030095 - name: localtime
96 hostPath:
97 path: /etc/localtime
Mandeep Khinda4b881972017-08-30 14:24:02 +000098 - name: aai-sparky-be-config
mayankg27039f44dc22018-02-06 16:40:19 +000099 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000100 name: aai-sparky-be-configmap
mayankg27039f44dc22018-02-06 16:40:19 +0000101 - name: aai-sparky-be-model-config
102 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000103 name: aai-sparky-be-model-configmap
mayankg27039f44dc22018-02-06 16:40:19 +0000104 - name: aai-sparky-be-portal-config
105 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000106 name: aai-sparky-be-portal-configmap
mayankg27039f44dc22018-02-06 16:40:19 +0000107 - name: aai-sparky-be-auth-config
108 secret:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000109 secretName: aai-sparky-be-secret
BorislavGb2b99182017-10-03 15:40:55 +0300110 - name: filebeat-conf
mayankg27039f44dc22018-02-06 16:40:19 +0000111 configMap:
112 name: aai-filebeat-configmap
BorislavGb2b99182017-10-03 15:40:55 +0300113 - name: aai-sparky-be-logs
114 emptyDir: {}
115 - name: aai-sparky-filebeat
116 emptyDir: {}
117 - name: aai-sparky-be-log-conf
118 configMap:
mayankg270338d6d7b2018-02-07 05:29:22 +0000119 name: aai-sparky-be-log-configmap
Mandeep Khinda4b881972017-08-30 14:24:02 +0000120 restartPolicy: Always
121 imagePullSecrets:
122 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG4a022bd2017-12-17 16:33:34 +0200123#{{ end }}