kubectl create
Create a resource from a file or from stdin kubectl reference
17 commands 16 options Its page in the kubectl reference
Commands
clusterroleCreate a cluster roleclusterrolebindingCreate a cluster role binding for a particular cluster roleconfigmapCreate a config map from a local file, directory or literal valuecronjobCreate a cron job with the specified namedeploymentCreate a deployment with the specified nameingressCreate an ingress with the specified namejobCreate a job with the specified namenamespaceCreate a namespace with the specified namepoddisruptionbudgetCreate a pod disruption budget with the specified namepriorityclassCreate a priority class with the specified nameresourcequotaCreate a quota with the specified nameroleCreate a role with single rulerolebindingCreate a role binding for a particular role or cluster rolesecretCreate a secret using a specified subcommandserviceCreate a service using a specified subcommandserviceaccountCreate a service account with the specified nametokenRequest a service account tokenOptions
--allow-missing-template-keysIf true, ignore any errors in templates when a field or map key is missing in the template.--dry-runMust be "none", "server", or "client".--editEdit the API resource before creating--field-managerName of the manager used to track field ownership.--filename, -fFilename, directory, or URL to files to use to create the resource--help, -hhelp for create--kustomize, -kProcess the kustomization directory.--output, -oOutput format.--rawRaw URI to POST to the server.--recursive, -RProcess the directory used in -f, --filename recursively.--save-configIf true, the configuration of current object will be saved in its annotation.--selector, -lSelector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'.(e.g. -l key1=value1,key2=value2,key3 in (value3)).--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.--templateTemplate string or path to template file to use when -o=go-template, -o=go-template-file.--validateMust be one of: strict (or true), warn, ignore (or false).--windows-line-endingsOnly relevant if --edit=true.