blob: 1b6669e64fc81aa73c894a2a48d695cb978c93d8 [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.disablePortalPortalwidgets }}
Mandeep Khinda82c63d32017-08-21 16:04:37 -040016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +000019 name: portal-widgets
20 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khinda82c63d32017-08-21 16:04:37 -040021spec:
vaibhav_16dec49302052018-02-15 10:00:06 +000022 replicas: {{ .Values.portalWidgetsReplicas }}
Mandeep Khinda82c63d32017-08-21 16:04:37 -040023 selector:
24 matchLabels:
25 app: portalwidgets
26 template:
27 metadata:
28 labels:
29 app: portalwidgets
BorislavG8bfc6cf2018-02-27 15:04:26 +000030 name: portal-widgets
Mandeep Khinda82c63d32017-08-21 16:04:37 -040031 spec:
vasundhra6f620442017-11-22 12:26:25 +000032 initContainers:
33 - command:
34 - /root/ready.py
35 args:
36 - --container-name
37 - portaldb
38 env:
39 - name: NAMESPACE
40 valueFrom:
41 fieldRef:
42 apiVersion: v1
43 fieldPath: metadata.namespace
44 image: {{ .Values.image.readiness }}
45 imagePullPolicy: {{ .Values.pullPolicy }}
46 name: portalapps-readiness
Mandeep Khinda82c63d32017-08-21 16:04:37 -040047 containers:
kerenjcbac0102017-08-23 10:22:33 +000048 - image: {{ .Values.image.portalwms }}
mayankc8f632c2018-01-21 10:08:25 +000049 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khinda82c63d32017-08-21 16:04:37 -040050 name: portalwidgets
51 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030052 - mountPath: /etc/localtime
53 name: localtime
54 readOnly: true
Mandeep Khinda82c63d32017-08-21 16:04:37 -040055 - mountPath: /application.properties
56 name: portalwidgets-application-properties
mayankc8f632c2018-01-21 10:08:25 +000057 subPath: application.properties
Mandeep Khinda82c63d32017-08-21 16:04:37 -040058 ports:
59 - containerPort: 8082
60 readinessProbe:
61 tcpSocket:
62 port: 8082
63 initialDelaySeconds: 5
64 periodSeconds: 10
65 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030066 - name: localtime
67 hostPath:
68 path: /etc/localtime
Mandeep Khinda82c63d32017-08-21 16:04:37 -040069 - name: portalwidgets-application-properties
mayankc8f632c2018-01-21 10:08:25 +000070 configMap:
71 name: portal-onapwidgetms-configmap
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000072 imagePullSecrets:
yurynfcef9942017-10-26 17:10:50 +030073 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra6f620442017-11-22 12:26:25 +000074#{{ end }}