Files
rancher-docs/versioned_docs/version-2.12/faq/install-and-configure-kubectl.md
T
2025-07-30 15:00:52 -07:00

944 B

title
title
Installing and Configuring kubectl
<head> </head>

kubectl is a CLI utility for running commands against Kubernetes clusters. It's required for many maintenance and administrative tasks in Rancher 2.x.

Installation

See kubectl Installation for installation on your operating system.

Configuration

Test your connectivity with kubectl and see if you can get the list of nodes back.

kubectl get nodes
 NAME                          STATUS    ROLES                      AGE       VERSION
165.227.114.63                Ready     controlplane,etcd,worker   11m       v1.10.1
165.227.116.167               Ready     controlplane,etcd,worker   11m       v1.10.1
165.227.127.226               Ready     controlplane,etcd,worker   11m       v1.10.1