kubectl-create
Create a resource from a file or from stdin. tldr-pages
On several platforms
Several platforms
Create a resource using the resource definition file
kubectl create --filename path/to/file.ymlIdentify--filenameFilename, directory, or URL to files to use to create the resource kubectl referenceCreate a resource from stdin
kubectl create --filename -Identify--filenameFilename, directory, or URL to files to use to create the resource kubectl referenceCreate a deployment
kubectl create [deploy deployment_name --image imageIdentifyCreate a deployment with replicas
kubectl create [deploy deployment_name --image image --replicas number_of_replicasIdentifyCreate a service
kubectl create [svc service_type service_name --tcp port:target_portIdentifyCreate a namespace
kubectl create [ns namespace_nameIdentify