OC(1)

πŸ“¦
version 4.22.0 Β· 2 versions
, in nixpkgs unstable

πŸ’… OC(1) β€” ok bestie, welcome to oc adm

So this page? It's oc adm from the OpenShift CLI User Manuals situation, and it's dated June 2016 β€” vintage, honestly. Anyway. Sit down, grab a lil snack πŸ“, because this is the admin toolkit and it's giving main character energy.


✨ NAME ✨

oc adm β€” literally the tools for managing a cluster. that's it. that's the vibe. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

oc adm [OPTIONS]

🌸 DESCRIPTION 🌸

Administrative Commands. capital A, capital C, no cap.

This is where all the actions for administering an OpenShift cluster live. Like, all of them. They're exposed here. That's the whole description, she's concise, we respect it 🫢


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

ok so these aren't even oc adm's own flags β€” they're inherited from the parent commands, like hand-me-downs but make it Kubernetes. every single one, here we go πŸ’…

  • --as="" β€” the username you wanna impersonate for the operation. and like, user could be a regular user OR a service account in a namespace, so werk either way ✨
  • --as-group=[] β€” group to impersonate for the operation. this flag can be repeated to specify multiple groups β€” yes bestie, repeat her πŸ’–
  • --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. (yes, /homeless-shelter is really what it says, 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.
  • --insecure-skip-tls-verify=false β€” if true, the server's certificate will not be checked for validity. > ⚠️ heads up bestie: this will make your HTTPS connections insecure. like actually insecure. dramatic on purpose. πŸ™ˆ
  • --kubeconfig="" β€” path to the kubeconfig file to use for CLI requests.
  • --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.
  • --match-server-version=false β€” require server version to match client version.
  • -n, --namespace="" β€” if present, the namespace scope for this CLI request. short flag girlies rise 🌈
  • --profile="none" β€” name of profile to capture. one of (none|cpu|heap|goroutine|threadcreate|block|mutex) β€” pick your fighter πŸ’€
  • --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. zero = no thoughts head empty, we wait forever 🧚
  • -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. spicy but fair πŸ”₯

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group. every single one of them, no gatekeeping:

oc(1), oc-adm-build-chain(1), oc-adm-catalog(1), oc-adm-certificate(1), oc-adm-copy-to-node(1), oc-adm-cordon(1), oc-adm-create-bootstrap-project-template(1), oc-adm-create-error-template(1), oc-adm-create-login-template(1), oc-adm-create-provider-selection-template(1), oc-adm-drain(1), oc-adm-groups(1), oc-adm-inspect(1), oc-adm-migrate(1), oc-adm-must-gather(1), oc-adm-new-project(1), oc-adm-node-image(1), oc-adm-node-logs(1), oc-adm-ocp-certificates(1), oc-adm-pod-network(1), oc-adm-policy(1), oc-adm-prune(1), oc-adm-reboot-machine-config-pool(1), oc-adm-release(1), oc-adm-restart-kubelet(1), oc-adm-taint(1), oc-adm-top(1), oc-adm-uncordon(1), oc-adm-upgrade(1), oc-adm-verify-image-signature(1), oc-adm-wait-for-node-reboot(1), oc-adm-wait-for-stable-cluster(1)


⭐ HISTORY ⭐

June 2016 β€” ported from the Kubernetes man-doc generator. so she's been around a minute, an icon, an OG πŸ’œ


okay that's the whole page, you ate that honestly πŸ‘‘

Openshift β€’ Openshift CLI User Manuals β€’ June 2016 β€” mwah, go forth and admin, bestie πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from