ccictl create deployment
Scenario
Create a Deployment with a specified name.
ccictl create deployment NAME --image=image -- [COMMAND] [args...]
Examples
# Create a Deployment named my-dep to run the busybox image. The pod has 1 vCPU and 2-GiB memory. ccictl create deployment my-dep --image=busybox --pod-size-specs=1.0_2.00 # Create a Deployment with commands and set the pod CPU and memory to 2 vCPUs and 4 GiB. ccictl create deployment my-dep --image=busybox --pod-size-specs=2.0_4.00 -- date # Create a Deployment named my-dep that runs the nginx image and has three replicas. The pod has 1 vCPU and 2-GiB memory. ccictl create deployment my-dep --image=nginx --pod-size-specs=1.0_2.00 --replicas=3 # Create a Deployment named my-dep that runs the busybox image and exposes port 5701. The pod has 1 vCPU and 2-GiB memory. ccictl create deployment my-dep --image=busybox --pod-size-specs=1.0_2.00 --port=5701 # Create a Deployment named my-dep. The pod has multiple containers and 1 vCPU and 2-GiB memory. ccictl create deployment my-dep --image=busybox:latest --pod-size-specs=1.0_2.00 --image=ubuntu:latest --image=nginx
Options
--allow-missing-template-keys Default: true
If the value is true, the error in the template is ignored when a field or mapping key is missing in the template. This option applies only to the Golang and JSONPath output formats.
-h, --help
Help information for create deployment
--image strings
Image names. A deployment can have multiple images set for a multi-container pod.
-o, --output string
Output format. The value options include json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, and jsonpath-file.
--port int32 Default: -1
Container port exposed by the Deployment.
-r, --replicas int32 Default: 1
Number of replicas to be created. The default value is 1.
--save-config
If the value is true, the configuration of the object is saved in its annotation. Otherwise, the annotation remains unchanged. This flag is useful when you want to run the ccictl apply command on the object.
--template string
Template character string or template file path used when -o is set to go-template or go-template-file. The Golang template format is [http://golang.org/pkg/text/template/#pkg-overview].
--pod-size-specs
Pod specifications
The following ccictl options can also be used in subcommands:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot