load balancer

master
Marius Ensrud 4 years ago
parent 7f5bbab805
commit 5b3f6c93af

@ -15,9 +15,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 5.0 version: '5.0'
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to # incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using. # follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 5.0 appVersion: '5.0'

@ -1,3 +1,64 @@
{{- if eq .Values.service.type "LoadBalancer" }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "omada-controller.fullname" . }}
labels:
{{- include "omada-controller.labels" . | nindent 4 }}
annotation:
metallb.universe.tf/allow-shared-ip: omada
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.manage.port }}
targetPort: 8088
protocol: TCP
name: manage
- port: {{ .Values.service.managessl.port }}
targetPort: 8043
protocol: TCP
name: managessl
- port: {{ .Values.service.portalssl.port }}
targetPort: 8843
protocol: TCP
name: portalssl
- port: {{ .Values.service.eapmanage.port }}
targetPort: 29811
protocol: TCP
name: eapmanage
- port: {{ .Values.service.eapadopt.port }}
targetPort: 29812
protocol: TCP
name: eapadopt
- port: {{ .Values.service.eapupgrade.port }}
targetPort: 29813
protocol: TCP
name: eapupgrade
- port: {{ .Values.service.managev2.port }}
targetPort: 29814
protocol: TCP
name: managev2
selector:
{{- include "omada-controller.selectorLabels" . | nindent 4 }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "omada-controller.fullname" . }}-UDP
labels:
{{- include "omada-controller.labels" . | nindent 4 }}
annotation:
metallb.universe.tf/allow-shared-ip: omada
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.eapdiscovery.port }}
targetPort: 29810
protocol: UDP
name: eapdiscovery
selector:
{{- include "omada-controller.selectorLabels" . | nindent 4 }}
{{ else }}
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
@ -46,3 +107,4 @@ spec:
{{- end }} {{- end }}
selector: selector:
{{- include "omada-controller.selectorLabels" . | nindent 4 }} {{- include "omada-controller.selectorLabels" . | nindent 4 }}
{{ end }}

@ -8,7 +8,7 @@ image:
repository: mbentley/omada-controller repository: mbentley/omada-controller
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: 5.0 tag: '5.0'
imagePullSecrets: "" imagePullSecrets: ""
nameOverride: "" nameOverride: ""

Loading…
Cancel
Save