--attach[=false]: If true, wait for the Pod to start running, and then attach to the Pod as if 'kubectl attach ...' were called. Default false, unless '-i/--interactive' is set, in which case the default is true.
--attach[=false]: If true, wait for the Pod to start running, and then attach to the Pod as if 'kubectl attach ...' were called. Default false, unless '-i/--interactive' is set, in which case the default is true.
--command[=false]: If true and extra arguments are present, use them as the 'command' field in the container, rather than the 'args' field which is the default.
--command[=false]: If true and extra arguments are present, use them as the 'command' field in the container, rather than the 'args' field which is the default.
--dry-run[=false]: If true, only print the object that would be sent, without sending it.
--dry-run[=false]: If true, only print the object that would be sent, without sending it.
--env=[]: Environment variables to set in the container
--generator="": The name of the API generator to use. Default is 'run/v1' if --restart=Always, otherwise the default is 'run-pod/v1'.
--generator="": The name of the API generator to use. Default is 'run/v1' if --restart=Always, otherwise the default is 'run-pod/v1'.
--hostport=-1: The host port mapping for the container port. To demonstrate a single-machine container.
--hostport=-1: The host port mapping for the container port. To demonstrate a single-machine container.
cmd.Flags().IntP("replicas","r",1,"Number of replicas to create for this container. Default is 1.")
cmd.Flags().IntP("replicas","r",1,"Number of replicas to create for this container. Default is 1.")
cmd.Flags().Bool("dry-run",false,"If true, only print the object that would be sent, without sending it.")
cmd.Flags().Bool("dry-run",false,"If true, only print the object that would be sent, without sending it.")
cmd.Flags().String("overrides","","An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.")
cmd.Flags().String("overrides","","An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.")
cmd.Flags().StringSlice("env",[]string{},"Environment variables to set in the container")
cmd.Flags().Int("port",-1,"The port that this container exposes.")
cmd.Flags().Int("port",-1,"The port that this container exposes.")
cmd.Flags().Int("hostport",-1,"The host port mapping for the container port. To demonstrate a single-machine container.")
cmd.Flags().Int("hostport",-1,"The host port mapping for the container port. To demonstrate a single-machine container.")
cmd.Flags().StringP("labels","l","","Labels to apply to the pod(s).")
cmd.Flags().StringP("labels","l","","Labels to apply to the pod(s).")