PLAT-64979 Update c3 c3-nginx-ingress chart to export health port

This commit is contained in:
Pranjay Sagar 2023-05-30 16:53:39 -07:00
parent 5583f90c7f
commit eef4886607
3 changed files with 15 additions and 5 deletions

View file

@ -13,10 +13,8 @@ keywords:
- nginx - nginx
kubeVersion: '>=1.20.0-0' kubeVersion: '>=1.20.0-0'
maintainers: maintainers:
- name: rikatz - name: Pranjay Sagar
- name: strongjz name: c3-nginx-ingress
- name: tao12345666333
name: ingress-nginx
sources: sources:
- https://github.com/kubernetes/ingress-nginx - https://ci-artifacts.c3.ai/v1/helm
version: 4.8.3 version: 4.8.3

View file

@ -76,6 +76,15 @@ spec:
nodePort: {{ .Values.controller.service.nodePorts.https }} nodePort: {{ .Values.controller.service.nodePorts.https }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- if .Values.controller.service.exposeHealthPort }}
- name: health
port: {{ .Values.controller.service.ports.health }}
protocol: TCP
targetPort: {{ .Values.controller.service.targetPorts.health }}
{{- if and (semverCompare ">=1.20" .Capabilities.KubeVersion.Version) (.Values.controller.service.appProtocol) }}
appProtocol: https
{{- end }}
{{- end }}
{{- range $key, $value := .Values.tcp }} {{- range $key, $value := .Values.tcp }}
- name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp - name: {{ if $.Values.portNamePrefix }}{{ $.Values.portNamePrefix }}-{{ end }}{{ $key }}-tcp
port: {{ $key }} port: {{ $key }}

View file

@ -459,6 +459,7 @@ controller:
loadBalancerClass: "" loadBalancerClass: ""
enableHttp: true enableHttp: true
enableHttps: true enableHttps: true
exposeHealthPort: false
## Set external traffic policy to: "Local" to preserve source IP on providers supporting it. ## Set external traffic policy to: "Local" to preserve source IP on providers supporting it.
## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer ## Ref: https://kubernetes.io/docs/tutorials/services/source-ip/#source-ip-for-services-with-typeloadbalancer
# externalTrafficPolicy: "" # externalTrafficPolicy: ""
@ -485,9 +486,11 @@ controller:
ports: ports:
http: 80 http: 80
https: 443 https: 443
health: 10254
targetPorts: targetPorts:
http: http http: http
https: https https: https
health: 10254
type: LoadBalancer type: LoadBalancer
## type: NodePort ## type: NodePort
## nodePorts: ## nodePorts: