OC(1)

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

πŸ’… OC(1) β€” like, the whole OpenShift client, bestie 🌈

okay so this is the manual page for oc, and honestly? it's giving main character energy in the OpenShift CLI User Manuals universe. sit down, grab a boba, we're doing this πŸ§‹βœ¨


✨ NAME ✨

oc β€” command line tools for managing applications 🫢


🌸 SYNOPSIS 🌸

oc [OPTIONS]

that's it. that's the whole vibe check. no args, just options πŸ”₯


πŸ¦‹ DESCRIPTION πŸ¦‹

OpenShift Client β€” say it with me πŸ‘‘

This client helps you develop, build, deploy, and run your applications on any OpenShift or Kubernetes cluster. literally the whole lifecycle, no cap. it also includes the administrative commands for managing a cluster under the adm subcommand β€” so yes, admin besties, you're covered too πŸ’œ


πŸŽ€ OPTIONS πŸŽ€

okay this is the long part, but every single one matters, so we're not skipping a thing. periodt πŸ’…

  • --as="" β€” Username to impersonate for the operation. User could be a regular user or a service account in a namespace. lowkey iconic for testing permissions ngl
  • --as-group=[] β€” Group to impersonate for the operation, this flag can be repeated to specify multiple groups. repeat it as many times as you need, bestie πŸŽ€
  • --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. yes, same key, multiple values β€” that's the whole point 🫢
  • --cache-dir="/homeless-shelter/.kube/cache" β€” Default cache directory. that path is not a typo, that's literally the default, 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. your fave context, slay ✨
  • --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. This will make your HTTPS connections insecure. ⚠️ like, actually insecure, so maybe don't unless you know exactly why you're doing it πŸ’€
  • --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. two whole ways to turn it off, pick your fighter πŸ™ˆ
  • --match-server-version=false β€” Require server version to match client version.
  • -n, --namespace="" β€” If present, the namespace scope for this CLI request. the classic, the legend, the one everyone uses πŸ’–
  • --profile="none" β€” Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex). note those exact values, bestie β€” they're a set, not a vibe 🌸
  • --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. so like, 0 = wait forever, and honestly same 😭
  • -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. keep it secret, keep it safe, don't paste it in the group chat πŸ”
  • --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. strict queen behavior πŸ‘‘

πŸ‘€ SEE ALSO πŸ‘€

the whole friend group, fr fr β€” every one of these has its own page:

oc-adm(1), oc-annotate(1), oc-api-resources(1), oc-api-versions(1), oc-apply(1), oc-attach(1), oc-auth(1), oc-autoscale(1), oc-cancel-build(1), oc-cluster-info(1), oc-completion(1), oc-config(1), oc-cp(1), oc-create(1), oc-debug(1), oc-delete(1), oc-describe(1), oc-diff(1), oc-edit(1), oc-events(1), oc-ex(1), oc-exec(1), oc-explain(1), oc-expose(1), oc-extract(1), oc-get(1), oc-get-token(1), oc-idle(1), oc-image(1), oc-import-image(1), oc-kustomize(1), oc-label(1), oc-login(1), oc-logout(1), oc-logs(1), oc-new-app(1), oc-new-build(1), oc-new-project(1), oc-observe(1), oc-options(1), oc-patch(1), oc-plugin(1), oc-policy(1), oc-port-forward(1), oc-process(1), oc-project(1), oc-projects(1), oc-proxy(1), oc-registry(1), oc-replace(1), oc-rollback(1), oc-rollout(1), oc-rsh(1), oc-rsync(1), oc-run(1), oc-scale(1), oc-secrets(1), oc-serviceaccounts(1), oc-set(1), oc-start-build(1), oc-status(1), oc-tag(1), oc-version(1), oc-wait(1), oc-whoami(1),

(and yes, the trailing comma at the end is literally in the original, we're keeping it, character for character πŸ’…)


πŸ“œ HISTORY πŸ“œ

June 2016, Ported from the Kubernetes man-doc generator. a real throwback, honestly vintage πŸ•°οΈβœ¨


okay bestie, that's the whole page, you ate it up, no crumbs left πŸ“

mwah πŸ’‹ β€” this was Openshift / Openshift CLI User Manuals, dated June 2016, and it's the OC(1) page, signing off πŸŽ€

πŸ“¦ where this page comes from