CCE.Pod
Element Description
The CCE.Pod element is used to create a pod in the Kubernetes cluster on the CCE.
Element Properties
Property |
Mandatory |
Descripiton |
---|---|---|
k8sManifest |
Yes |
Native YAML file content of a Kubernetes object Type: dict Value Description: Customize the value. You are advised to use a public image, which is uploaded to the image repository and whose type is set to public, and not to change the name under the metadata during an update. Value Constraint: This field cannot be left blank. |
name |
No |
Pod name Type: string Value Description: Customize the value, for example, my-pod. Value Constraint: The value supports a maximum of 63 characters and must start with a letter. Only lowercase letters, digits, and hyphens (-) are allowed. |
clusterId |
No |
ID of the cluster to which the resource belongs Type: Cloud.CCE.Cluster.Id Value Description: ID of an existing or new container cluster. Value Constraint: The value must satisfy the UUID rule and contain a maximum of 64 characters. Suggestion: 1. Enter the cluster ID. Specifically, log in to the CCE console, and choose Resource Management > Clusters. Click the target cluster, and you can then obtain its cluster ID. 2. Connect to the cluster object and use the get_reference function to obtain the cluster ID. |
namespace |
No |
Namespace where the resource is located Type: string Value Description: It must be a valid namespace in the cluster, for example, default. Value Constraint: The value must start with a letter. Only lowercase letters, digits, and hyphens (-) are allowed. Suggestion: Log in to the CCE console, and choose Resource Management > Namespaces. View and select the target namespace. |
Relationships Between Elements
Description |
Target |
---|---|
Dependency |
|
Dependency |
|
Dependency |
|
Dependency |
|
Dependency |
|
Dependency |
|
Dependency |
|
Inclusion |
Return Value
Property |
Type |
Description |
---|---|---|
refName |
string |
Pod name |
Blueprint Example
tosca_definitions_version: cloud_tosca_version_1_0 node_templates: ccepxbto: type: Cloud.CCE.Pod properties: k8sManifest: kind: Pod spec: containers: - image: get_input: ccepxbto_k8sManifest_spec_containers_0_image imagePullSecrets: - name: default-secret name: test restartPolicy: Always imagePullPolicy: Always apiVersion: v1 metadata: labels: name: pod-test name: pod-test name: get_input: ccepxbto_name clusterId: get_input: ccepxbto_clusterId namespace: get_input: ccepxbto_namespace inputs: ccepxbto_k8sManifest_spec_containers_0_image: description: Container image label: Pod ccepxbto_name: description: Pod name label: Pod ccepxbto_clusterId: description: ID of the cluster where the resource is located label: Pod ccepxbto_namespace: description: Namespace where the resource is located label: Pod outputs: name: value: get_attribute: - ccepxbto - refName description: pod name
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