1+ {{- if .Values.ui.enabled -}}
2+ apiVersion : apps/v1
3+ kind : Deployment
4+ metadata :
5+ name : {{ include "chart.fullname" . }}-ui
6+ namespace : {{ .Release.Namespace }}
7+ labels :
8+ {{- include "chart.labels-ui" . | nindent 4 }}
9+ {{- with .Values.extraLabels }}
10+ {{ toYaml . | indent 4 }}
11+ {{- end }}
12+ {{- with .Values.annotations }}
13+ annotations :
14+ {{- toYaml . | nindent 4 }}
15+ {{- end }}
16+ spec :
17+ replicas : 1
18+ {{- with .Values.strategy }}
19+ strategy :
20+ {{- toYaml . | nindent 4 }}
21+ {{- end }}
22+ selector :
23+ matchLabels :
24+ {{- include "chart.selectorLabels-ui" . | nindent 6 }}
25+ template :
26+ metadata :
27+ labels :
28+ {{- include "chart.selectorLabels-ui" . | nindent 8 }}
29+ spec :
30+ {{- with .Values.imagePullSecrets }}
31+ imagePullSecrets :
32+ {{- toYaml . | nindent 8 }}
33+ {{- end }}
34+ {{- with .Values.tolerations }}
35+ tolerations :
36+ {{- toYaml . | nindent 8 }}
37+ {{- end }}
38+ serviceAccountName : {{ include "chart.serviceAccountName" . }}
39+ {{- with .Values.podSecurityContext }}
40+ securityContext :
41+ {{- toYaml . | nindent 8 }}
42+ {{- end }}
43+ containers :
44+ - image : {{ .Values.ui.image.repository }}:{{ default .Chart.AppVersion .Values.ui.image.tag }}
45+ {{- if .Values.ui.args }}
46+ args :
47+ {{- toYaml .Values.ui.args | nindent 10 }}
48+ {{- end }}
49+ env :
50+ - name : VITE_ROOT_API_URL
51+ value : " {{ template " chart.fullname" . }}-cache-api:{{ .Values.cacheAPI.port }}"
52+ {{- with .Values.ui.envs }}
53+ {{- tpl . $ | nindent 10 }}
54+ {{- end }}
55+ ports :
56+ - name : http
57+ containerPort : {{ .Values.ui.port }}
58+ protocol : TCP
59+ {{- with .Values.securityContext }}
60+ securityContext :
61+ {{- toYaml . | nindent 10 }}
62+ {{- end }}
63+ imagePullPolicy : {{ .Values.image.pullPolicy }}
64+ name : envoy-xds-controller-ui
65+ resources :
66+ {{ toYaml .Values.ui.resources | indent 12 }}
67+ {{- end }}
0 commit comments