ngrok-operator
by ngrok
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:
-
Install CRDs once per cluster:
helm install ngrok-crds ngrok/ngrok-crds -
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=trueif 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
| Name | Description | Value |
|---|---|---|
nameOverride | String to partially override generated resource names | "" |
fullnameOverride | String to fully override generated resource names | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
Image configuration
| Name | Description | Value |
|---|---|---|
image.registry | The ngrok operator image registry. | docker.io |
image.repository | The ngrok operator image repository. | ngrok/ngrok-operator |
image.tag | The ngrok operator image tag. Defaults to the chart's appVersion if not specified | "" |
image.pullPolicy | The ngrok operator image pull policy. | IfNotPresent |
image.pullSecrets | An array of imagePullSecrets to be used when pulling the image. | [] |
RBAC
| Name | Description | Value |
|---|---|---|
crdAccessRoles.create | Whether to create editor/viewer ClusterRoles for CRDs | true |
crdAccessRoles.annotations | Annotations for CRD access ClusterRoles (e.g., RBAC aggregation) | {} |
Custom Resource Definitions installation
| Name | Description | Value |
|---|---|---|
installCRDs | When true, the ngrok CRDs will be installed alongside the operator | true |
ngrok
| Name | Description | Value |
|---|---|---|
ngrok.credentials.secret.name | The name of the secret the credentials are in. If not provided, one will be generated using the helm release name. | "" |
ngrok.credentials.accessToken | Your ngrok access token. Used by every component that needs one, unless overridden below. | "" |
ngrok.credentials.agent.accessToken | Optional access token for the agent-manager only. Falls back to ngrok.credentials.accessToken. | "" |
ngrok.credentials.apiManager.accessToken | Optional access token for the api-manager only. Falls back to ngrok.credentials.accessToken. | "" |
ngrok.credentials.privateEndpointForwarder.accessToken | Optional 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.description | Description of this installation in the ngrok dashboard. Default: The official ngrok Kubernetes Operator. | "" |
ngrok.region | ngrok region to use. Default: the account's default region | "" |
ngrok.serverAddr | Address of the ngrok server to use for tunnels. Default: the ngrok default | "" |
ngrok.apiURL | Base URL for the ngrok API. Default: the ngrok default | "" |
ngrok.rootCAs | Root CAs to trust: trusted for the ngrok CA, host for the host's CA bundle. Default: trusted | "" |
ngrok.metadata | Key/value pairs added as metadata to the ngrok API resources the operator creates | {} |
ngrok.clusterDomain | Cluster domain used when resolving in-cluster service addresses. Default: svc.cluster.local | "" |
ngrok.log.level | Log level: debug, info, error, panic, or an integer for more verbose debug levels. Default: info | "" |
ngrok.log.format | Log format: json or console. Default: json | "" |
ngrok.log.stacktraceLevel | Level 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartngrok-operator is pinned at v0.25.0-rc.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