restreamer

by utkuozdemir

Helm chartv1.1.0App 0.6.4Verified publisher

Restreamer helm chart

About this chart

Restreamer

This is a helm chart for the datarhei/restreamer image.

TL;DR;

$ helm repo add utkuozdemir https://utkuozdemir.org/helm-charts
$ helm install my-release utkuozdemir/restreamer

Introduction

This chart simply maps the features of the Restreamer project to the Kubernetes concepts.

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add utkuozdemir https://utkuozdemir.org/helm-charts
$ helm install my-release utkuozdemir/restreamer

Important: See the Parameters section lists the parameters that need to be configured during the installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

The following tables lists the configurable parameters of the chart and their default values.

ParameterDescriptionDefault
global.storageClassGlobal storage class for dynamic provisioningnil
image.repositorycontainer image namedatarhei/restreamer
image.pullPolicycontainer image pull policyIfNotPresent
image.tagcontainer image tag{TAG_NAME} (taken from the chart appVersion)
imagePullSecretsArray of imagePullSecrets in the namespace for pulling images[]
nameOverrideString to partially override the fullname template with a string (will prepend the release name)nil
fullnameOverrideString to fully override the fullname template with a stringnil
serviceAccount.createSpecifies whether a ServiceAccount should be createdtrue
serviceAccount.nameThe name of the ServiceAccount to createGenerated using the fullname template
serviceAccount.annotationsAnnotations for the ServiceAccount{}
podSecurityContextThe security context for the pods{}
securityContextThe security context for the application container.{}
service.typeKubernetes Service typeClusterIP
service.portKubernetes Service port80
service.annotationsAnnotations for the Service{}
ingress.enabledEnable the use of the ingress controllerfalse
ingress.classNameClass name for the ingress{}
ingress.annotationsAnnotations for the ingress{}
ingress.hostsHosts configuration of the ingresssee values.yaml
ingress.tlsThe TLS configuration for the ingress[]
resourcesThe resources to allocate for the container{}
affinityMap of node/pod affinities{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
persistence.enabledEnable persistencefalse
persistence.existingClaimUse a existing PVC which must be created manually before boundnil
persistence.storageClassSpecify the storageClass used to provision the volumenil
persistence.accessModesAccess modes of data volume["ReadWriteOnce"]
persistence.sizeSize for the PV512Mi
envThe non-sensitive environment variables to configure the application. See the possible configuration here: https://datarhei.github.io/restreamer/docs/references-environment-vars.htmlSee values.yaml
secretEnvThe sensitive environment variables to configure the application. See the possible configuration here: https://datarhei.github.io/restreamer/docs/references-environment-vars.htmlSee values.yaml
rtmp.hostPort.enabledIf the RTMP should be exposed from a hostPort or notfalse
rtmp.hostPort.portThe hostPort to expose RTMP from1935

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install my-release \
  --set secretEnv.RS_USERNAME=myusername \
  --set secretEnv.RS_PASSWORD=mypassword \
  utkuozdemir/restreamer

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install my-release -f values.yaml utkuozdemir/restreamer

Tip: You can use the default values.yaml

Notes

For more information, see the datarhei/restreamer project.

Deploy restreamer with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has restreamer 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 chartrestreamer is pinned at v1.1.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