Self-hostingPlatforms
Managed Kubernetes
Short version
Section titled "Short version"A managed cluster with one node of 2 CPU cores and 2 GB of memory at least, and 4 GB for a busy instance. You also need a Gateway API implementation or an ingress controller, a certificate for your domain, and a load balancer for voice. Install the chart with voice.expose=loadBalancer to put voice on that load balancer, in about 20 minutes.
What this changes
Section titled "What this changes"Fluxer in its own namespace, the same as on any cluster, with a block storage volume from the provider's default StorageClass. A second LoadBalancer Service called fluxer-voice takes TCP 7881 and UDP 7882, and each LoadBalancer costs money on most providers.
A block storage volume belongs to one zone, and the pod can only run in that zone.
Before you start
Section titled "Before you start"Check the requirements. Managed nodes rarely have public addresses that clients can use, so host ports don't work for voice there. Voice needs one LoadBalancer Service with TCP and UDP, which some providers' load balancers can't take.
| Provider | TCP and UDP together | Default StorageClass |
|---|---|---|
| Amazon EKS | With the AWS Load Balancer Controller, an NLB in one subnet and an Elastic IP from the service. annotation in voice. | Often none, add one for EBS CSI |
| Google GKE | Yes | standard-rwo |
| Azure AKS | Yes | managed-csi |
| DigitalOcean | Yes, with TCP 7881 as the health check port | do-block-storage |
| Linode (Akamai) | No, use voice. | linode-block-storage-retain |
| Vultr | No, its load balancer gives every port of a Service the same protocol | vultr-block-storage |
If your provider's load balancer can't take both, set voice.expose=nodePort and open the two node ports in its firewall, or run a voice server on a VM.
Install
Section titled "Install"-
Install the chart with voice on a LoadBalancer and a route on your Gateway.
helm install fluxer oci://ghcr.io/fluxerapp/ charts/ fluxer \ --namespace fluxer --create-namespace \--set domain=chat.example.com \--set voice.expose=loadBalancer \ --set ingress.enabled=false --set httpRoute.enabled=true \ --set 'httpRoute.parentRefs[0].name=my-gateway' Use the name of your Gateway. When it's in another namespace, also set
httpRoute.parentRefs[0].namespace.Your Gateway's HTTPS listener needs a certificate for the domain.
With an ingress controller such as Traefik, replace the last two
--setlines with--set ingress.. ingress-nginx also needsclassName=traefik --set ingress. annotations."cert-manager\.io/ cluster-issuer"=letsencrypt --set ingress., the same as on any cluster.annotations."nginx\.ingress\.kubernetes\.io/ proxy-body-size"=512m --set ingress. annotations."nginx\.ingress\.kubernetes\.io/ proxy-read-timeout"=3600 Set annotations for the voice load balancer in
voice.service.annotations. On DigitalOcean, add-f values.yamlwith these two lines to the install.values.yaml voice:service:annotations:service.beta. "7881"kubernetes.io/ do-loadbalancer-healthcheck-port: service.beta. tcpkubernetes.io/ do-loadbalancer-healthcheck-protocol: With an address you reserved for voice, pass
--set voice.on GKE or AKS, orservice. loadBalancerIP=<address> --set voice.publicIP=<Elastic IP>on EKS, and run only the last line of step 2. EKS always needs the Elastic IP here, because its load balancer shows a hostname in place of an IP address. -
Set the voice address to the external IP address of the
fluxer-voiceService, and wait for the pod to restart with that address.The first line waits for the load balancer's address, and the second looks up the chart version you installed, so the upgrade stays on the version you have.
until ip=$(kubectl -n fluxer get svc fluxer-voice -o jsonpath='{.status.loadBalancer.ingress[0].ip}') && [ -n "$ip" ]; do sleep 5; doneversion=$(helm get metadata fluxer -n fluxer | awk '/^VERSION:/ {print $2}')helm upgrade fluxer oci://ghcr.io/fluxerapp/ -n fluxer --version "$version" --reset-then-reuse-values \charts/ fluxer --set voice.publicIP="$ip" kubectl -n fluxer rollout status statefulset/fluxer --timeout 15mWhen the pod is ready, the rollout ends with
partitioned roll out complete. -
Print the setup token.
kubectl -n fluxer exec fluxer-0 -- fluxerd setup-tokenOpen your domain and paste the token to create the first admin account.