Preparing a CCE Workload
- Create a cluster.
- Log in to the CCE console and buy a CCE standard or CCE Turbo cluster on the Clusters page. Select CCE Standard Cluster and set Network Model to VPC network. For details, see Buying a CCE Cluster.
- After the cluster is created, record the container CIDR block.
- Add this CIDR block in the Routes area of a dedicated gateway.
- Log in to the APIG console, and choose Gateways in the navigation pane.
- Click the gateway name to go to the details page.
- Add the container CIDR block in the Routes area.
- Create a workload.
- On the Clusters page of the CCE console, click the cluster name to go to the details page.
- In the navigation pane, choose Workloads.
- Click Create Workload. Select Deployment. For details, see the Cloud Container Engine User Guide.
In the Advanced Settings > Labels and Annotations area, set pod labels for switching the workload and service version. In this example, set app=deployment-demo and version=v1. If you create a workload by importing a YAML file, add pod labels in this file. For details about pod labels, see Configuring Labels and Annotations.
Add pod labels in a YAML file:
spec: replicas: 2 selector: matchLabels: app: deployment-demo version: v1 template: metadata: creationTimestamp: null labels: app: deployment-demo version: v1
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