mirror of https://github.com/coder/coder.git
feat: add support for NodePort service type in Helm chart (#8993)
* add support for NodePort service type in Helm chart * fix nodeport values * formatting & make update-golden-files * update-golden-files --------- Co-authored-by: Eric <ericpaulsen@coder.com>
This commit is contained in:
parent
a2d64c08c1
commit
6fd5344d0a
|
@ -16,11 +16,17 @@ spec:
|
|||
port: 80
|
||||
targetPort: "http"
|
||||
protocol: TCP
|
||||
{{ if eq .Values.coder.service.type "NodePort" }}
|
||||
nodePort: {{ .Values.coder.service.httpNodePort }}
|
||||
{{ end }}
|
||||
{{- if eq (include "coder.tlsEnabled" .) "true" }}
|
||||
- name: "https"
|
||||
port: 443
|
||||
targetPort: "https"
|
||||
protocol: TCP
|
||||
{{ if eq .Values.coder.service.type "NodePort" }}
|
||||
nodePort: {{ .Values.coder.service.httpsNodePort }}
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
{{- if eq "LoadBalancer" .Values.coder.service.type }}
|
||||
{{- with .Values.coder.service.loadBalancerIP }}
|
||||
|
|
|
@ -90,6 +90,7 @@ spec:
|
|||
port: 80
|
||||
targetPort: "http"
|
||||
protocol: TCP
|
||||
|
||||
externalTrafficPolicy: "Cluster"
|
||||
selector:
|
||||
app.kubernetes.io/name: coder
|
||||
|
|
|
@ -90,6 +90,7 @@ spec:
|
|||
port: 80
|
||||
targetPort: "http"
|
||||
protocol: TCP
|
||||
|
||||
externalTrafficPolicy: "Cluster"
|
||||
selector:
|
||||
app.kubernetes.io/name: coder
|
||||
|
|
|
@ -90,6 +90,7 @@ spec:
|
|||
port: 80
|
||||
targetPort: "http"
|
||||
protocol: TCP
|
||||
|
||||
externalTrafficPolicy: "Cluster"
|
||||
selector:
|
||||
app.kubernetes.io/name: coder
|
||||
|
|
|
@ -90,6 +90,7 @@ spec:
|
|||
port: 80
|
||||
targetPort: "http"
|
||||
protocol: TCP
|
||||
|
||||
externalTrafficPolicy: "Cluster"
|
||||
selector:
|
||||
app.kubernetes.io/name: coder
|
||||
|
|
|
@ -90,6 +90,7 @@ spec:
|
|||
port: 80
|
||||
targetPort: "http"
|
||||
protocol: TCP
|
||||
|
||||
externalTrafficPolicy: "Cluster"
|
||||
selector:
|
||||
app.kubernetes.io/name: coder
|
||||
|
|
|
@ -91,6 +91,7 @@ spec:
|
|||
port: 80
|
||||
targetPort: "http"
|
||||
protocol: TCP
|
||||
|
||||
externalTrafficPolicy: "Cluster"
|
||||
selector:
|
||||
app.kubernetes.io/name: coder
|
||||
|
|
|
@ -90,10 +90,12 @@ spec:
|
|||
port: 80
|
||||
targetPort: "http"
|
||||
protocol: TCP
|
||||
|
||||
- name: "https"
|
||||
port: 443
|
||||
targetPort: "https"
|
||||
protocol: TCP
|
||||
|
||||
externalTrafficPolicy: "Cluster"
|
||||
selector:
|
||||
app.kubernetes.io/name: coder
|
||||
|
|
|
@ -90,6 +90,7 @@ spec:
|
|||
port: 80
|
||||
targetPort: "http"
|
||||
protocol: TCP
|
||||
|
||||
externalTrafficPolicy: "Cluster"
|
||||
selector:
|
||||
app.kubernetes.io/name: coder
|
||||
|
|
|
@ -241,6 +241,12 @@ coder:
|
|||
# coder.service.annotations -- The service annotations. See:
|
||||
# https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
|
||||
annotations: {}
|
||||
# coder.service.httpNodePort -- Enabled if coder.service.type is set to NodePort.
|
||||
# If not set, Kubernetes will allocate a port from the default range, 30000-32767.
|
||||
httpNodePort: ""
|
||||
# coder.service.httpsNodePort -- Enabled if coder.service.type is set to NodePort.
|
||||
# If not set, Kubernetes will allocate a port from the default range, 30000-32767.
|
||||
httpsNodePort: ""
|
||||
|
||||
# coder.ingress -- The Ingress object to expose for Coder.
|
||||
ingress:
|
||||
|
|
Loading…
Reference in New Issue