I'm trying to export a daemonset from my kubernetes cluster but I dont want any of the metadata. Is there a way I can export the manifest file without the metadata, like creationtimestamp
, uid_selflink
, etc.
for example, something like this would be perfect:
kubectl get daemonset mydaemonset --no-meta-data -o yaml > exported-mydaemonset.yaml
I want to discard information about the current object state.