ccictl create service externalname
Scenario
Create an ExternalName Service with a specified name.
An ExternalName Service references to an external DNS address instead of only pods. This allows application authors to reference services that exist off the platform, on other clusters, or locally.
ccictl create service externalname NAME --external-name external.name
Examples
# Create an ExternalName Service named my-ns. ccictl create service externalname my-ns --external-name bar.com
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.
--external-name string
Service name
-h, --help
Help information for create service externalname
-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.
--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.
--tcp strings
The port pair can be specified as "<port>:<target port>".
--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].
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