Hello, i deploy a cluster using rke, config below.
Ip address of docker0 network interface is write in file hosts.
As a result, the logs and the shell do not work in the interface, it only helps to manually change the ip address and restart the kubelet.
After updating the rancher all over again.
rancher-cluster.yml
nodes: - address: 172.27.10.103 hostname_override: test-b2b-mesos-01 user: i.khramtsov_pro role: [etcd,controlplane] - address: 172.27.10.104 hostname_override: test-b2b-mesos-02 user: i.khramtsov_pro role: [worker] - address: 172.27.10.105 hostname_override: test-b2b-mesos-03 user: i.khramtsov_pro role: [worker] - address: 172.27.10.131 hostname_override: test-b2b-kubernetes-01 user: i.khramtsov_pro role: [etcd,controlplane,worker] labels: app: dns - address: 172.27.10.132 hostname_override: test-b2b-kubernetes-02 user: i.khramtsov_pro role: [etcd,worker] services: etcd: extra_args: quota-backend-bytes: 4294967296 data-dir: "/var/lib/rancher/etcd/data/" wal-dir: "/var/lib/rancher/etcd/wal/wal_dir" extra_binds: - "/var/lib/etcd/data:/var/lib/rancher/etcd/data" - "/var/lib/etcd/wal:/var/lib/rancher/etcd/wal" snapshot: true creation: 24h retention: 72h system_images: kubernetes: rancher/hyperkube:v1.13.8-rancher1 network: plugin: canal options: canal_iface: eth0 canal_flannel_backend_type: vxlan dns: provider: coredns node_selector: app: dns upstreamnameservers: - 1.1.1.1 - 8.8.8.8
hosts
172.27.10.103 test-b2b-mesos-01 172.17.0.1 test-b2b-mesos-02 172.27.10.105 test-b2b-mesos-03 172.27.10.132 test-b2b-kubernetes-02 172.27.10.131 test-b2b-kubernetes-01
kubectl get nodes -i wide
i.khramtsov_pro@rog:/home/i.khramtsov_pro/temp$ kubectl get nodes -o wide NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME test-b2b-kubernetes-01 Ready controlplane,etcd,worker 10d v1.13.8 172.27.10.131 <none> Debian GNU/Linux 8 (jessie) 3.16.0-4-amd64 docker://18.6.3 test-b2b-kubernetes-02 Ready etcd,worker 10d v1.13.8 172.27.10.132 <none> Debian GNU/Linux 8 (jessie) 3.16.0-4-amd64 docker://18.6.3 test-b2b-mesos-01 Ready controlplane,etcd 10d v1.13.8 172.17.0.1 <none> Debian GNU/Linux 8 (jessie) 3.16.0-4-amd64 docker://18.6.3 test-b2b-mesos-02 Ready worker 10d v1.13.8 172.27.10.104 <none> Debian GNU/Linux 8 (jessie) 3.16.0-4-amd64 docker://18.6.3 test-b2b-mesos-03 Ready worker 10d v1.13.8 172.27.10.105 <none> Debian GNU/Linux 8 (jessie) 3.16.0-4-amd64 docker://18.6.3
error
failed: Error during WebSocket handshake: Unexpected response code: 404 rancher
docker info
Containers: 95 Running: 87 Paused: 0 Stopped: 8 Images: 88 Server Version: 18.06.3-ce Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 678 Dirperm1 Supported: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: 468a545b9edcd5932818eb9de8e72413e616e86e runc version: a592beb5bc4c4092b1b1bac971afed27687340c5 init version: fec3683 Kernel Version: 3.16.0-4-amd64 Operating System: Debian GNU/Linux 8 (jessie) OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 9.79GiB Name: test-b2b-kubernetes-02 ID: 3HT7:OSQG:ZM7A:OHU6:CCKM:AIQY:WZMZ:BGZJ:BIOJ:EDPY:NJHE:OBUF Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false
ip a
i.khramtsov_pro@test-b2b-kubernetes-02:~$ ip a 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 52:54:00:f2:c8:83 brd ff:ff:ff:ff:ff:ff inet 172.27.10.132/24 brd 172.27.10.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fef2:c883/64 scope link valid_lft forever preferred_lft forever 3: docker0: mtu 1500 qdisc noqueue state DOWN group default link/ether 02:42:4c:10:1f:54 brd ff:ff:ff:ff:ff:ff inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0 valid_lft forever preferred_lft forever inet6 fe80::42:4cff:fe10:1f54/64 scope link valid_lft forever preferred_lft forever 4: flannel.1: mtu 1450 qdisc noqueue state UNKNOWN group default link/ether 52:24:ae:22:b2:b1 brd ff:ff:ff:ff:ff:ff inet 10.42.1.0/32 scope global flannel.1 valid_lft forever preferred_lft forever inet6 fe80::5024:aeff:fe22:b2b1/64 scope link valid_lft forever preferred_lft forever