<p>I built a kubernetes cluster through kubeadm and created several services. These services can be accessed externally through the node ip: port, but when I try to access the service through cluster ip, it fails, it displays the error message curl: (7) Failed connect to 10.99.237.89:2379; Connection timed out, this How to solve the problem?</p>

<p>Cluster-related information</p>

<p><img src="https://i.stack.imgur.com/9KCBS.png" alt="enter image description here">
<img src="https://i.stack.imgur.com/5jGRI.png" alt="enter image description here"></p>

<pre><code>[root@********** ~]# kubectl describe svc etcd-torus-internal --namespace=default
Name:                   etcd-torus-internal
Namespace:              default
Labels:                 name=etcd-torus-internal
Selector:               name=etcd-torus
Type:                   ClusterIP
IP:                     10.99.237.89
Port:                   etcd-client     2379/TCP
Endpoints:              10.244.1.10:2379
Session Affinity:       None
No events.
[root@********** ~]# curl 10.99.237.89:2379
curl: (7) Failed connect to 10.99.237.89:2379; Connection timed out
[root@********** ~]#
</code></pre>

<p>Cluster IPs are not accessible from outside the cluster, they are internal only.</p>

<p>See <a href="https://kubernetes.io/docs/user-guide/services/#publishing-services---service-types" rel="nofollow noreferrer">here</a> for more details</p>
