The issues here are described in order of how likely they are to occur.
Check these causes one by one until you find the cause of the fault.
Log in to the CCE console or use kubectl to query the IP address of the pod. Then, log in to the node or container in the cluster and run the curl command to manually call the API. Check whether the expected result is returned.
If <container IP address>:<port> cannot be accessed, you are advised to log in to the application container and access <127.0.0.1>:<port> to locate the fault.
Common issues:
Only NodePort or LoadBalancer Services can be accessed using the node IP address and node port.
The access port of a node is the port exposed externally by the node.
You can view the node port of a LoadBalancer Service by editing the YAML file.
Example:
nodePort: 30637 indicates the exposed node port. targetPort: 80 indicates the exposed pod port. port: 123 is the exposed Service port. LoadBalancer Services also use this port to configure the ELB listener.
After finding the node port (nodePort), access <IP address>:<port> of the node where the container is located and check whether the expected result is returned.
Common issues:
There are several possible causes if <IP address>:<port> of the ELB cannot be accessed, but <IP address>:<port> of the node can be accessed.
Possible causes:
Common issues:
Generally, no EIP is configured for the backend server of NAT. Otherwise, exceptions such as network packet loss may occur.
Log in to the management console, choose Service List > Networking > Virtual Private Cloud. On the Network console, choose Access Control > Security Groups, locate the security group rule of the CCE cluster, and modify and harden the security group rule.
The security group name of the node is {Cluster name}-cce-node-{Random characters}.
The security group name of the node is {Cluster name}-cce-node-{Random characters}.
The name of the security group associated with the containers is {Cluster name}-cce-eni-{Random characters}.
Check the following:
For details about security group configuration, see How Can I Configure a Security Group Rule in a Cluster?.