Adjust loggers to latest
[oom.git] / kubernetes / portal / templates / portal-widgets-deployment.yaml
1 #{{ if not .Values.disablePortalPortalwidgets }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   name: portalwidgets
6   namespace: "{{ .Values.nsPrefix }}-portal"
7 spec:
8   selector:
9     matchLabels:
10       app: portalwidgets
11   template:
12     metadata:
13        labels:
14          app: portalwidgets
15        name: portalwidgets
16        annotations:
17          pod.beta.kubernetes.io/init-containers: '[
18            {
19                "args": [
20                    "--container-name",
21                    "portaldb"
22                ],
23                "command": [
24                    "/root/ready.py"
25                ],
26                "env": [
27                    {
28                        "name": "NAMESPACE",
29                        "valueFrom": {
30                            "fieldRef": {
31                                "apiVersion": "v1",
32                                "fieldPath": "metadata.namespace"
33                            }
34                        }
35                    }
36                ],
37                "image": "{{ .Values.image.readiness }}",
38                "imagePullPolicy": "{{ .Values.pullPolicy }}",
39                "name": "portalapps-readiness"
40            }
41            ]'
42     spec:
43       containers:
44       - image: {{ .Values.image.portalwms }}
45         imagePullPolicy: {{ .Values.pullPolicy }} 
46         name: portalwidgets
47         volumeMounts:
48         - mountPath: /etc/localtime
49           name: localtime
50           readOnly: true
51         - mountPath: /application.properties
52           name: portalwidgets-application-properties
53         ports:
54         - containerPort: 8082
55         readinessProbe:
56           tcpSocket:
57             port: 8082
58           initialDelaySeconds: 5
59           periodSeconds: 10
60       volumes:
61         - name: localtime
62           hostPath:
63             path: /etc/localtime
64         - name: portalwidgets-application-properties
65           hostPath:
66             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ONAPWIDGETMS/application.properties
67       imagePullSecrets:
68       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
69 #{{ end }}