Miguel Gonzalez:
hi, maybe it’s a stupid question but… when I got a pod’s YAML file like:
k get po my-pod -o yaml > my-pod.yaml
my yaml file is huge with a lot of information, however, in the solutions videos is so clean!
Do you know why?
Miguel Gonzalez:
hi, maybe it’s a stupid question but… when I got a pod’s YAML file like:
k get po my-pod -o yaml > my-pod.yaml
my yaml file is huge with a lot of information, however, in the solutions videos is so clean!
Do you know why?
Eyal Solomon:
the .yaml file you get this way includes all the current pods information,like creation time,node name and a lot of non-relevant info
what you can do after you get the .yaml file is to edit and only leave needed parts
Miguel Gonzalez:
yes… I know, but seems like the solutions videos are so simple and mine with a lot information
AT:
You could add “grep -v f:” - it gives a “bit” cleaner output.
Miguel Gonzalez:
Good idea! thanks @AT
Wayne Douglas:
the managed fields bit is killer
Miguel Gonzalez:
I think I tried, but it didn’t recognise this arg. (--dry-run=client
) in my laptop I used it
unnivkn:
–dry-run=client will work only for the newly creating objects. existing objects it won’t support.
Miguel Gonzalez:
yep… exactly, this is! thanks guys