[stable/unifi] Fixed some mistakes with nodePort (#21320)

Signed-off-by: Arno <arno.du@orange.fr>
This commit is contained in:
Arno DUBOIS 2020-03-07 18:59:34 +01:00 committed by Jeff Billimek
parent 6a3b129a4b
commit 995ef7ef2b
No known key found for this signature in database
GPG Key ID: 214B3EF39B4956B7
4 changed files with 10 additions and 13 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 5.11.50 appVersion: 5.11.50
description: Ubiquiti Network's Unifi Controller description: Ubiquiti Network's Unifi Controller
name: unifi name: unifi
version: 0.6.2 version: 0.6.3
keywords: keywords:
- ubiquiti - ubiquiti
- unifi - unifi

View File

@ -2,7 +2,7 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ template "unifi.fullname" . }}-captivePortalService name: {{ template "unifi.fullname" . }}-captiveportalservice
labels: labels:
app.kubernetes.io/name: {{ include "unifi.name" . }} app.kubernetes.io/name: {{ include "unifi.name" . }}
helm.sh/chart: {{ include "unifi.chart" . }} helm.sh/chart: {{ include "unifi.chart" . }}
@ -45,15 +45,15 @@ spec:
targetPort: captive-http targetPort: captive-http
protocol: TCP protocol: TCP
name: captive-http name: captive-http
{{ if (and (eq .Values.captivePortalService.type "NodePort") (not (empty .Values.captivePortalService.nodePorts.http))) }} {{ if (and (eq .Values.captivePortalService.type "NodePort") (not (empty .Values.captivePortalService.http))) }}
nodePort: {{.Values.captivePortalService.nodePorts.http}} nodePort: {{.Values.captivePortalService.http}}
{{ end }} {{ end }}
- port: {{ .Values.captivePortalService.https }} - port: {{ .Values.captivePortalService.https }}
targetPort: captive-https targetPort: captive-https
protocol: TCP protocol: TCP
name: captive-https name: captive-https
{{ if (and (eq .Values.captivePortalService.type "NodePort") (not (empty .Values.captivePortalService.nodePorts.https))) }} {{ if (and (eq .Values.captivePortalService.type "NodePort") (not (empty .Values.captivePortalService.https))) }}
nodePort: {{.Values.captivePortalService.nodePorts.https}} nodePort: {{.Values.captivePortalService.https}}
{{ end }} {{ end }}
selector: selector:
app.kubernetes.io/name: {{ include "unifi.name" . }} app.kubernetes.io/name: {{ include "unifi.name" . }}

View File

@ -75,14 +75,14 @@ spec:
protocol: TCP protocol: TCP
targetPort: captive-http targetPort: captive-http
{{ if (and (eq .Values.unifiedService.type "NodePort") (not (empty .Values.captivePortalService.http))) }} {{ if (and (eq .Values.unifiedService.type "NodePort") (not (empty .Values.captivePortalService.http))) }}
nodePort: {{.Values.captivePortalService.nodePorts.http}} nodePort: {{.Values.captivePortalService.http}}
{{ end }} {{ end }}
- name: captive-https - name: captive-https
port: {{ .Values.captivePortalService.https }} port: {{ .Values.captivePortalService.https }}
protocol: TCP protocol: TCP
targetPort: captive-https targetPort: captive-https
{{ if (and (eq .Values.unifiedService.type "NodePort") (not (empty .Values.captivePortalService.https))) }} {{ if (and (eq .Values.unifiedService.type "NodePort") (not (empty .Values.captivePortalService.https))) }}
nodePort: {{.Values.captivePortalService.nodePorts.https}} nodePort: {{.Values.captivePortalService.https}}
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -62,14 +62,11 @@ guiService:
captivePortalService: captivePortalService:
enabled: false enabled: false
type: ClusterIP type: ClusterIP
http: 8880
https: 8843
## Specify the nodePort value for the LoadBalancer and NodePort service types. ## Specify the nodePort value for the LoadBalancer and NodePort service types.
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
## ##
# nodePort: http: 8880
# http: 8880 https: 8843
# https: 8843
## Provide any additional annotations which may be required. This can be used to ## Provide any additional annotations which may be required. This can be used to
## set the LoadBalancer service type to internal only. ## set the LoadBalancer service type to internal only.
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer