kairen / kairen.github.io Goto Github PK
View Code? Open in Web Editor NEWKaiRen's blog. The archived blog: https://kairen-archived.github.io
Home Page: https://k2r2bai.com
KaiRen's blog. The archived blog: https://kairen-archived.github.io
Home Page: https://k2r2bai.com
你的博客里面说,这个配置
若節點 IP 不同,需要修改apiserver-csr.json的hosts
但是我没找到里面有关于 hosts 的配置啊?我理解错了?
Hello kairen大神,
在下按照您的文档https://www.kubernetes.org.cn/3096.html 部署了两套K8S系统
一套是在vmware桥接安装的,一套是在vmware nat安装的
出问题的是nat的安装
kubectl get cs的时候报错:
Unable to connect to the server: Service Unavailable
查看/var/log/messages
Dec 1 13:22:21 master1 kubelet: W1201 13:22:21.287732 13990 cni.go:196] Unable to update cni config: No networks found in /etc/cni/net.d
Dec 1 13:22:21 master1 kubelet: E1201 13:22:21.287993 13990 kubelet.go:2095] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
既然没有CNI配置,那么我就先安装Calico Network(桥接的方式安装的时候没有报错,CALICO绑定到了NAT的网卡上ENS33)
在master1上安装完Calico Network,继续运行kubectl get cs还是报同样的错误
查看/var/log/messages
Dec 1 16:41:04 master1 systemd: Started calico node.
Dec 1 16:41:04 master1 systemd: Starting calico node...
Dec 1 16:41:04 master1 dockerd: time="2017-12-01T16:41:04+08:00" level=info msg
="shim docker-containerd-shim started" address="/containerd-shim/moby/68010b5c60
93de8d43b9370f8e454cd8589a67a0c992198afa0a69b1f19df0bb/shim.sock" debug=false mo
dule="containerd/tasks" pid=11415
Dec 1 16:41:05 master1 docker: Skipping datastore connection test
Dec 1 16:41:05 master1 docker: 2017-12-01 08:41:05.348043 I | warning: ignoring
ServerName for user-provided CA for backwards compatibility is deprecated
Dec 1 16:41:05 master1 docker: WARNING: Unable to auto-detect an IPv4 address u
sing interface regexes [enp0s8]: no valid host interfaces found
Dec 1 16:41:05 master1 docker: ERROR: Couldn't autodetect a management IPv4 add
ress:
Dec 1 16:41:05 master1 docker: - provide an IPv4 address by configuring one in
the node resource, or
Dec 1 16:41:05 master1 docker: - provide an IPv4 address using the IP environm
ent, or
Dec 1 16:41:05 master1 docker: - if auto-detecting, use a different autodetect
ion method.
Dec 1 16:41:05 master1 docker: Terminating
Dec 1 16:41:05 master1 docker: Calico node failed to start
Dec 1 16:41:05 master1 dockerd: time="2017-12-01T16:41:05.510797849+08:00" leve
l=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/del
ete type="*events.TaskDelete"
Dec 1 16:41:05 master1 dockerd: time="2017-12-01T16:41:05+08:00" level=info msg
="shim reaped" id=68010b5c6093de8d43b9370f8e454cd8589a67a0c992198afa0a69b1f19df0
bb module="containerd/tasks"
Dec 1 16:41:05 master1 systemd: calico-node.service: main process exited, code=
exited, status=1/FAILURE
Worked four runs then w/blue I'd my entire sys---- fick
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.