Ravindra Kumar:
Guys I got a doubt on [–dry-run=server|client|none] … as we usually use --dry-run=client frequently… When do we use --dry-run=server
unnivkn:
Good question @Ravindra Kumar k run my-pod --image=nginx k get my-pod -oyaml > 1.yaml here your pod get created. Now let us do this: ‘k run my-pod --image=nginx --dry-run=server -oyaml >2.yaml’ Now If you compare 1.yaml & 2.yaml both looks same. However pod created along with 1.yaml, where as pod not created with 2.yaml.--dry-run=none will give similar output as --dry-run=server, however it will create the pod and it is the default option. Please refer the image’s below:




