Open source video conferencing app powered by LiveKit. Built with Django and React.
✨(livekit) add Livekit Egress
lebaudantoinef7ed70dc9c36
diff --git a/bin/start-kind.sh b/bin/start-kind.shindex a77f12f6..99595407 100755--- a/bin/start-kind.sh+++ b/bin/start-kind.sh@@ -97,6 +97,41 @@ data:help: "https://kind.sigs.k8s.io/docs/user/local-registry/"EOF+cat <<EOF | kubectl apply -f -+apiVersion: v1+kind: ConfigMap+metadata:+ name: coredns+ namespace: kube-system+data:+ Corefile: |+ .:53 {+ errors+ health {+ lameduck 5s+ }+ ready+ kubernetes cluster.local in-addr.arpa ip6.arpa {+ pods insecure+ fallthrough in-addr.arpa ip6.arpa+ ttl 30+ }+ prometheus :9153+ forward . /etc/resolv.conf {+ max_concurrent 1000+ }+ rewrite stop {+ name regex (.*).127.0.0.1.nip.io ingress-nginx-controller.ingress-nginx.svc.cluster.local answer auto+ }+ cache 30+ loop+ reload+ loadbalance+ }+EOF++kubectl -n kube-system rollout restart deployments/coredns+echo "6. Install ingress-nginx"kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yamlkubectl -n ingress-nginx create secret tls mkcert --key /tmp/127.0.0.1.nip.io+1-key.pem --cert /tmp/127.0.0.1.nip.io+1.pemdiff --git a/src/helm/env.d/dev/values.egress.yaml.gotmpl b/src/helm/env.d/dev/values.egress.yaml.gotmplnew file mode 100644index 00000000..5d09dfca--- /dev/null+++ b/src/helm/env.d/dev/values.egress.yaml.gotmpl@@ -0,0 +1,43 @@+replicaCount: 1+terminationGracePeriodSeconds: 18000++egress:+ log_level: debug+ ws_url: ws://livekit-livekit-server:80+ insecure: true+ enable_chrome_sandbox: true+ {{- with .Values.livekit.keys }}+ {{- range $key, $value := . }}+ api_key: {{ $key }}+ api_secret: {{ $value }}+ {{- end }}+ {{- end }}+ redis:+ address: redis-master:6379+ password: pass+ s3:+ access_key: meet+ secret: password+ region: local+ bucket: meet-media-storage+ endpoint: http://minio:9000+ force_path_style: true++loadBalancer:+ type: nginx+ annotations:+ nginx.ingress.kubernetes.io/rewrite-target: /+ nginx.ingress.kubernetes.io/ssl-redirect: "true"+ cert-manager.io/cluster-issuer: "letsencrypt-prod"+ tls:+ - hosts:+ - livekit-egress.127.0.0.1.nip.io+ secretName: livekit-egress-dinum-cert++autoscaling:+ enabled: false+ minReplicas: 1+ maxReplicas: 5++nodeSelector: {}+resources: {}diff --git a/src/helm/env.d/dev/values.livekit.yaml.gotmpl b/src/helm/env.d/dev/values.livekit.yaml.gotmplindex e223774d..1671e2b0 100644--- a/src/helm/env.d/dev/values.livekit.yaml.gotmpl+++ b/src/helm/env.d/dev/values.livekit.yaml.gotmpl@@ -4,13 +4,20 @@ terminationGracePeriodSeconds: 18000livekit:log_level: debugrtc:- use_external_ip: true+ use_external_ip: falseport_range_start: 50000port_range_end: 60000tcp_port: 7881redis:- address:+ address: redis-master:6379+ password: passkeys:+ turn:+ enabled: true+ udp_port: 443+ domain: livekit.127.0.0.1.nip.io+ loadBalancerAnnotations: {}+loadBalancer:type: nginxdiff --git a/src/helm/helmfile.yaml b/src/helm/helmfile.yamlindex a24e1a54..e17bc48b 100644--- a/src/helm/helmfile.yaml+++ b/src/helm/helmfile.yaml@@ -100,3 +100,12 @@ releases:- env.d/{{ .Environment.Name }}/values.livekit.yaml.gotmplsecrets:- env.d/{{ .Environment.Name }}/secrets.enc.yaml++ - name: livekit-egress+ installed: {{ eq .Environment.Name "dev" | toYaml }}+ namespace: {{ .Namespace }}+ chart: livekit/egress+ values:+ - env.d/{{ .Environment.Name }}/values.egress.yaml.gotmpl+ secrets:+ - env.d/{{ .Environment.Name }}/secrets.enc.yaml