k8s-node01 下的 flannel 在停止前的历史日志:
[root@k8s-node01 ~] ○ docker logs -f 08e53031eb51
I0925 06:20:54.165091 1 main.go:417] Searching for interface using 192.168.123.156
I0925 06:20:54.165898 1 main.go:488] Using interface with name eth0 and address 192.168.123.156
I0925 06:20:54.165951 1 main.go:505] Defaulting external address to interface address (192.168.123.156)
I0925 06:20:54.185586 1 kube.go:131] Waiting 10m0s for node controller to sync
I0925 06:20:54.185733 1 kube.go:294] Starting kube subnet manager
I0925 06:20:55.187003 1 kube.go:138] Node controller sync successful
I0925 06:20:55.187060 1 main.go:235] Created subnet manager: Kubernetes Subnet Manager - k8s-node01
I0925 06:20:55.187068 1 main.go:238] Installing signal handlers
I0925 06:20:55.187262 1 main.go:353] Found network config - Backend type: vxlan
I0925 06:20:55.187359 1 vxlan.go:120] VXLAN config: VNI=1 Port=0 GBP=false DirectRouting=false
I0925 06:20:55.187970 1 main.go:300] Wrote subnet file to /run/flannel/subnet.env
I0925 06:20:55.187978 1 main.go:304] Running backend.
I0925 06:20:55.187986 1 main.go:322] Waiting for all goroutines to exit
I0925 06:20:55.188016 1 vxlan_network.go:60] watching for new subnet leases
I0925 06:21:25.715804 1 main.go:337] shutdownHandler sent cancel signal...
nginx-proxy:
[root@k8s-node01 ~] ○ docker logs -f 10e9989c50d2
2018/09/25 06:22:22 [notice] 1#1: using the "epoll" event method
2018/09/25 06:22:22 [notice] 1#1: nginx/1.11.4
2018/09/25 06:22:22 [notice] 1#1: built by gcc 5.3.0 (Alpine 5.3.0)
2018/09/25 06:22:22 [notice] 1#1: OS: Linux 3.10.0-693.5.2.el7.x86_64
2018/09/25 06:22:22 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 65536:65536
2018/09/25 06:22:22 [notice] 1#1: start worker processes
2018/09/25 06:22:22 [notice] 1#1: start worker process 6
2018/09/25 06:22:22 [notice] 1#1: start worker process 7
2018/09/25 06:22:22 [notice] 1#1: start worker process 8
2018/09/25 06:22:22 [notice] 1#1: start worker process 9
2018/09/25 06:23:28 [notice] 1#1: signal 15 (SIGTERM) received, exiting
2018/09/25 06:23:28 [notice] 7#7: exiting
2018/09/25 06:23:28 [notice] 6#6: exiting
2018/09/25 06:23:28 [notice] 7#7: exit
2018/09/25 06:23:28 [notice] 6#6: exit
2018/09/25 06:23:28 [notice] 8#8: exiting
2018/09/25 06:23:28 [notice] 8#8: exit
2018/09/25 06:23:28 [notice] 9#9: exiting
2018/09/25 06:23:28 [notice] 9#9: exit
kube-proxy 日志:
[root@k8s-node01 ~] ○ docker logs -f 2f31b62f315f
W0925 06:24:14.849141 1 server.go:191] WARNING: all flags other than --config, --write-config-to, and --cleanup are deprecated. Please begin using a config file ASAP.
time="2018-09-25T06:24:14Z" level=warning msg="Running modprobe ip_vs failed with message: `modprobe: ERROR: could not insert 'ip_vs': Exec format error\ninsmod /lib/modules/3.10.0-693.5.2.el7.x86_64/kernel/net/netfilter/ipvs/ip_vs.ko.xz`, error: exit status 1"
time="2018-09-25T06:24:14Z" level=error msg="Could not get ipvs family information from the kernel. It is possible that ipvs is not enabled in your kernel. Native loadbalancing will not work until this is fixed."
W0925 06:24:14.859351 1 server_others.go:268] Flag proxy-mode="" unknown, assuming iptables proxy
I0925 06:24:14.861033 1 server_others.go:122] Using iptables Proxier.
I0925 06:24:14.874697 1 server_others.go:157] Tearing down inactive rules.
E0925 06:24:14.923243 1 proxier.go:699] Failed to execute iptables-restore for nat: exit status 1 (iptables-restore: line 7 failed
)
I0925 06:24:14.927951 1 conntrack.go:98] Set sysctl 'net/netfilter/nf_conntrack_max' to 131072
I0925 06:24:14.927996 1 conntrack.go:52] Setting nf_conntrack_max to 131072
I0925 06:24:14.928026 1 conntrack.go:98] Set sysctl 'net/netfilter/nf_conntrack_tcp_timeout_established' to 86400
I0925 06:24:14.928042 1 conntrack.go:98] Set sysctl 'net/netfilter/nf_conntrack_tcp_timeout_close_wait' to 3600
I0925 06:24:14.928594 1 config.go:202] Starting service config controller
I0925 06:24:14.928609 1 controller_utils.go:1041] Waiting for caches to sync for service config controller
I0925 06:24:14.928640 1 config.go:102] Starting endpoints config controller
I0925 06:24:14.928650 1 controller_utils.go:1041] Waiting for caches to sync for endpoints config controller
I0925 06:24:15.028766 1 controller_utils.go:1048] Caches are synced for service config controller
I0925 06:24:15.028930 1 controller_utils.go:1048] Caches are synced for endpoints config controller