OC-CONFIG-GET-USERS(1)
π OC CONFIG GET-USERS(1) π
Okay bestie, buckle up β this is the oc config manual page, and we're about to get into the users of your kubeconfig. It's giving "who even are these people" energy, and honestly? Iconic.
β¨ NAME β¨
oc config get-users β displays the users defined in the kubeconfig. That's it. That's the whole vibe. π«Ά
π¦ SYNOPSIS π¦
oc config get-users [OPTIONS]
Simple slay. No cap.
πΈ DESCRIPTION πΈ
So like, this command literally just displays the users defined in the kubeconfig. That's the tea. It's a quick little peek at who's who in your cluster config β main character energy only. π β¨
π OPTIONS INHERITED FROM PARENT COMMANDS π
These flags are inherited from the parent command, meaning oc config is sharing its whole wardrobe with get-users. Generous queen behavior. π
--as=""β Username to impersonate for the operation. User could be a regular user or a service account in a namespace. Basically cosplay, but for auth. π--as-group=[]β Group to impersonate for the operation. This flag can be repeated to specify multiple groups. Stack 'em up, bestie. π«Ά--as-uid=""β UID to impersonate for the operation. Numeric identity theft, but make it legal. π’--as-user-extra=[]β User extras to impersonate for the operation. This flag can be repeated to specify multiple values for the same key. Extra? In this economy? We love to see it. π--cache-dir="/homeless-shelter/.kube/cache"β Default cache directory. Yes, that's the actual default path. Not me questioning it, just reporting the facts. π π--certificate-authority=""β Path to a cert file for the certificate authority. Trust issues? Solved. π--client-certificate=""β Path to a client certificate file for TLS. Your TLS flex, bestie. π--client-key=""β Path to a client key file for TLS. Guard this with your life, fr fr. π--cluster=""β The name of the kubeconfig cluster to use. Pick your fighter. βοΈ--context=""β The name of the kubeconfig context to use. Context is everything, literally. π§--disable-compression=falseβ If true, opt-out of response compression for all requests to the server. Sometimes you just want the raw, uncompressed truth. π--insecure-skip-tls-verify=falseβ If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. β οΈ Bestie, I am begging you β know what you're doing before you flip this one. This is not a drill. π¨--kubeconfig=""β Use a particular kubeconfig file. Choose your own adventure. π--kuberc=""β Path to the kuberc file to use for preferences. This can be disabled by exportingKUBECTL_KUBERC=falsefeature gate or turning off the featureKUBERC=off. Feature gate lore, iykyk. π§--match-server-version=falseβ Require server version to match client version. Strict queen behavior. π-n,--namespace=""β If present, the namespace scope for this CLI request. Because location matters. π--profile="none"β Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex). Pick your poison, bestie β the options are giving β¨varietyβ¨. π¬--profile-output="profile.pprof"β Name of the file to write the profile to. Where the data goes to live its best life. π--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. Patient queen energy only. β³-s,--server=""β The address and port of the Kubernetes API server. Slide into the server's DMs. π‘--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. Default behavior, but make it fashion. π--token=""β Bearer token for authentication to the API server. Your VIP pass. Keep it secret, keep it safe. ποΈ--user=""β The name of the kubeconfig user to use. Calling all users, please stand up. πββοΈ--warnings-as-errors=falseβ Treat warnings received from the server as errors and exit with a non-zero exit code. Strict mode activated. π
π₯ EXAMPLE π₯
Okay so the manpage shows this example β literally just:
# List the users that oc knows about
oc config get-users
And that's it. That's the whole tutorial. Iconic simplicity. π
π SEE ALSO π
oc-config(1)β the parent command, the mothership, the main character of this whole saga. π
π HISTORY π
June 2016, Ported from the Kubernetes man-doc generator. A vintage moment, honestly. π
And that's the tea, bestie! This page was brought to you by Openshift and the Openshift CLI User Manuals, dated June 2016. Go forth and know your users. πβ¨π¦
π¦ where this page comes from
- nixpkgs unstable: openshift 4.22.0-202605222050
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms