??????calico????????????client response is invalid json

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了??????calico????????????client response is invalid json相关的知识,希望对你有一定的参考价值。

?????????stc   ??????   invalid   ?????????   tps   error:   load   emctl   service   

??????docker??????calico???????????????

# docker network create --driver calico --ipam-driver calico-ipam testcalico
Error response from daemon: failed to update store for object type *libnetwork.endpointCnt: client: response is invalid json. The endpoint is probably not valid etcd cluster endpoint.

??????docker?????????

# journalctl -fu docker
-- Logs begin at Sun 2018-05-06 10:42:10 CST. --
May 06 10:51:11 gpu16 dockerd[1045]: time="2018-05-06T10:51:11.997488908+08:00" level=warning msg="Registering as "192.168.56.16:2375" in discovery failed: client: response is invalid json. The endpoint is probably not valid etcd cluster endpoint."
May 06 10:51:13 gpu16 dockerd[1045]: time="2018-05-06T10:51:13.209441579+08:00" level=error msg="discovery error: client: response is invalid json. The endpoint is probably not valid etcd cluster endpoint."
May 06 10:51:13 gpu16 dockerd[1045]: time="2018-05-06T10:51:13.211323271+08:00" level=error msg="discovery error: client: response is invalid json. The endpoint is probably not valid etcd cluster endpoint."
May 06 10:51:13 gpu16 dockerd[1045]: time="2018-05-06T10:51:13.213320054+08:00" level=error msg="discovery error: Unexpected watch error"

???????????????????????????????????????calico?????????????????????????????????etcd????????????????????????V3?????????etcd??????????????????API???????????????V2?????????V3???docker???????????????????????????????????????docker???????????????etcd API?????????etcd?????????API??????????????????????????????????????????
?????????????????????????????????etcd???????????????curl http://

# curl http://192.168.56.96:2379/version
{"etcdserver":"3.1.9","etcdcluster":"3.1.0"}

???????????????
??????http????????????????????????????????????http???https?????????????????????http_proxy???https_proxy???????????????????????????no_proxy???????????????????????????IP?????????????????????IP??????no_proxy??????????????????????????????????????????http??????????????????????????????json??????????????????????????????????????????????????????response is invalid json????????????????????????????????????????????????http_proxy???https_proxy???no_proxy????????????docker?????????????????????????????????????????????????????????????????????docker?????????????????????????????????????????????calico????????????docker?????????http?????????etcd??????????????????no_proxy???????????????etcd?????????IP???

# mkdir -p /etc/systemd/system/docker.service.d/
# vim /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://192.168.11.200:8080/" "HTTPS_PROXY=https://192.168.11.200:8080/" "NO_PROXY=192.168.56.109,192.168.56.96"

# systemctl daemon-reload
# systemctl restart docker

???docker????????????????????????????????????calico??????????????????

# docker network create --driver calico --ipam-driver calico-ipam testcalico
53cbe9b82451b017be6d5d80a8fc17e320f6269521dfeabb7e07fd79ee92e3ef


以上是关于??????calico????????????client response is invalid json的主要内容,如果未能解决你的问题,请参考以下文章

114.kubernetes之calico

k8s之calico网络

Calico 网络原理

Calico 网络故障排查 calico/node is not ready: BIRD is not ready(指定Calico匹配网桥规则)

Calico的入门和网络优化

Calico的入门和网络优化