b57acbeec2381a99e758370c7982bc8f8de25b65
[dcaegen2/services.git] /
1 # ============LICENSE_START==========================================
2 # ===================================================================
3 #  Copyright (c) 2020 QCT
4 #
5 #  Licensed under the Apache License, Version 2.0 (the "License");
6 #  you may not use this file except in compliance with the License.
7 #  You may obtain a copy of the License at
8 #
9 #         http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #============LICENSE_END============================================
17
18
19 apiVersion: apps/v1
20 kind: Deployment
21 metadata:
22   name: {{ include "dcae-datalake-admin-ui.fullname" . }}
23   labels:
24 {{ include "dcae-datalake-admin-ui.labels" . | indent 4 }}
25 spec:
26   replicas: {{ .Values.replicaCount }}
27   selector:
28     matchLabels:
29       app.kubernetes.io/name: {{ include "dcae-datalake-admin-ui.name" . }}
30       app.kubernetes.io/instance: {{ .Release.Name }}
31   template:
32     metadata:
33       labels:
34         app.kubernetes.io/name: {{ include "dcae-datalake-admin-ui.name" . }}
35         app.kubernetes.io/instance: {{ .Release.Name }}
36     spec:
37     {{- with .Values.imagePullSecrets }}
38       imagePullSecrets:
39         {{- toYaml . | nindent 8 }}
40     {{- end }}
41       containers:
42         - name: {{ .Chart.Name }}
43           image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
44           imagePullPolicy: {{ .Values.image.pullPolicy }}
45           ports:
46             - name: http
47               containerPort: 80
48               protocol: TCP
49           livenessProbe:
50             httpGet:
51               path: /
52               port: http
53           readinessProbe:
54             httpGet:
55               path: /
56               port: http
57           resources:
58             {{- toYaml .Values.resources | nindent 12 }}
59       {{- with .Values.nodeSelector }}
60       nodeSelector:
61         {{- toYaml . | nindent 8 }}
62       {{- end }}
63     {{- with .Values.affinity }}
64       affinity:
65         {{- toYaml . | nindent 8 }}
66     {{- end }}
67     {{- with .Values.tolerations }}
68       tolerations:
69         {{- toYaml . | nindent 8 }}
70     {{- end }}