jolly-waitress-71272
11/28/2022, 5:27 PMkubectl create secret generic kubeconfig --from-file=/etc/rancher/k3s/k3s.yaml
Is there a manifest (or literally any file at all) created somewhere I can reference? I'm trying to ansibilize it and I just want to run it once, with a creates
directive. So if there was a manifest, that'd be super easy.
I need to do this for some argo shenanigans if you're curious why I would yo dawg my kubeconfig.sticky-summer-13450
11/28/2022, 5:57 PM--dry-run=client --output=yaml
and pipe the output into a file--dry-run=client
does not send any data to the server, just creates the data which would be sent to the server - and in this case you want it in yaml formatcreamy-pencil-82913
11/28/2022, 6:00 PMjolly-waitress-71272
11/28/2022, 6:36 PM