OC-ADM-COPY-TO-NODE(1)
π 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β iftrue, it just ignores any template errors when a field or map key is missing from the template. lowkey forgiving. only applies togolangandjsonpathoutput 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 totrueto 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β iftrue, 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,--filenamerecursively. 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β iftrue, keep themanagedFieldswhen printing objects inJSONorYAMLformat. 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-shelteris 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β 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 β 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 thekubercfile 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. 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
- 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