This topic describes how to associate an Elastic Network Interface (ENI) with a pod.
Background information
- When you create a Kubernetes cluster, you need to select Network Plugin as Terway. For more information, see Create an ACK cluster.
- If you use a Kubernetes cluster that is installed with the Terway network plugin,
you must make sure that the Terway plugin is V1.0.0.1 or later.
Note
- Log on to the Container Service console, click Clusters under the Kubernetes menu.
- In the action column of the target cluster, choose .
- On the Addon Upgrade page, view your current version of Terway.
- Determine whether to upgrade according to Current Version and Upgradeable Version. If you want to upgrade Terway, click Upgrade in the action column.
Procedure
Result
- In the left-side navigation pane under Container Service-Kubernetes, choose .
The pod named terway-pod is displayed.
- In the left-side navigation pane under Kubernetes, click Clusters.
- Click the name of the target cluster to view the cluster details.
- In the Cluster Resource area, click VPC to view the VPC CIDR block of the cluster.
- Run the following command to obtain the IP address of the deployed pod and verify
that the IP address is within the VPC CIDR block of the cluster:
$ kubectl get pod -o wide