问题描述
我在 GKE 集群上运行的 kong ingress 日志中看到以下错误。如果有人能够帮助解决这个问题,我们将不胜感激。
{msg="no active endpoints" component=store service_name=api service_namespace=test_app service_port="&ServicePort{Name:low,Protocol:TCP,Port:80,TargetPort:{0 3000 },NodePort:31740,AppProtocol:nil,}
当我检查部署 pod 的端点时
kubectl get pods -o wide
api-deployment-7d5d8894ff-676n5 1/1 Running 0 24m 172.27.1.122
kubectl get endpoints
NAME ENDPOINTS AGE
api 172.27.1.122:3000,172.27.1.122:3000 24m
我的部署和服务定义具有相同的选择器标签
kubectl describe service api
Name: api
Namespace: test_app
Labels: app.kubernetes.io/instance=test_app.api
Annotations: Selector: app=api
Type: NodePort
IP: 172.25.131.61
Port: high 8080/TCP
TargetPort: 3000/TCP
NodePort: high 31281/TCP
Endpoints: 172.27.1.122:3000
Port: low 80/TCP
TargetPort: 3000/TCP
NodePort: low 31740/TCP
Endpoints: 172.27.1.122:3000
Session Affinity: None
External Traffic Policy: Cluster
Events: <none>
我正在使用以下版本的 kong 和 kong-ingress
kong/kubernetes-ingress-controller:1.2
kong:2.3
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)