OC-CONFIG-VIEW(1)
π NAME π
okay so you're on the oc config view page β manual name OC CONFIG(1) β and this command displays merged kubeconfig settings or a specified kubeconfig file. That's the whole main character assignment, bestie. π
oc config viewβ display merged kubeconfig settings or a specified kubeconfig file.
πΈ SYNOPSIS πΈ
oc config view [OPTIONS]
π¦ DESCRIPTION π¦
Display merged kubeconfig settings or a specified kubeconfig file. Literally the whole point. π
You can use --output jsonpath={...} to extract specific values using a jsonpath expression. It's giving "surgical little data grab" energy. β¨
β¨ OPTIONS β¨
--allow-missing-template-keys=trueβ Iftrue, ignore any errors in templates when a field or map key is missing in the template. Only applies togolangandjsonpathoutput formats. π«Ά--flatten=falseβ Flatten the resulting kubeconfig file into self-contained output, which is useful for creating portable kubeconfig files. π--merge=trueβ Merge the full hierarchy of kubeconfig files. All the layers, together. π--minify=falseβ Remove all information not used by current-context from the output. Clean it up, bestie. βοΈ-o,--output="yaml"β Output format. One of: (json,yaml,kyaml,name,go-template,go-template-file,template,templatefile,jsonpath,jsonpath-as-json,jsonpath-file). Pick your vibe. π--raw=falseβ Display raw byte data and sensitive data. π sensitive data alert, but make it accurate.--show-managed-fields=falseβ Iftrue, keep themanagedFieldswhen printing objects in JSON or YAML format. π¦--template=""β Template string or path to template file to use when-o=go-template,-o=go-template-file. The template format is golang templates [β¨http://golang.org/pkg/text/template/#pkg-overviewβ©]. β¨
π§ OPTIONS INHERITED FROM PARENT COMMANDS π§
these are inherited from parent commands, and yes, there are a lot β every single one is here, no cap:
--as=""β Username to impersonate for the operation. User could be a regular user or a service account in a namespace. π«Ά--as-group=[]β Group to impersonate for the operation, this flag can be repeated to specify multiple groups. π--as-uid=""β UID to impersonate for the operation. π--as-user-extra=[]β User extras to impersonate for the operation, this flag can be repeated to specify multiple values for the same key. πΈ--cache-dir="/homeless-shelter/.kube/cache"β Default cache directory. That path is exactly what it says, bestie. π¦--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β Iftrue, opt-out of response compression for all requests to the server. π«Ά--insecure-skip-tls-verify=falseβ Iftrue, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. π¨ dramatic but true.--kubeconfig=""β use a particular kubeconfig file. lowercaseuse, iconic. π--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. π§--match-server-version=falseβ Require server version to match client version. β-n,--namespace=""β If present, the namespace scope for this CLI request. πΈ--profile="none"β Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex). π₯--profile-output="profile.pprof"β Name of the file to write the profile to. π--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. β³-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. π--warnings-as-errors=falseβ Treat warnings received from the server as errors and exit with a non-zero exit code. π
π EXAMPLE π
no cap, here are the examples:
# Show merged kubeconfig settings
oc config view
# Show merged kubeconfig settings, raw certificate data, and exposed secrets
oc config view --raw
# Get the password for the e2e user
oc config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}'
π SEE ALSO π
oc-config(1),β the see-also ref, comma and all. π
π HISTORY π
June 2016, Ported from the Kubernetes man-doc generator
π cute sign-off: source/version Openshift, from the Openshift CLI User Manuals, dated June 2016, page OC CONFIG(1). That's the whole vibe β go forth and view those configs, bestie! π
β¨
π¦ 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