hardkubectl

Add or update a cluster entry in the kubeconfig with its API server URL

command

kubectl config set-cluster CLUSTER --server SERVER

also accepted

kubectl config set-cluster

Command breakdown

Part of the Kubernetes CLI (kubectl) — Cluster & Context category.

kubectlconfigset-clusterCLUSTER--serverSERVER
FlagPurpose
--serverBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →