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 the KUBECTL_KUBERC=false feature gate, or by turning off the feature with KUBERC=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 (like 1s, 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=raw prints 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

kubectl-config(1),

πŸ’œ 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