Kubectl run redis --image redis123 --dry-run=client -o yaml>list

Sidd:
what exactly does this command do? I ran and nothing happened

Tej_Singh_Rana:
Hello, @Sidd
> kubectl run redis --image redis123 --dry-run=client -o yaml > redis.yaml
It will create a manifest file for pod redis.
and we used redirect (>) symbol to store that content into redis.yaml file.
If you don’t wanna store and wanna see difference then do without redirection symbol :

kubectl run  redis --image redis123 --dry-run=client -o yaml