kubectl Access
kubectl is the Kubernetes command-line tool. Use it to inspect, manage, and troubleshoot resources
in your cluster.
Download your kubeconfig
Section titled “Download your kubeconfig”- In the portal, go to your cluster’s Overview page.
- Click Download Config to download the
kubeconfigfile.
Download kubectl
Section titled “Download kubectl”ZSoftly Cloud Platform supports Kubernetes 1.34, 1.35, 1.36, and 1.37. New clusters default to 1.36.4.
Install the latest stable kubectl release, and keep the client within one minor version of your
cluster. See the version skew policy for
details.
Linux / macOS:
curl -LO "https://dl.k8s.io/release/$(curl -Ls https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"chmod +x kubectlsudo mv kubectl /usr/local/bin/kubectlkubectl version --clientFor macOS replace linux with darwin in the URL above.
Windows (PowerShell):
$version = (Invoke-WebRequest -Uri "https://dl.k8s.io/release/stable.txt" -UseBasicParsing).Content.Trim()curl.exe -LO "https://dl.k8s.io/release/$version/bin/windows/amd64/kubectl.exe"If your cluster runs an older minor version, replace the fetched version with a release from the matching minor line. See the upstream install guides for full instructions per platform: Linux, macOS, and Windows.
Or use a package manager:
# macOSbrew install kubectl
# Linux (snap)snap install kubectl --classic
# Windows (winget)winget install Kubernetes.kubectlPackage-manager latest versions may not match your cluster’s minor version. Check the version lifecycle and Kubernetes version-skew guidance before installing one.
See the official kubectl install guide for all options.
Use kubectl with your kubeconfig
Section titled “Use kubectl with your kubeconfig”# List all podskubectl --kubeconfig /path/to/kube.conf get pods --all-namespaces
# List nodeskubectl --kubeconfig /path/to/kube.conf get nodes
# List serviceskubectl --kubeconfig /path/to/kube.conf get services --all-namespacesTo avoid specifying --kubeconfig every time:
export KUBECONFIG=/path/to/kube.confkubectl get nodesSee also: Create Cluster, Dashboard Access
