Add appProtocol2 feature in service
This commit is contained in:
parent
d44a8e0045
commit
24f7a9c954
1 changed files with 5 additions and 1 deletions
|
@ -64,14 +64,18 @@ spec:
|
|||
nodePort: {{ .Values.controller.service.nodePorts.http }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Values.controller.service.enableHttps }}
|
||||
{{- if or (.Values.controller.service.enableHttps) (.Values.controller.service.enableHttp2) }}
|
||||
- name: https
|
||||
port: {{ .Values.controller.service.ports.https }}
|
||||
protocol: TCP
|
||||
targetPort: {{ .Values.controller.service.targetPorts.https }}
|
||||
{{- if and (semverCompare ">=1.20" .Capabilities.KubeVersion.Version) (.Values.controller.service.appProtocol) }}
|
||||
{{- if (.Values.controller.service.enableHttp2) }}
|
||||
appProtocol: http2
|
||||
{{- else }}
|
||||
appProtocol: https
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if (and $setNodePorts (not (empty .Values.controller.service.nodePorts.https))) }}
|
||||
nodePort: {{ .Values.controller.service.nodePorts.https }}
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue