stunner-gateway-operator-dev

by L7MP Technologies

Helm chartv1.1.1App devMIT License

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 below will install the stable version of STUNner. In particular, the this will install only the STUNner control plane, i.e., the gateway operator and the authentication service, the dataplane will be automatically provisioned by the operator when needed (but see below). We recommend to use the stunner-system namespace to keep the full STUNner control plane in a single scope.

helm install stunner-gateway-operator stunner/stunner-gateway-operator --create-namespace \
    --namespace=stunner-system

And that's all: you don't need to install the dataplane separately, 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 each stunnerd pod, deploy into the host network namespace, etc.; see the documentation here.

Parameters

STUNner Gateway operator

NameDescriptionValue
stunnerGatewayOperator.enabledIf enabled, the operator will be installed.true
stunnerGatewayOperator.deployment.nameName of the deployment for the operator.stunner-gateway-operator
stunnerGatewayOperator.deployment.podLabelsLabels for the deployment pods.{}
stunnerGatewayOperator.deployment.affinityAffinity settings for the deployed operator instance.{}
stunnerGatewayOperator.deployment.tolerationsTolerations for pod assignment.[]
stunnerGatewayOperator.deployment.replicasNumber of replicas of the operator to be deployed.1
stunnerGatewayOperator.deployment.nodeSelectorNode labels for pod assignment.{}
stunnerGatewayOperator.deployment.imagePullSecretsImage pull secrets for the image.[]
stunnerGatewayOperator.deployment.topologySpreadConstraintsConstraints to control how pods are spread across the cluster.[]
stunnerGatewayOperator.deployment.containerContainer configuration values.
stunnerGatewayOperator.deployment.container.managerConfiguration values for the STUNner Gateway Operator container.
stunnerGatewayOperator.deployment.container.manager.image.nameThe name of the image to use.docker.io/l7mp/stunner-gateway-operator
stunnerGatewayOperator.deployment.container.manager.image.pullPolicyThe pull policy for the image.IfNotPresent
stunnerGatewayOperator.deployment.container.manager.image.tagThe tag for the image.1.0.0
stunnerGatewayOperator.deployment.container.manager.resources.limits.cpuCPU limits for the container.1000m
stunnerGatewayOperator.deployment.container.manager.resources.limits.memoryMemory limits for the container.512Mi
stunnerGatewayOperator.deployment.container.manager.resources.requests.cpuCPU requests for the container.250m
stunnerGatewayOperator.deployment.container.manager.resources.requests.memoryMemory requests for the container.128Mi
stunnerGatewayOperator.deployment.container.manager.argsArguments for the container.[]

Dataplane

Default dataplane configuration for the operator to use. See more here.

NameDescriptionValue
stunnerGatewayOperator.dataplane.modeMode to use for the deployment of the dataplane. Can be either managed or legacy. Read about the modes here.managed
stunnerGatewayOperator.dataplane.spec.replicasThe replica number of the dataplane to be deployed.1
stunnerGatewayOperator.dataplane.spec.image.nameThe name of the image to use for the dataplane.docker.io/l7mp/stunnerd
stunnerGatewayOperator.dataplane.spec.image.pullPolicyThe pull policy for the image.IfNotPresent
stunnerGatewayOperator.dataplane.spec.image.tagThe tag for the image.1.0.0
stunnerGatewayOperator.dataplane.spec.imagePullSecretsImage pull secrets for the image.[]
stunnerGatewayOperator.dataplane.spec.commandThe command for the image to run on startup.[]
stunnerGatewayOperator.dataplane.spec.argsThe arguments for the image to use with the command.[]
stunnerGatewayOperator.dataplane.spec.envEnvironment variables to set for the image.[]
stunnerGatewayOperator.dataplane.spec.resources.limits.cpuCPU limits for the container.2
stunnerGatewayOperator.dataplane.spec.resources.limits.memoryMemory limits for the container.512Mi
stunnerGatewayOperator.dataplane.spec.resources.requests.cpuCPU requests for the container.500m
stunnerGatewayOperator.dataplane.spec.resources.requests.memoryMemory requests for the container.128Mi
stunnerGatewayOperator.dataplane.spec.terminationGracePeriodSecondsPeriod in seconds to use for graceful shutdown.3600
stunnerGatewayOperator.dataplane.spec.enableMetricsEndpointEnable metrics endpoint in the deployed stunner instance.false
stunnerGatewayOperator.dataplane.spec.hostNetworkEnable host networking in the deployed stunner instance.false
stunnerGatewayOperator.dataplane.spec.labelsLabels to be applied to the deployed stunner instance.{}
stunnerGatewayOperator.dataplane.spec.annotationsAnnotations to be applied to the deployed stunner instance.{}
stunnerGatewayOperator.dataplane.spec.affinityAffinity settings for the deployed stunner instance.{}
stunnerGatewayOperator.dataplane.spec.securityContextSecurity context for the deployed stunner instance.{}
stunnerGatewayOperator.dataplane.spec.containerSecurityContextSecurity context for the container.{}
stunnerGatewayOperator.dataplane.spec.tolerationsTolerations for pod assignment.[]
stunnerGatewayOperator.dataplane.spec.topologySpreadConstraintsConstraints to control how pods are spread across the cluster.[]

STUNner Authentication Service

Default configuration for the authentication service to be deployed. See more the authentication in STUNner here.

NameDescriptionValue
stunnerAuthService.enabledIf enabled, the authentication service will be deployed.true
stunnerAuthService.deployment.podLabelsLabels for the auth service pods.{}
stunnerAuthService.deployment.affinityAffinity settings for the deployed auth-service instance.{}
stunnerAuthService.deployment.tolerationsTolerations for pod assignment.[]
stunnerAuthService.deployment.replicasReplicas for the auth-service deployment.1
stunnerAuthService.deployment.nodeSelectorNode labels for pod assignment.
stunnerAuthService.deployment.imagePullSecretsImage pull secrets for the auth service image.[]
stunnerAuthService.deployment.topologySpreadConstraints

Deploy stunner-gateway-operator-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-gateway-operator-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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartstunner-gateway-operator-dev is pinned at v1.1.1 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