stunner-premium-dev
STUNner Kubernetes Gateway Operator
About this chart
STUNner
The Helm chart of STUNner: A Kubernetes media gateway for WebRTC.
Note
The official documentation for the STUNner installation methods is in the repository of STUNner. For further information, see the documentation.
Installation
This chart is the recommended way to deploy the STUNner ecosystem into your cluster.
The command below installs the stable version of STUNner. In particular, it installs only the STUNner control plane (the gateway operator and the authentication service); the dataplane is automatically provisioned by the operator when needed (but see below). We recommend using the stunner-system namespace to keep the full STUNner control plane in a single scope.
helm install stunner stunner/stunner --create-namespace \
--namespace=stunner-system
And that's all: you don't need to install the dataplane separately, because this is handled automatically by the operator. The stunnerd pods created by the operator can be customized using the Dataplane custom resource: you can specify the stunnerd container image version, provision resources per stunnerd pod, deploy into the host network namespace, and more; see the documentation here.
CRD Management
This chart installs CRDs from two sources:
- STUNner CRDs are bundled in the chart
crds/folder and installed by Helm. - Gateway API CRDs are installed via chart dependencies controlled by values.
Gateway API CRDs
By default, the operator chart installs the official Kubernetes Gateway API CRDs from the standard channel (standardCrds.enabled=true).
- GKE / Managed clusters: If your cluster already provides Gateway API, you may want to skip the bundled Gateway API CRDs to avoid conflicts:
helm install stunner stunner/stunner --create-namespace \ --namespace=stunner-system \ --set standardCrds.enabled=false - Self-managed clusters: The default install is all you need.
Install Gateway API CRDs manually (explicit control)
If you prefer to manage Gateway API CRDs yourself:
kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.6.2/standard-install.yaml
helm install stunner stunner/stunner --create-namespace \
--namespace=stunner-system \
--set standardCrds.enabled=false
Note: The exact version required may vary with STUNner releases; consult the STUNner compatibility matrix for the recommended Gateway API version.
To install Gateway API experimental CRDs as well:
helm install stunner stunner/stunner --create-namespace \
--namespace=stunner-system \
--set experimentalCrds.enabled=true
To upgrade an existing installation:
helm upgrade stunner stunner/stunner --namespace=stunner-system
Note:
helm upgradedoes NOT update CRDs. STUNner has added new native CRDs, including TCPRoute, which ahelm upgradewill not install. In order to install the new CRDs on an existing Helm deployment, apply the CRDs manually before upgrading:helm repo update helm pull stunner/stunner --untar --untardir /tmp/stunner-chart kubectl apply -f /tmp/stunner-chart/stunner/crds/ kubectl apply -f /tmp/stunner-chart/stunner/charts/gateway-api-standard-crds/crds/
Parameters
CRD options
| Name | Description | Value |
|---|---|---|
standardCrds.enabled | If true, install Gateway API CRDs from the standard channel dependency. | true |
experimentalCrds.enabled | If true, install Gateway API CRDs from the experimental channel dependency. | false |
Logging
| Name | Description | Value |
|---|---|---|
logging.operator.format | Log format for the gateway operator. Must be text or json. | text |
logging.operator.level | Log level for the gateway operator zap logger (pass-through string). | info |
logging.dataplane.format | Log format for managed dataplane pods. Must be text or json. | text |
logging.authService.format | Log format for the auth service. Must be text or json. | text |
STUNner Gateway operator
| Name | Description | Value |
|---|---|---|
stunnerGatewayOperator.enabled | If true, deploy the operator. | true |
stunnerGatewayOperator.deployment.name | Name of the deployment for the operator. | stunner-gateway-operator |
stunnerGatewayOperator.deployment.podLabels | Labels for the deployment pods. | {} |
stunnerGatewayOperator.deployment.affinity | Affinity settings for the deployed operator instance. | {} |
stunnerGatewayOperator.deployment.tolerations | Tolerations for pod assignment. | [] |
stunnerGatewayOperator.deployment.replicas | Number of replicas of the operator to be deployed. Replicas beyond the leader are leader-elected standbys, see Operator high availability. | 1 |
stunnerGatewayOperator.deployment.podDisruptionBudget.enabled | If true, deploy a PodDisruptionBudget for the operator pods. | false |
stunnerGatewayOperator.deployment.podDisruptionBudget.maxUnavailable | The maxUnavailable of the PodDisruptionBudget. | 1 |
stunnerGatewayOperator.deployment.nodeSelector | Node labels for pod assignment. | {kubernetes.io/os: linux} |
stunnerGatewayOperator.deployment.imagePullSecrets | Image pull secrets for the image. | [] |
stunnerGatewayOperator.deployment.topologySpreadConstraints | Constraints to control how pods are spread across the cluster. | [] |
stunnerGatewayOperator.deployment.container | Container configuration values. | |
stunnerGatewayOperator.deployment.container.manager | Configuration values for the STUNner Gateway Operator container. | |
stunnerGatewayOperator.deployment.container.manager.image.name | The name of the image to use. | docker.io/l7mp/stunner-gateway-operator-premium |
stunnerGatewayOperator.deployment.container.manager.image.pullPolicy | The pull policy for the image. | IfNotPresent |
stunnerGatewayOperator.deployment.container.manager.image.tag | The tag for the image. | dev |
stunnerGatewayOperator.deployment.container.manager.resources.limits.cpu | CPU limits for the container. | 1000m |
stunnerGatewayOperator.deployment.container.manager.resources.limits.memory | Memory limits for the container. | 512Mi |
stunnerGatewayOperator.deployment.container.manager.resources.requests.cpu | CPU requests for the container. | 250m |
stunnerGatewayOperator.deployment.container.manager.resources.requests.memory | Memory requests for the container. | 128Mi |
stunnerGatewayOperator.deployment.container.manager.args | Arguments for the container. | [--health-probe-bind-address=:8081, --metrics-bind-address=127.0.0.1:8080, --leader-elect] |
Operator high availability
The operator runs with leader election (--leader-elect in the manager args). With replicas: 2 the second pod is a standby that takes over when the leader's lease expires, so a node failure or a rolling upgrade of the operator keeps the control plane available. The dataplane pods fetch their configuration from the leader: without the premium HAOperator feature they follow the leader's pod IP, so a failover still rolls them; with the feature they use the stable stunner-config-discovery Service address and stay untouched. A two-replica setup benefits from a PodDisruptionBudget and from spreading the replicas over nodes:
stunnerGatewayOperator:
deployment:
replicas: 2
podDisruptionBudget:
enabled: true
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
control-plane: stunner-gateway-operator-controller-manager
The leader election Lease is named stunner-gateway-operator.l7mp.io; stunnerctl reads it to find the leader when it forwards to the config discovery server.
Dataplane
Default dataplane configuration for the operator to use. See more here.
| Name | Description | Value |
|---|---|---|
stunnerGatewayOperator.dataplane.mode | Dataplane deployment mode. Allowed values: managed or legacy. | managed |
stunnerGatewayOperator.dataplane.spec.replicas | The replica number of the dataplane to be deployed. | 1 |
stunnerGatewayOperator.dataplane.spec.image.name | The name of the image to use for the dataplane. | docker.io/l7mp/stunnerd-premium |
stunnerGatewayOperator.dataplane.spec.image.pullPolicy | The pull policy for the image. | IfNotPresent |
stunnerGatewayOperator.dataplane.spec.image.tag | The tag for the image. | dev |
stunnerGatewayOperator.dataplane.spec.imagePullSecrets | Image pull secrets for the image. | [] |
stunnerGatewayOperator.dataplane.spec.command | The command for the image to run on startup. | [stunnerd] |
stunnerGatewayOperator.dataplane.spec.args | The arguments for the image to use with the command. | [-w] |
stunnerGatewayOperator.dataplane.spec.env | Environment variables to set for the image. | [] |
stunnerGatewayOperator.dataplane.spec.resources.limits.cpu | CPU limits for the container. | 2 |
stunnerGatewayOperator.dataplane.spec.resources.limits.memory | Memory limits for the container. | 512Mi |
Deploy stunner-premium-dev with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has stunner-premium-dev 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartstunner-premium-dev is pinned at v1.2.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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