File tree 6 files changed +56
-28
lines changed
charts/kubernetes-dashboard
6 files changed +56
-28
lines changed Original file line number Diff line number Diff line change 14
14
15
15
apiVersion : v2
16
16
name : kubernetes-dashboard
17
- version : 7.10.2
17
+ version : 7.10.3
18
18
description : General-purpose web UI for Kubernetes clusters
19
19
keywords :
20
20
- kubernetes
Original file line number Diff line number Diff line change @@ -30,15 +30,19 @@ metadata:
30
30
{{- end }}
31
31
name : {{ template "kubernetes-dashboard.fullname" . }}-{{ .Values.api.role }}
32
32
spec :
33
+ type : {{ .Values.api.service.type }}
33
34
ports :
34
- {{- with (index .Values.api.containers.ports 0) }}
35
- - name : {{ .name }}
36
- port : {{ .containerPort }}
37
- {{ if .protocol }}protocol: {{ .protocol }}{{- end }}
38
- {{ if .appProtocol }}appProtocol: {{ .appProtocol }}{{- end }}
39
- {{ if .nodePort }}nodePort: {{ .nodePort }}{{- end }}
40
- {{ if .targetPort }}targetPort: {{ .targetPort }}{{- end }}
35
+ {{- range $port := .Values.api.containers.ports }}
36
+ - name : {{ $port .name }}
37
+ port : {{ $port .containerPort }}
38
+ {{ if $port .protocol }}protocol: {{ $port .protocol }}{{- end }}
39
+ {{ if $port .appProtocol }}appProtocol: {{ $port .appProtocol }}{{- end }}
40
+ {{ if $port .nodePort }}nodePort: {{ $port .nodePort }}{{- end }}
41
+ {{ if $port .targetPort }}targetPort: {{ $port .targetPort }}{{- end }}
41
42
{{- end }}
43
+ {{ with .Values.api.service.extraSpec }}
44
+ {{ . | toYaml | nindent 2 }}
45
+ {{- end }}
42
46
selector :
43
47
{{- include "kubernetes-dashboard.matchLabels" . | nindent 4 }}
44
48
app.kubernetes.io/name : {{ template "kubernetes-dashboard.name" . }}-{{ .Values.api.role }}
Original file line number Diff line number Diff line change @@ -32,15 +32,19 @@ metadata:
32
32
{{- end }}
33
33
name : {{ template "kubernetes-dashboard.fullname" . }}-{{ .Values.auth.role }}
34
34
spec :
35
+ type : {{ .Values.auth.service.type }}
35
36
ports :
36
- {{- with (index .Values.auth.containers.ports 0) }}
37
- - name : {{ .name }}
38
- port : {{ .containerPort }}
39
- {{ if .protocol }}protocol: {{ .protocol }}{{- end }}
40
- {{ if .appProtocol }}appProtocol: {{ .appProtocol }}{{- end }}
41
- {{ if .nodePort }}nodePort: {{ .nodePort }}{{- end }}
42
- {{ if .targetPort }}targetPort: {{ .targetPort }}{{- end }}
37
+ {{- range $port := .Values.auth.containers.ports }}
38
+ - name : {{ $port .name }}
39
+ port : {{ $port .containerPort }}
40
+ {{ if $port .protocol }}protocol: {{ $port .protocol }}{{- end }}
41
+ {{ if $port .appProtocol }}appProtocol: {{ $port .appProtocol }}{{- end }}
42
+ {{ if $port .nodePort }}nodePort: {{ $port .nodePort }}{{- end }}
43
+ {{ if $port .targetPort }}targetPort: {{ $port .targetPort }}{{- end }}
43
44
{{- end }}
45
+ {{ with .Values.auth.service.extraSpec }}
46
+ {{ . | toYaml | nindent 2 }}
47
+ {{- end }}
44
48
selector :
45
49
{{- include "kubernetes-dashboard.matchLabels" . | nindent 4 }}
46
50
app.kubernetes.io/name : {{ template "kubernetes-dashboard.name" . }}-{{ .Values.auth.role }}
Original file line number Diff line number Diff line change @@ -32,16 +32,20 @@ metadata:
32
32
{{- end }}
33
33
name : {{ template "kubernetes-dashboard.metrics-scraper.name" . }}
34
34
spec :
35
+ type : {{ .Values.metricsScraper.service.type }}
35
36
ports :
36
- {{- with (index .Values.metricsScraper.containers.ports 0) }}
37
+ {{- range $port := .Values.metricsScraper.containers.ports }}
37
38
# Name is intentionally not used here as it breaks the connection between API <-> Scraper
38
39
# Named ports have an issue when trying to connect through in-cluster service proxy.
39
- - port : {{ .containerPort }}
40
- {{ if .protocol }}protocol: {{ .protocol }}{{- end }}
41
- {{ if .appProtocol }}appProtocol: {{ .appProtocol }}{{- end }}
42
- {{ if .nodePort }}nodePort: {{ .nodePort }}{{- end }}
43
- {{ if .targetPort }}targetPort: {{ .targetPort }}{{- end }}
40
+ - port : {{ $port .containerPort }}
41
+ {{ if $port .protocol }}protocol: {{ $port .protocol }}{{- end }}
42
+ {{ if $port .appProtocol }}appProtocol: {{ $port .appProtocol }}{{- end }}
43
+ {{ if $port .nodePort }}nodePort: {{ $port .nodePort }}{{- end }}
44
+ {{ if $port .targetPort }}targetPort: {{ $port .targetPort }}{{- end }}
44
45
{{- end }}
46
+ {{ with .Values.metricsScraper.service.extraSpec }}
47
+ {{ . | toYaml | nindent 2 }}
48
+ {{- end }}
45
49
selector :
46
50
{{- include "kubernetes-dashboard.matchLabels" . | nindent 4 }}
47
51
app.kubernetes.io/name : {{ template "kubernetes-dashboard.name" . }}-{{ .Values.metricsScraper.role }}
Original file line number Diff line number Diff line change @@ -32,15 +32,19 @@ metadata:
32
32
{{- end }}
33
33
name : {{ template "kubernetes-dashboard.fullname" . }}-{{ .Values.web.role }}
34
34
spec :
35
+ type : {{ .Values.web.service.type }}
35
36
ports :
36
- {{- with (index .Values.web.containers.ports 0) }}
37
- - name : {{ .name }}
38
- port : {{ .containerPort }}
39
- {{ if .protocol }}protocol: {{ .protocol }}{{- end }}
40
- {{ if .appProtocol }}appProtocol: {{ .appProtocol }}{{- end }}
41
- {{ if .nodePort }}nodePort: {{ .nodePort }}{{- end }}
42
- {{ if .targetPort }}targetPort: {{ .targetPort }}{{- end }}
37
+ {{- range $port := .Values.web.containers.ports }}
38
+ - name : {{ $port .name }}
39
+ port : {{ $port .containerPort }}
40
+ {{ if $port .protocol }}protocol: {{ $port .protocol }}{{- end }}
41
+ {{ if $port .appProtocol }}appProtocol: {{ $port .appProtocol }}{{- end }}
42
+ {{ if $port .nodePort }}nodePort: {{ $port .nodePort }}{{- end }}
43
+ {{ if $port .targetPort }}targetPort: {{ $port .targetPort }}{{- end }}
43
44
{{- end }}
45
+ {{ with .Values.web.service.extraSpec }}
46
+ {{ . | toYaml | nindent 2 }}
47
+ {{- end }}
44
48
selector :
45
49
{{- include "kubernetes-dashboard.matchLabels" . | nindent 4 }}
46
50
app.kubernetes.io/name : {{ template "kubernetes-dashboard.name" . }}-{{ .Values.web.role }}
Original file line number Diff line number Diff line change @@ -149,6 +149,9 @@ auth:
149
149
scaling :
150
150
replicas : 1
151
151
revisionHistoryLimit : 10
152
+ service :
153
+ type : ClusterIP
154
+ extraSpec : ~
152
155
containers :
153
156
ports :
154
157
- name : auth
188
191
scaling :
189
192
replicas : 1
190
193
revisionHistoryLimit : 10
194
+ service :
195
+ type : ClusterIP
196
+ extraSpec : ~
191
197
containers :
192
198
ports :
193
199
- name : api
245
251
scaling :
246
252
replicas : 1
247
253
revisionHistoryLimit : 10
254
+ service :
255
+ type : ClusterIP
256
+ extraSpec : ~
248
257
containers :
249
258
ports :
250
259
- name : web
@@ -305,6 +314,9 @@ metricsScraper:
305
314
scaling :
306
315
replicas : 1
307
316
revisionHistoryLimit : 10
317
+ service :
318
+ type : ClusterIP
319
+ extraSpec : ~
308
320
containers :
309
321
ports :
310
322
- containerPort : 8000
You can’t perform that action at this time.
0 commit comments