- Quickly getting started trying out the ngrok Operator
- Local development & testing
- Connecting containerized workloads on your local machine to your ngrok infrastructure
- Faster iteration cycles without cloud latency
Choosing a container runtime
Before setting up a local Kubernetes cluster, you need a container runtime. The container runtime is responsible for running containers, managing their lifecycle, and handling networking. If you don’t already have a container runtime such as Docker installed, choose one from the options below.Choosing a cluster provider
Select one of the following options for running Kubernetes inside containers on your local machine.Basic commands
- k3d
- Minikube
- Kind
- Microk8s
- Docker Desktop
Managing Kubernetes contexts
When working with multiple Kubernetes clusters (for example, Minikube, k3d, kind, MicroK8s, cloud clusters), it is important to manage kubeconfig contexts efficiently. A context in Kubernetes determines:- Which cluster
kubectlis communicating with. - Which user credentials to use for authentication.
- Which namespace is the default for commands.
~/.kube/config).
The $KUBECONFIG environment variable is used by kubectl to know where your configuration file is.
If you would like to store it somewhere else, or use different files for different clusters, you can modify the $KUBECONFIG variable.
Viewing the current context
To check which Kubernetes cluster you are currently using:Listing all contexts
To see all available Kubernetes contexts in your kubeconfig:- Cluster Name (for example, minikube, kind-my-cluster, k3d-my-cluster).
- User Credentials.
- Current Context (marked with *).