File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11apiVersion : v2
22name : generic
33description : Generic Chart
4- version : 1.9.0
4+ version : 1.9.1
Original file line number Diff line number Diff line change @@ -17,18 +17,28 @@ metadata:
1717 {{- end }}
1818spec :
1919 type : {{ $service.type }}
20+ {{- if $service.clusterIP }}
21+ clusterIP : {{ $service.clusterIP }}
22+ {{- end }}
2023 {{- if $service.externalName }}
2124 externalName : {{ $service.externalName }}
2225 {{- end }}
26+ {{- if $service.ports }}
2327 ports :
2428 {{- range $port := $service.ports }}
2529 - port : {{ $port.port }}
2630 targetPort : {{ $port.targetPort | default $port.port }}
2731 {{- if $port.name }}
2832 name : {{ $port.name }}
2933 {{- end }}
34+ {{- if $port.protocol }}
35+ protocol : {{ $port.protocol }}
36+ {{- end }}
3037 {{- end }}
38+ {{- end }}
39+ {{- if ne $service.type "ExternalName" }}
3140 selector : {{ $selectorLabels | nindent 4 }}
41+ {{- end }}
3242---
3343{{- end }}
3444{{- end }}
Original file line number Diff line number Diff line change @@ -190,9 +190,12 @@ serviceAccount:
190190# default:
191191# # fullName:
192192# type: ClusterIP
193+ # # clusterIP: None # Set to "None" for headless service, or a specific IP
193194# ports:
194195# - port: 80
195196# # targetPort: 80
197+ # # name: http
198+ # # protocol: TCP
196199
197200# ingresses:
198201# - name: app
You can’t perform that action at this time.
0 commit comments