網站首頁 編程語言 正文
一、etcd集群部署遇到的問題
1.etcd.serverice啟動報錯,顯示–logger=zap有問題
解決:修改配置文件,去掉該參數,重新啟動服務
2.publish error: etcdserver: request timed out,由于etcd集群沒有同時啟動導致
解決:在部署了etcd的節點上,同時啟動etcd服務systemctl start etcd
3.error #1: dial tcp 127.0.0.1:2379: connect: connection refused,由于參數ETCD_LISTEN_CLIENT_URLS沒有將172.0.0.1:2379包含在內
解決:ETCD_LISTEN_CLIENT_URLS添加https://172.0.0.1:2379或者直接改成0.0.0.0:2379
4.error #1: dial tcp 127.0.0.1:4001: connect: connection refused,由于低版本的peer的監聽端口是否4001
解決:ETCD_LISTEN_CLIENT_URLS和ETCD_ADVERTISE_CLIENT_URLS參數上配置4001的監聽端口
5.error #1: net/http: HTTP/1.x transport connection broken: malformed HTTP response “\x15\x03\x01\x00\x02\x02”,由于配置信息監聽地址寫成了http://
解決:將監聽地址改成https://
二、kube-apiserver.service遇到的錯誤
1.error: unable to find suitable network address.error=‘no default routes found in “/proc/net/route” or “/proc/net/ipv6_route”’. Tr… to fix this,由于沒有配置網關路由問題
解決:route add default gw 172.16.0.1
2.error: --etcd-servers must be specified
解決:sudo journalctl -xe -u kube-apiserver | more通過查看更多錯誤信息,除了error: --etcd-servers must be specified錯誤提示外無其他錯誤信息,通過手動執行system unit檢查是否配置有誤,手動能正常啟動,說明配置文件可能存在字符錯誤,重新寫入配置后,啟動正常
3.watch chan error: etcdserver: mvcc: required revision has been compacted,由于etcd的版本問題導致的,不影響功能的使用
解決:可以安裝對應版本的etcd
三、kubelet和kube-proxy部署遇到的錯誤
1.failed complete: v1alpha1.KubeProxyConfiguration.ClientConnection: readObjectStart: expect { or n, but found “, error found in #10 byte of …|nection”:“kubeconfig|…, bigger context …|pha1”,“bindAddress”:“0.0.0.0”,“clientConnection”:"kubeconfig:/data/kubernetes/cfg/kube-proxy.kubecon|…
解決:檢查yml文件格式是否正確,yml配置文件遇到":“或者”-"后面必須留一個空格!
2.Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized,由于沒有插件cni
解決:修改kubelet.conf配置文件去掉相關配置參數–network-plugin=cni,重啟服務即可或者下在安裝cni插件
3.在錯誤日志中發現:E0927 15:38:12.475997 16586 kubelet.go:1308] Image garbage collection failed once. Stats initialization may not have completed yet: failed to get imageFs info: unable to find data in memory cache
解決:yum -y upgrade systemd
4.failed to run Kubelet: Running with swap on is not supported, please disable swap! or set --fail-swap-on flag to f…
解決:node節點上沒有關閉交換分區,臨時關閉的swapoff -a,最好就是永久關閉
原文鏈接:https://blog.csdn.net/weixin_44375561/article/details/120512543
相關推薦
- 2022-08-13 Flutter實現不同縮放動畫效果詳解_Android
- 2021-12-12 C/C++?Qt?MdiArea?多窗體組件應用教程_C 語言
- 2022-12-02 AVFoundation?AVCaptureSession媒體捕捉_IOS
- 2022-05-27 利用Matlab繪制好看的旋轉九邊形_C 語言
- 2022-08-07 C++文件的數據寫入和文件的數據讀取的方法實現_C 語言
- 2023-07-26 vscode中配置代碼片段
- 2022-12-21 Docker教程之dockerfile構建centos鏡像_docker
- 2022-07-22 jQuery實現點擊顯示密碼框密碼
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支