Skip to content

feat(helm): add support for nodePort specification in LoadBalancer services helm chart #16032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 20, 2025
Prev Previous commit
Next Next commit
chore(helm): adjust nodeport whitespace in service.yaml template for …
…better readability
  • Loading branch information
MRColorR committed Jan 16, 2025
commit 4c2b7a4ca27ec5c8db08ae43a23e9bcdc76a264f
8 changes: 4 additions & 4 deletions helm/coder/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ spec:
port: 80
targetPort: "http"
protocol: TCP
{{ if or (eq .Values.coder.service.type "NodePort") (eq .Values.coder.service.type "LoadBalancer") }}
{{- if or (eq .Values.coder.service.type "NodePort") (eq .Values.coder.service.type "LoadBalancer") }}
nodePort: {{ .Values.coder.service.httpNodePort }}
{{ end }}
{{- end }}
{{- if eq (include "coder.tlsEnabled" .) "true" }}
- name: "https"
port: 443
targetPort: "https"
protocol: TCP
{{ if or (eq .Values.coder.service.type "NodePort") (eq .Values.coder.service.type "LoadBalancer") }}
{{- if or (eq .Values.coder.service.type "NodePort") (eq .Values.coder.service.type "LoadBalancer") }}
nodePort: {{ .Values.coder.service.httpsNodePort }}
{{ end }}
{{- end }}
{{- end }}
{{- if eq "LoadBalancer" .Values.coder.service.type }}
{{- with .Values.coder.service.loadBalancerIP }}
Expand Down