ngrok-operator v0.25.0: getting ready for 1.0
ngrok-operator 0.25.0 is the last stop before 1.0.
It replaces the operator’s two credentials with a single access token you can scope down.
It also graduates our CRDs to a stable ngrok.com/v1 API, and reorganizes the Helm values so they line up with the operator’s features and components.
If you’re new to the operator, start with this release and you get all of it from day one. The Kubernetes quickstart has you running in a few minutes.
If you already run the operator, upgrading takes a few manual changes.
You’ll create a new credential, update the apiVersion on the CRDs you wrote, and move some Helm values.
The 0.25 upgrade guide walks through every step, and this post explains why each change is worth your time.
How we got here
When I joined ngrok in 2021, we ran our internal services through ngrok in the most basic way.
One agent ran in a pod, with a config file listing an endpoint per service.
We didn’t have endpoint pooling yet, so that agent was a singleton, and every rollout meant a short outage.
Meanwhile, people in the community were already wiring ngrok into their own ingress controllers.
We wanted an option that ngrok would support and maintain, with docs and new features as the platform grew, so in 2022 I started what’s now the ngrok-operator.
Today it manages about 60 public endpoints across ngrok’s production clusters, including the ones behind ngrok.com, api.ngrok.com, and the dashboard (here’s how ngrok.com got there).
Over the years we added support for the Gateway API, LoadBalancer Services, and CRDs for endpoints and Traffic Policy.
Then came bindings, which bring ngrok endpoints into your cluster.
We learned a lot along the way, both about what you need from an operator and about Kubernetes conventions for our own CRDs, like reporting status through conditions and observedGeneration.
Many hands shaped the operator, and its names and API groups picked up some inconsistency.
After four years of running it on our own infrastructure, we kept asking why the CRDs were still v1alpha1.
0.25.0 is where we fix that, once, so you don’t have to deal with it again.
As with every release, we cut a release candidate, ran it on our own clusters, and tagged 0.25.0 from it.
Dogfooding is in our DNA.
One access token, with scopes
The operator used to need two ngrok credentials. The agent used an authtoken to start endpoints, and the api-manager used an API key to manage resources through the ngrok API. An API key had full access to your account’s API. Unless you restricted it, an authtoken let whoever held it start endpoints anywhere in your account, including joining a pooled endpoint on a domain you already serve.
So every cluster running the operator held the keys to your whole account. If you follow least privilege, or run separate installs for dev, staging, and production, you had no way to give each one less. It’s worse with bindings, where some people run the operator in other teams’ clusters, or their customers’ clusters, to bring endpoints into them.
Access tokens are ngrok’s new single credential type. One token replaces both the authtoken and the API key. It carries scopes, such as read or write access per API resource, starting endpoints, and connecting to endpoints. In 0.25.0, the operator takes one token.
One token for everything is the easy path.
To give each part of the operator only what it needs, set a separate token per component with ngrok.credentials.agent.accessToken and ngrok.credentials.apiManager.accessToken.
If you manage the credentials Secret yourself, it now uses the AGENT_ACCESS_TOKEN and API_MANAGER_ACCESS_TOKEN keys.
The upgrade guide covers creating the token and the permissions each component uses.
Everything moves to ngrok.com/v1
Until now, the operator’s CRDs were split across ingress.k8s.ngrok.com and ngrok.k8s.ngrok.com, and every one of them was v1alpha1.
The annotations you put on Ingresses and Services used a third prefix, k8s.ngrok.com/.
Which group a kind lived in mostly depended on when it was added.
Some of these names got a little out of hand.
Our Traffic Policy CRD’s full name was ngroktrafficpolicies.ngrok.k8s.ngrok.com, which says ngrok three times.

In 0.25.0, CloudEndpoint, AgentEndpoint, Domain, IPPolicy, and KubernetesOperator move to ngrok.com/v1, and NgrokTrafficPolicy becomes plain TrafficPolicy.
When you create an Ingress, a Gateway, or a LoadBalancer Service, the operator translates it into its own CRDs inside your cluster, like Cloud Endpoints and Agent Endpoints.
The operator now creates the ngrok.com/v1 versions of those for you, and existing ones keep their ngrok IDs and domain reservations.
For CRDs you wrote yourself, change the apiVersion and apply them again with the same name and namespace.
Here’s a CloudEndpoint on the old API version:
Here’s the same CloudEndpoint on ngrok.com/v1:
The new object takes over the existing ngrok endpoint, ID and all, and the old one goes passive.
Both versions are served in 0.25, so you can move one object at a time.
The upgrade guide’s migration steps for each CRD cover what else changes in the move, like spec.metadata becoming a map, and the order to create and delete objects in so the endpoint keeps its ID, including with GitOps tools like Argo CD.
A few CRD fields changed too, mostly older forms of fields that already had replacements. The upgrade guide walks through each one.
Helm values that match the operator
This change is smaller than the other two, and on its own it wouldn’t be worth a breaking change. 0.25 already asks you to edit your values for the new credential, so we cleaned up the rest of the file at the same time.
The chart’s values grew around the first pod, the api-manager.
The agent, the bindings forwarder, and the cleanup hook came later, and each got its own section on the side.
So if you set tolerations at the top level to keep the operator on certain nodes, only the api-manager got them.
The agent needed the same list again under agent.tolerations.
Settings for the whole install were scattered too.
Uninstall behavior was split between drainPolicy and cleanupHook, and the domain default sat on its own at the top level.
In 0.25.0, the values split into two groups.
ngrok holds what the operator does, like credentials, metadata, and every feature.
components holds how each pod runs, and components.common applies to all of them.
The upgrade guide has the full mapping. The old keys don’t have aliases. A values file that still sets one fails the render and tells you where it moved.
We’d rather fail loudly than install an operator that quietly ignores half your config.
A sneak peek at private endpoints
0.25.0 also ships an early preview of private endpoints.
It’s off by default, but you can request access in your ngrok dashboard, and the private connectivity guide shows how to set it up.
Once it’s set up, any pod in your cluster can reach your account’s *.ngrok.direct endpoints by their real URL, like curl https://foo.ngrok.direct.
It works differently from bindings.
You don’t pick endpoints with selectors or address them by service.namespace names, and the operator dials ngrok directly.
We’ll have more to share when private endpoints are ready for wider use.
The road to 1.0
0.25.0 is the last big rename before 1.0, and 1.0 isn’t far behind it, so start the migration now.
Upgrade to 0.25 from 0.24 only, because 0.25 drops the compatibility code that 0.24 used to migrate objects.
Don’t skip 0.25 or 1.0 when you upgrade to a later release, since each one finishes a step of the migration that the next one relies on.
Before 1.0, move the CRDs you wrote to ngrok.com/v1 and change any k8s.ngrok.com/ annotations to ngrok.com/, so k8s.ngrok.com/mapping-strategy becomes ngrok.com/mapping-strategy.
The upgrade guide’s prepare for later cleanup releases section lists what 1.0 removes and when.
After that, we expect the upgrade from 0.25 to 1.0 to need no changes from you, apart from small fixes for anything we missed. The Helm chart changelog and controller changelog cover everything else in this release. If something in the upgrade trips you up, or you hit what looks like a bug, open an issue in ngrok/ngrok-operator.
1.0 isn’t the finish line
1.0 doesn’t mean the operator is done, or that we’ll stop touching it. We have big plans for ngrok and for the operator.
We’ll keep fixing issues quickly when they’re reported, adding features based on your feedback, and bringing new ngrok functionality into the operator as it ships. The operator is how we run ingress for all of our own services, so it gets the same care and love as anything else we build.