livekit / livekit-helm

LiveKit Helm charts
https://docs.livekit.io
Apache License 2.0
50 stars 59 forks source link

Unable to install with loadBalancer type gke-managed-cert #76

Open chiu1984 opened 1 year ago

chiu1984 commented 1 year ago

I would like to install livekit server on GKE with google managed cert. It is the helm values I used, since I am using google managed cert, I suppose secretName is not required:

loadBalancer:
  type: gke-managed-cert
  staticIpName: static-ip
  certificateName: cert
  tls:
    - hosts:
      - livekit.host.com

However, I got the following error on the Ingress after helm install:

Error syncing to GCP: error running load balancer syncing routine: error getting secrets for Ingress: secret "" does not exist

I tried to comment out the tls setting but now I got another error:

Error: INSTALLATION FAILED: Ingress.extensions "livekit-server" is invalid: spec: Invalid value: []networking.IngressRule(nil): either `defaultBackend` or `rules` must be specified

Any suggestion?

frandemona commented 1 week ago

I was having the same issue, I modified the ingress.yaml file of the helm chart

My values.yaml looks

loadBalancer:
  type: gke-managed-cert
  staticIpName: livekit-cluster-load-balancer
  certificateName: livekit-cluster-managed-certificate

And the ingress.yaml stayed like this:

spec:
  {{- if eq .Values.loadBalancer.type "do" }}
  ingressClassName: nginx
  {{- end }}
  defaultBackend:
    service:
      name: {{ $fullName }}
      port:
        number: {{ $svcPort }}
{{- end }}