我希望能够在该服务上发出HTTP请求。让我知道是否需要发布更多信息。谢谢!我试图卷曲群集IP:30480和ens160-ip:30480,但都无法正常工作。我如何向该服务提出简单的请求?
kubectl get services kong-admin
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kong-admin LoadBalancer 10.107.174.32 <pending> 8001:30480/TCP 9d
kubectl describe svc kong-admin
Name: kong-admin
Namespace: default
Labels: <none>
Annotations: <none>
Selector: app=kong
Type: LoadBalancer
IP: 10.107.174.32
Port: kong-admin 8001/TCP
TargetPort: 8001/TCP
NodePort: kong-admin 30480/TCP
Endpoints: 10.244.1.17:8001,10.244.2.18:8001,10.244.3.16:8001
Session Affinity: None
External Traffic Policy: Cluster
LoadBalancer Source Ranges: 0.0.0.0/0
Events: <none>
答案 0 :(得分:0)
您已经创建了LoadBalancer
类型的服务。您可以通过http://kong-admin
如果只希望从集群内部进行访问,请创建类型为ClusterIP