This message was deleted.
# general
a
This message was deleted.
h
2nd last option of Download YAML - is what I am looking for but from command line:
b
kubectl get <resource> -n <namespace> <resource name> -o yaml > my_manifest.yaml
is that what you were looking for?
h
I am looking for whole cluster... For example, in Rancher UI, we can edit cluster via YAML, is there a way to do that from kubectl ?
b
ooh the cluster manifest yea there should be a CRD in the local cluster that contains the manifests for all the downstream clusters
on sec let me find the CRD
kubectl get <http://clusters.provisioning.cattle.io|clusters.provisioning.cattle.io> -A
will get you the list
kubectl get <http://clusters.provisioning.cattle.io|clusters.provisioning.cattle.io> -n <namespace> <cluster name> -o yaml
will get you the yaml
👍 1
h
Thank you!!!
p
+1 thanks been looking forever for this!