What are generators in kubernetes kubectl?
When I want to generate yaml by running kubectl , it denotes that I should denote --generator=something flag within the command. For example, to get the deployment template via kubectl , I should run the below command: kubectl run --generator=deployment/v1beta1 nginx --image=nginx --dry-run -o yaml Without mentioning --generator flag the CLI states in some kind that I should mention the generator flag with a proper value (e.g. run-pod/v1 ). My question is, what is essentially a generator? What does it do? Are they some sort of object creation templates or something else? That was introduced in