How to generate pod template of existing running pod without getting cluster related information ? Earlier, we used to use --export command
is there any such option now since it is depricated
@Kasim Shaik --export is deprecated and no option available.
FOr best possible solution, we can do
kubectl get pods -o yaml | grep -v ‘f:’ > pod.yaml
@Mayur Sharma hopes this works fine for other objects like deployments, nodes, services etc…?
Yes, this is the closest that I used. does not remove all the garbage but help you to browse easily
thank you sir