es error master_not_discovered_exception 503

k8s es

[root@k8s-node-01 elk-01]# kubectl get pod -n flink
NAME                                      READY   STATUS        RESTARTS         AGE
es-cluster-master-6644f585cf-ds9lf        1/1     Running       0                7s
es-cluster-master-6644f585cf-f2mgb        1/1     Running       0                7s
es-cluster-master-6644f585cf-zxkk6        1/1     Running       0                7s

[root@k8s-node-01 elk-01]# kubectl  get svc -n flink
NAME                    TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)                      AGE
es-cluster-svc          ClusterIP   10.1.81.180    <none>        9300/TCP                     4m37s
es-nodeport-svc         NodePort    10.1.164.67    <none>        9200:32700/TCP               4m37s



[root@k8s-node-01 elk-01]# curl 192.168.42.131:32700/_cat/nodes
{ "error" : { "root_cause" : [ { "type" : "master_not_discovered_exception", "reason" : null } ], "type" : "master_not_discovered_exception", "reason" : null }, "status" : 503 }

#############

discovery.zen.ping.unicast.hosts=es-cluster-svc 以上错误因为指定的是 es-nodeport-svc
在这里插入图片描述

[root@k8s-node-01 elk-01]# curl localhost:32700/_cat/nodes
10.244.0.47 49 61 1 0.29 0.75 1.48 mdi - pX3L0zC
10.244.0.46 47 61 1 0.29 0.75 1.48 mdi - NydC8lX
10.244.0.48 54 61 1 0.29 0.75 1.48 mdi * 1-i7Fni
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值