我在數位海洋中設定了一個新伺服器,ubuntu 16.04。從 ubuntu 儲存庫安裝了 docker,並根據本指南設定 kuberenetes:
https://kubernetes.io/docs/setup/independent/install-kubeadm/
我已經嘗試了好幾次,kubeadm init
在再次嘗試之前先跟隨kubeadm reset
。
輸出日誌建議檢查它kubelet
是否正在運行,並且它確實運行:
● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: active (running) since Wed 2018-09-05 13:34:35 UTC; 24min ago
Docs: https://kubernetes.io/docs/home/
Main PID: 2615 (kubelet)
Tasks: 15
Memory: 44.8M
CPU: 3min 18.521s
CGroup: /system.slice/kubelet.service
└─2615 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --cgroup-driver=cgroupfs --cni-bin
Sep 05 13:59:15 kubernetes-master kubelet[2615]: E0905 13:59:15.538370 2615 kubelet.go:2110] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin
Sep 05 13:59:17 kubernetes-master kubelet[2615]: E0905 13:59:17.518350 2615 kubelet_node_status.go:103] Unable to register node "kubernetes-master" with API server: Post https://48.88.103.0:6443/api/v1/nodes
Sep 05 13:59:18 kubernetes-master kubelet[2615]: E0905 13:59:18.552653 2615 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:455: Failed to list *v1.Service: Get https://48.88.103.0:6443/api/v1/ser
Sep 05 13:59:19 kubernetes-master kubelet[2615]: E0905 13:59:19.659689 2615 reflector.go:205] k8s.io/kubernetes/pkg/kubelet/kubelet.go:464: Failed to list *v1.Node: Get https://48.88.103.0:6443/api/v1/nodes?
Sep 05 13:59:20 kubernetes-master kubelet[2615]: W0905 13:59:20.556075 2615 cni.go:172] Unable to update cni config: No networks found in /etc/cni/net.d
Sep 05 13:59:20 kubernetes-master kubelet[2615]: E0905 13:59:20.576691 2615 kubelet.go:2110] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin
Sep 05 13:59:21 kubernetes-master kubelet[2615]: E0905 13:59:21.952965 2615 certificate_manager.go:299] Failed while requesting a signed certificate from the master: cannot create certificate signing request:
Sep 05 13:59:23 kubernetes-master kubelet[2615]: E0905 13:59:23.817566 2615 eviction_manager.go:243] eviction manager: failed to get get summary stats: failed to get node info: node "kubernetes-master" not fo
Sep 05 13:59:24 kubernetes-master kubelet[2615]: I0905 13:59:24.524068 2615 kubelet_node_status.go:269] Setting node annotation to enable volume controller attach/detach
Sep 05 13:59:24 kubernetes-master kubelet[2615]: I0905 13:59:24.594325 2615 kubelet_node_status.go:79] Attempting to register node kubernetes-master
它還建議檢查網路連接以及圖像是否能夠下載。我透過在網路外部執行 ping 操作並檢查是否kubeadm config images pull
執行成功進行了驗證。
我確實看到TLS handshake timeout
當journalctl 嘗試存取伺服器的IP 位址時,我在日誌中收到了很多資訊。
我在網路上看到了很多關於這個問題的討論,但到目前為止,現有的解決方案都沒有幫助我。
我還可以測試/檢查/嘗試什麼?