Skip to main content

Kubernetes Operator Managed Resources

The ngrok Kubernetes operator has many different custom resource definitions that are installed along with it. Many of these are resources that you can create on your own, others are primarily created and managed by the operator.

Managed Labels

The ngrok operator uses the following labels to mark which resources it created and manages versus resources that you create and manage manually. The values are determined by your installation name and namespace.

Loading…

Any resource with these labels will have its lifecycle controlled by the ngrok operator. They should never be used on resources you create and manage yourself. When the operator translates Ingress and Gateway API configuration resources into AgentEndpoint and CloudEndpoint resources for you, it marks those as managed resources using the above labels. Adding these labels to resources you create and manage yourself can cause the operator to delete them since it thinks that the resource was created from an Ingress/etc. that no longer exists.

You can use these labels to your advantage to list the resources that the operator manages. For example, to get all AgentEndpoint resources that are created and managed by the operator:

Loading…