License addition in all yamls
[oom.git] / kubernetes / aai / templates / sparky-be-deployment.yaml
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
15 #{{ if not .Values.disableAaiSparkyBe }}
16 apiVersion: extensions/v1beta1
17 kind: Deployment
18 metadata:
19   name: aai-sparky-be
20   namespace: "{{ .Values.nsPrefix }}"
21 spec:
22   replicas: {{ .Values.sparkyReplicas }}
23   selector:
24     matchLabels:
25       app: sparky-be
26   template:
27     metadata:
28       labels:
29         app: sparky-be
30       name: aai-sparky-be
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:
44         - mountPath: /etc/localtime
45           name: localtime
46           readOnly: true
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
51           name: aai-sparky-be-config
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
71         - mountPath: /var/log/onap
72           name: aai-sparky-be-logs
73         - mountPath: /opt/app/sparky/bundleconfig/etc/logback.xml
74           name: aai-sparky-be-log-conf
75           subPath: logback.xml
76         ports:
77         - containerPort: 9517
78         readinessProbe:
79           tcpSocket:
80             port: 9517
81           initialDelaySeconds: 5
82           periodSeconds: 10
83       - name: filebeat-onap-aai-sparky
84         image: {{ .Values.image.filebeat }}
85         imagePullPolicy: {{ .Values.pullPolicy }}
86         volumeMounts:
87         - mountPath: /usr/share/filebeat/filebeat.yml
88           subPath: filebeat.yml
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
94       volumes:
95       - name: localtime
96         hostPath:
97           path: /etc/localtime
98       - name: aai-sparky-be-config
99         configMap:
100           name: aai-sparky-be-configmap
101       - name: aai-sparky-be-model-config
102         configMap:
103           name: aai-sparky-be-model-configmap
104       - name: aai-sparky-be-portal-config
105         configMap:
106           name: aai-sparky-be-portal-configmap
107       - name: aai-sparky-be-auth-config
108         secret:
109           secretName: aai-sparky-be-secret
110       - name: filebeat-conf
111         configMap:
112           name: aai-filebeat-configmap
113       - name: aai-sparky-be-logs
114         emptyDir: {}
115       - name: aai-sparky-filebeat
116         emptyDir: {}
117       - name: aai-sparky-be-log-conf
118         configMap:
119          name: aai-sparky-be-log-configmap
120       restartPolicy: Always
121       imagePullSecrets:
122       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
123 #{{ end }}