teamspeak

by Dev0ps

Helm chartv1.2.0App 1.2.0Verified publisher

A Helm chart for TeamSpeak 3 Server with DNS support

About this chart

teamspeak

Helm chart for a TeamSpeak 3 server on Kubernetes. It runs a single server instance, keeps the server data on a persistent volume, and exposes the voice, ServerQuery and file transfer ports through a Service. Set service.hostname when the server should be reachable on a public DNS name.

The published server image is ghcr.io/dev0psapp/teamspeak-server-helm-chart:1.2.0.

Prerequisites

  • Kubernetes 1.25 or newer
  • Helm 3
  • A LoadBalancer implementation, or another Service type if clients reach the server another way
  • external-dns, when service.hostname should create the DNS record automatically

Open these ports to the clients:

PortProtocolPurpose
9987UDPVoice
10011TCPServerQuery
30033TCPFile transfer

Install

helm repo add teamspeak https://dev0psapp.github.io/teamspeak-server-helm-chart/
helm repo update

helm install my-teamspeak teamspeak/teamspeak \
  --namespace teamspeak \
  --create-namespace

Example with a public address

This example publishes the server as teamspeak.domainnameformyts.com. The chart adds that name as an external-dns hostname on the Service. Point the name at the LoadBalancer address if external-dns is not installed.

Save this as values-teamspeak.yaml:

image:
  repository: ghcr.io/dev0psapp/teamspeak-server-helm-chart
  tag: "1.2.0"

teamspeak:
  license: accept
  serverName: "My TeamSpeak Server"

service:
  type: LoadBalancer
  hostname: teamspeak.domainnameformyts.com

persistence:
  enabled: true
  size: 5Gi

Install it with those values:

helm install my-teamspeak teamspeak/teamspeak \
  --namespace teamspeak \
  --create-namespace \
  -f values-teamspeak.yaml

Wait until the LoadBalancer has an address:

kubectl get svc -n teamspeak my-teamspeak -w

Connect with the TeamSpeak client to:

teamspeak.domainnameformyts.com

The voice port is 9987/UDP. The first start prints a server admin privilege key in the pod log:

kubectl logs -n teamspeak deployment/my-teamspeak | grep token=

Use that key once in the client to claim server admin. Upgrade with the same values file:

helm upgrade my-teamspeak teamspeak/teamspeak \
  --namespace teamspeak \
  -f values-teamspeak.yaml

Configuration

KeyDefaultDescription
image.repositoryghcr.io/dev0psapp/teamspeak-server-helm-chartServer image
image.tag1.2.0Image tag, matches the chart app version
teamspeak.licenseacceptTeamSpeak license acceptance passed to the container
teamspeak.serverNameMy TeamSpeak ServerServerQuery name
teamspeak.extraEnv[]Extra environment variables for the container
service.typeLoadBalancerService type
service.hostname""Public DNS name, also set as an external-dns hostname
service.loadBalancerIP""Fixed LoadBalancer address
service.voice.port9987Voice port
service.serverquery.port10011ServerQuery port
service.filetransfer.port30033File transfer port
persistence.enabledtrueStore server data on a persistent volume
persistence.size5GiVolume size
persistence.storageClass""Storage class, empty uses the cluster default
resources.requests.cpu100mCPU request
resources.requests.memory128MiMemory request
resources.limits.cpu1000mCPU limit
resources.limits.memory512MiMemory limit

Maintainers

NameEmailUrl
dev0ps[email protected]https://dev0ps.app

Source Code

Deploy teamspeak with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has teamspeak on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartteamspeak is pinned at v1.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply