ngrok-operator

by ngrok

Helm chartv0.25.0-rc.1App 0.23.0-rc.1Verified publisher

The official ngrok Kubernetes Operator.

About this chart

ngrok Kubernetes Operator

This is the Helm chart to install official the ngrok Kubernetes Operator

Usage

Prerequisites

The cluster must be set up with a secret named ngrok-operator-credentials holding an ngrok access token under both of these keys:

  • AGENT_ACCESS_TOKEN
  • API_MANAGER_ACCESS_TOKEN

Both keys may hold the same token. Setting ngrok.credentials.accessToken creates this secret for you.

Installation

Helm must be installed to use the charts. Please refer to Helm's documentation to get started.

Once Helm has been set up correctly, add the repo as follows:

helm repo add ngrok https://charts.ngrok.com

If you had already added this repo earlier, run helm repo update to retrieve the latest versions of the packages. You can then run helm search repo ngrok to see the charts.

To install the ngrok-operator chart:

helm install ngrok-operator ngrok/ngrok-operator

To uninstall the chart:

helm delete my-ngrok-operator

Multi-Instance Installations

To run multiple ngrok-operator instances in the same cluster (e.g., in different namespaces), install the CRDs once and disable CRD installation for each operator instance:

  1. Install CRDs once per cluster:

    helm install ngrok-crds ngrok/ngrok-crds
    
  2. Install operator instances with installCRDs=false:

    helm install ngrok-operator-ns1 ngrok/ngrok-operator \
      --namespace ns1 \
      --set installCRDs=false
    
    helm install ngrok-operator-ns2 ngrok/ngrok-operator \
      --namespace ns2 \
      --set installCRDs=false
    

Important: Do not set installCRDs=true if CRDs are already managed by another Helm release. Helm will fail with ownership conflicts if multiple releases attempt to manage the same CRDs.

Parameters

Common parameters

NameDescriptionValue
nameOverrideString to partially override generated resource names""
fullnameOverrideString to fully override generated resource names""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}

Image configuration

NameDescriptionValue
image.registryThe ngrok operator image registry.docker.io
image.repositoryThe ngrok operator image repository.ngrok/ngrok-operator
image.tagThe ngrok operator image tag. Defaults to the chart's appVersion if not specified""
image.pullPolicyThe ngrok operator image pull policy.IfNotPresent
image.pullSecretsAn array of imagePullSecrets to be used when pulling the image.[]

RBAC

NameDescriptionValue
crdAccessRoles.createWhether to create editor/viewer ClusterRoles for CRDstrue
crdAccessRoles.annotationsAnnotations for CRD access ClusterRoles (e.g., RBAC aggregation){}

Custom Resource Definitions installation

NameDescriptionValue
installCRDsWhen true, the ngrok CRDs will be installed alongside the operatortrue

ngrok

NameDescriptionValue
ngrok.credentials.secret.nameThe name of the secret the credentials are in. If not provided, one will be generated using the helm release name.""
ngrok.credentials.accessTokenYour ngrok access token. Used by every component that needs one, unless overridden below.""
ngrok.credentials.agent.accessTokenOptional access token for the agent-manager only. Falls back to ngrok.credentials.accessToken.""
ngrok.credentials.apiManager.accessTokenOptional access token for the api-manager only. Falls back to ngrok.credentials.accessToken.""
ngrok.credentials.privateEndpointForwarder.accessTokenOptional access token for the private-endpoint-forwarder only. Falls back to ngrok.credentials.accessToken. With ngrok.features.privateEndpoints.enabled and no ngrok.credentials.secret.name, one of the two must be set or rendering fails. A custom secret is not checked at render time; it must hold a PRIVATE_ENDPOINTS_ACCESS_TOKEN key (without it the forwarder container never starts).""
ngrok.descriptionDescription of this installation in the ngrok dashboard. Default: The official ngrok Kubernetes Operator.""
ngrok.regionngrok region to use. Default: the account's default region""
ngrok.serverAddrAddress of the ngrok server to use for tunnels. Default: the ngrok default""
ngrok.apiURLBase URL for the ngrok API. Default: the ngrok default""
ngrok.rootCAsRoot CAs to trust: trusted for the ngrok CA, host for the host's CA bundle. Default: trusted""
ngrok.metadataKey/value pairs added as metadata to the ngrok API resources the operator creates{}
ngrok.clusterDomainCluster domain used when resolving in-cluster service addresses. Default: svc.cluster.local""
ngrok.log.levelLog level: debug, info, error, panic, or an integer for more verbose debug levels. Default: info""
ngrok.log.formatLog format: json or console. Default: json""
ngrok.log.stacktraceLevelLevel at and above which stacktraces are captured: info, error or panic. Default: error""

Deploy ngrok-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ngrok-operator 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 chartngrok-operator is pinned at v0.25.0-rc.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