OC-ADM-COPY-TO-NODE(1)

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

πŸ’… OC ADM(1) β€” copy-to-node, bestie edition

okay so real talk, this is the manual page for the oc adm copy-to-node command, straight out of the Openshift CLI User Manuals (dated June 2016, no cap) πŸ’– we're gonna get through it together.

✨ NAME ✨

oc adm copy-to-node β€” copies the files you specify over to the node. that's it. that's the whole vibe. πŸ“β†’πŸ–₯️

✨ SYNOPSIS ✨

oc adm copy-to-node [OPTIONS]

✨ DESCRIPTION ✨

It copies a file from the host over to the nodes you point at. iconic behavior, honestly. 🫢

Experimental: this command is under active development and may change without notice β€” so don't come for me if the vibes shift, okay? 😭

✨ OPTIONS ✨

  • --all=false β€” select every resource in the namespace of the resource types you specified. all of them. the whole friend group. πŸ‘‘
  • --allow-missing-template-keys=true β€” if true, it just ignores any template errors when a field or map key is missing from the template. lowkey forgiving. only applies to golang and jsonpath output formats, fyi.
  • --copy=[] β€” <source-path>=<node-destination>. if you hand it a directory, it iterates each named file in that directory, non-recursive (PR welcome β€” yes the manpage literally says that, I'm not making it up πŸ’€) that is a valid secret key.
  • --dry-run=false β€” set to true to use server-side dry run. practice mode. rehearsal. no actual commitment. πŸ™ˆ
  • --field-selector="" β€” selector (field query) to filter on. supports =, ==, and != (e.g. --field-selector key1=value1,key2=value2). heads up though: the server only supports a limited number of field queries per type. it's giving exclusivity.
  • -f, --filename=[] β€” identifying the resource.
  • --local=false β€” if true, annotation will NOT contact api-server and instead runs locally. staying in your own lane, off the grid. πŸ¦‹
  • -o, --output="" β€” output format. one of: (json, yaml, kyaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file). pick your aesthetic.
  • --parallelism="10%" β€” parallelism is a raw number or a percentage of the nodes to work with concurrently. multitasking queen energy. ⚑
  • -R, --recursive=true β€” process the directory used in -f, --filename recursively. useful when you want to manage related manifests organized within the same directory. it's giving organized. πŸŽ€
  • -l, --selector="" β€” selector (label query) to filter on. supports =, ==, and != (e.g. -l key1=value1,key2=value2).
  • --show-managed-fields=false β€” if true, keep the managedFields when printing objects in JSON or YAML format. show it all, don't hide. πŸ’…
  • --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 🌸

like, these aren't even hers, she inherited them. still slay.

  • --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. (yes, /homeless-shelter is literally the path, don't @ 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. this will make your HTTPS connections insecure β€” big yikes, only do this if you know what you're doing. πŸ’€
  • --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. matching outfits only. πŸ‘―
  • -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. the patience of a saint, fr fr.
  • -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. strict queen behavior. πŸ‘‘

πŸ¦‹ EXAMPLE πŸ¦‹

# Copy a new bootstrap kubeconfig file to node-0
oc adm copy-to-node --copy=new-bootstrap-kubeconfig=/etc/kubernetes/kubeconfig node/node-0

copying a fresh bootstrap kubeconfig over to node-0? that's the plot. 🎬


🧚 SEE ALSO 🧚

(the comma is theirs, not mine, but we respect it πŸ’œ)

🌈 HISTORY 🌈

June 2016 β€” ported from the Kubernetes man-doc generator. vintage. iconic. a little retro moment. ⭐


okay that's the whole thing, bestie, you ate that πŸ“πŸ’… β€” one last thing: this page is from Openshift, part of the Openshift CLI User Manuals, and it's OC ADM(1), dated June 2016. mwah, go copy those files, you absolute main character. πŸŽ€πŸ‘‘πŸ”₯

πŸ“¦ where this page comes from