KUBERNETES(1)(kubernetes)
β¨ KUBERNETES β¨
okay bestie, welcome to the kubectl cinematic universe π this one's from the kubernetes manual, section 1, and it was originally written up by Eric Paris back in Jan 2015. pull up a chair, we're gonna get you fluent in cluster gossip π«Ά
π NAME
kubectl config get-clusters β shows you all the clusters defined in your kubeconfig π
πΈ SYNOPSIS
kubectl config get-clusters [OPTIONS]
π¦ DESCRIPTION
Displays the clusters defined in the kubeconfig. that's it, that's the whole vibe. it's giving "let me see who's in the group chat" π
π OPTIONS INHERITED FROM PARENT COMMANDS
these don't belong to get-clusters itself, they're inherited from the parent command, so they're just always chillin' in the background, ready to be useful β¨
--as=""β the username you wanna impersonate for the operation. could be a regular user, could be a service account hanging out in a namespace π--as-group=[]β the group you wanna impersonate for the operation. repeat this flag as many times as you want to stack up multiple groups π«Ά--as-uid=""β the UID you wanna impersonate for the operation π«--as-user-extra=[]β user extras to impersonate for the operation. repeat this flag to set multiple values for the same key π--cache-dir="/home/username/.kube/cache"β the default cache directory, exactly where it says on the tin ποΈ--certificate-authority=""β path to a cert file for the certificate authority π--client-certificate=""β path to a client certificate file for TLS π--client-key=""β path to a client key file for TLS ποΈ--cluster=""β the name of the kubeconfig cluster to use π--context=""β the name of the kubeconfig context to use π§--disable-compression=falseβ if true, you opt out of response compression for all requests to the server π«ποΈ--insecure-skip-tls-verify=falseβ if true, the server's certificate will not be checked for validity. heads up: this makes your HTTPS connections insecure π please be careful, bestie--kubeconfig=""β use a particular kubeconfig file π--kuberc=""β path to the kuberc file to use for preferences. you can turn this off by exporting theKUBECTL_KUBERC=falsefeature gate, or by turning off the feature withKUBERC=offβοΈ--match-server-version=falseβ require the server version to match the client version π€-n,--namespace=""β if present, the namespace scope for this CLI request π--password=""β password for basic authentication to the API server π--profile="none"β name of the profile to capture. one of (none|cpu|heap|goroutine|threadcreate|block|mutex|trace) π--profile-output="profile.pprof"β name of the file to write the profile to π--proxy-url=""β proxy URL to use for requests to the API server π--request-timeout="0"β how long to wait before giving up on a single server request. non-zero values should contain a matching time unit (like1s,2m,3h). a value of zero means don't timeout requests β³-s,--server=""β the address and port of the Kubernetes API server π₯οΈ--tls-server-name=""β server name to use for server certificate validation. if it's not provided, the hostname used to contact the server is used π·οΈ--token=""β bearer token for authentication to the API server ποΈ--user=""β the name of the kubeconfig user to use π--username=""β username for basic authentication to the API server π€--version=falseβ--version,--version=rawprints version information and quits;--version=vX.Y.Z...sets the reported version π’--warnings-as-errors=falseβ treat warnings received from the server as errors and exit with a non-zero exit code β οΈ
π EXAMPLE
# List the clusters that kubectl knows about
kubectl config get-clusters
π SEE ALSO
π HISTORY
January 2015, originally compiled by Eric Paris (eparis at redhat dot com) based on the kubernetes source material β but hopefully they have been automatically generated since! π
and that's the whole page, bestie π no cap. this gem comes from the kubernetes manual, user section, dated Jan 2015, and it's version KUBERNETES(1)(kubernetes) β go forth and list those clusters, you absolute icon πβ¨
π¦ where this page comes from
- arch rolling: kubectl 1.37.2-1 Β· Apache-2.0
- fedora 43: kubernetes1.37-client 1.37.0-3.fc43
- fedora 43: kubernetes1.37-client 1.37.1-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT AND MPL-2.0
- fedora 44: kubernetes1.37-client 1.37.0-3.fc44
- fedora 44: kubernetes1.37-client 1.37.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-HP AND CC-BY-4.0 AND ISC AND MIT AND MPL-2.0
- nixpkgs unstable: kubectl 1.37.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms