Configuring kubectl
With kubectl configured, you can use the command line tool to manage your Kubernetes clusters by running kubectl commands. Follow these steps to configure kubectl.
- Choose Resource Management > AI Dedicated Resource Pools and click the ModelArts Lite tab.
Figure 1 Resource Pools
- Click the target dedicated resource pool to access its details page.
Figure 2 Dedicated resource pool details
- Click the CCE cluster to access its details page. From there, locate Connection Information in the cluster information.
Figure 3 Connection Information
- Use kubectl.
- To use kubectl through the intranet, install it on a node within the same VPC as the cluster. Click Configure next to kubectl. Perform operations as prompted.
Figure 4 Using kubectl through the intranet
- To use kubectl through an EIP, install it on any node that associated with the EIP.
Choose or create an EIP.
After the EIP is bound, locate Connection Information in the cluster information and click Configure next to kubectl.
Perform operations as prompted.
Figure 6 Configuring kubectl
- To use kubectl through the intranet, install it on a node within the same VPC as the cluster. Click Configure next to kubectl. Perform operations as prompted.
- Verify the configuration.
Run this command on the node where kubectl is installed. If the cluster node is displayed, the configuration is successful.
kubectl get node
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