CmdID

CmdID / Commands

kubectl-create

Create a resource from a file or from stdin. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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 reference

Create a resource from stdin

kubectl create --filename -Identify
--filenameFilename, directory, or URL to files to use to create the resource kubectl reference

Create a deployment

kubectl create [deploy deployment_name --image imageIdentify

Create a deployment with replicas

kubectl create [deploy deployment_name --image image --replicas number_of_replicasIdentify

Create a service

kubectl create [svc service_type service_name --tcp port:target_portIdentify

Create a namespace

kubectl create [ns namespace_nameIdentify