Kasim Shaik:
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
Mayur Sharma:
@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
srikanth arani:
@Mayur Sharma hopes this works fine for other objects like deployments, nodes, services etc…?
Mayur Sharma:
Yes, this is the closest that I used. does not remove all the garbage but help you to browse easily
srikanth arani:
thank you sir