Configuring access to a Kubernetes cluster
Podman Desktop configures the access to Kubernetes clusters automatically when:
- Creating a Kind-powered local Kubernetes cluster.
- Creating an OpenShift Local cluster.
- Configuring access to a Developer Sandbox.
You can also use the Kubernetes CLI to configure access to your Kubernetes cluster:
Prerequisites
- You have credentials for your Kubernetes cluster.
Procedure
-
(Optionally) Go to Settings > Preferences > Path to the kubeconfig file to adapt your kubeconfig file location, when different from the default
$HOME/.kube/config
. -
Register your
<my_kubernetes>
Kubernetes cluster:$ kubectl config set-cluster <my_kubernetes> --server=<my_kubernetes_url>