Skip to content
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

Make Ingress optional and ingressClass configurable #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions livekit-server/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and (ne .Values.loadBalancer.type "disable") (ne .Values.loadBalancer.type "gclb") -}}
{{- if and (ne .Values.loadBalancer.type "disable") (ne .Values.loadBalancer.type "gclb") (eq .Values.ingress.enable true) -}}
{{- $fullName := include "livekit-server.fullname" . -}}
{{- $svcPort := .Values.loadBalancer.servicePort -}}
kind: Ingress
Expand All @@ -13,7 +13,7 @@ metadata:
{{- end }}
# AWS ALB
{{- if eq .Values.loadBalancer.type "alb" }}
kubernetes.io/ingress.class: alb
kubernetes.io/ingress.class: {{ default "alb" .Values.ingress.ingressClass }}
alb.ingress.kubernetes.io/scheme: internet-facing
{{- if .Values.loadBalancer.tls }}
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]'
Expand All @@ -23,7 +23,7 @@ metadata:
{{- if eq .Values.loadBalancer.type "gke-managed-cert" }}
kubernetes.io/ingress.global-static-ip-name: {{ .Values.loadBalancer.staticIpName }}
networking.gke.io/managed-certificates: {{ or .Values.loadBalancer.certificateName "managed-cert" }}
kubernetes.io/ingress.class: "gce"
kubernetes.io/ingress.class: {{ default "gce" .Values.ingress.ingressClass }}
{{- end }}
# DO with cert manager
{{- if eq .Values.loadBalancer.type "do" }}
Expand All @@ -36,7 +36,7 @@ apiVersion: extensions/v1beta1
{{- end }}
spec:
{{- if eq .Values.loadBalancer.type "do" }}
ingressClassName: nginx
ingressClassName: {{ default "nginx" .Values.ingress.ingressClass }}
{{- end }}
rules:
# In order to work with cert manager on DO, we cannot set us as a default backend
Expand Down
5 changes: 5 additions & 0 deletions livekit-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ storeKeysInSecret:
nameOverride: ""
fullnameOverride: ""

ingress:
enable: true
# Uncomment to override ingressClass from the default
# ingressClass: traefik

loadBalancer:
type: disable
servicePort: 80
Expand Down
Loading