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?