KUBERNETES(1)(kubernetes)

✨ KUBERNETES(1)(kubernetes) ✨

okay bestie, buckle up πŸ’– this is a page from the kubernetes manual (section 1, user commands, iykyk) and we're gonna read it together like it's a group chat.


🌸 NAME 🌸

kubectl config get-users β€” Display users defined in the kubeconfig


πŸ¦‹ SYNOPSIS πŸ¦‹

kubectl config get-users [OPTIONS]

πŸ’œ DESCRIPTION πŸ’œ

so basically? it displays the users defined in the kubeconfig. that's the whole thing. that's the vibe. Display users defined in the kubeconfig. periodt πŸ‘‘


πŸŽ€ OPTIONS INHERITED FROM PARENT COMMANDS πŸŽ€

these aren't even her options, they're the family options she inherited, and honestly? iconic of her. πŸ’…

  • --as="" β€” username to impersonate for the operation. could be a regular user, could be a service account in a namespace, no judgement either way 🫢
  • --as-group=[] β€” group to impersonate for the operation. this flag can be repeated to specify multiple groups, so go off, collect them all 🌈
  • --as-uid="" β€” UID to impersonate for the operation.
  • --as-user-extra=[] β€” user extras to impersonate for the operation. repeatable, so you can specify multiple values for the same key πŸ’…
  • --cache-dir="/home/username/.kube/cache" β€” default cache directory. that's literally the default, character for character, don't come for me πŸ“
  • --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, opt-out of response compression for all requests to the server. no zipping, no squeezing, just raw data fr fr
  • --insecure-skip-tls-verify=false β€” if true, the server's certificate will not be checked for validity. and bestie? this will make your HTTPS connections insecure. like, actually insecure. not a vibe. 🚨
  • --kubeconfig="" β€” use a particular kubeconfig file
  • --kuberc="" β€” path to the kuberc file to use for preferences. this can be disabled by exporting KUBECTL_KUBERC=false feature gate or turning off the feature KUBERC=off. (yes, both ways, she's flexible ✨)
  • --match-server-version=false β€” require server version to match client version. they gotta match or it's giving βœ‹
  • -n, --namespace="" β€” if present, the namespace scope for this CLI request
  • --password="" β€” password for basic authentication to the API server 🀫
  • --profile="none" β€” name of profile to capture. one of (none|cpu|heap|goroutine|threadcreate|block|mutex|trace) β€” pick your fighter πŸ‘‘
  • --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" β€” the length of time to wait before giving up on a single server request. non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). a value of zero means don't timeout requests. zero = infinite patience, main character energy honestly ⏳
  • -s, --server="" β€” the address and port of the Kubernetes API server
  • --tls-server-name="" β€” server name to use for server certificate validation. if it is 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. warnings? no ma'am, we take those seriously πŸ’€

🌈 EXAMPLE 🌈

# List the users that kubectl knows about
kubectl config get-users

look at her go. so simple. so clean. ate and left no crumbs πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘

(that's it, that's the whole squad)


🧚 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 tea, bestie πŸ’… this page lives in the Manuals section, under User, and it's part of KUBERNETES(1)(kubernetes) β€” with the date up there being January 2015 (well, the original compilation date, at least). slay, stay hydrated, and don't skip your TLS verification 🫢✨
πŸ“¦ where this page comes from