kubernetes (k8s) 二進制高可用安裝

kubernetes (k8s) 二進制高可用安裝

https://github.com/cby-chen/Kubernetes 開源不易,幫忙點個star,謝謝了??

GitHub訪問不通暢可以訪問國內GitEE https://gitee.com/cby-inc/Kubernetes

常見異常

  1. 安裝會出現kubelet異常,無法識別 --node-labels 字段問題,原因如下。

--node-labels=node.kubernetes.io/node='' 替換為 --node-labels=node.kubernetes.io/node='' 刪除即可。

  1. 注意hosts配置文件中主機名和IP地址對應

  2. 在文檔7.2,卻記別忘記執行kubectl create -f bootstrap.secret.yaml命令

介紹

kubernetes(k8s)二進制高可用安裝部署,支持IPv4+IPv6雙棧。

我使用IPV6的目的是在公網進行訪問,所以我配置了IPV6靜態地址。

若您沒有IPV6環境,或者不想使用IPv6,不對主機進行配置IPv6地址即可。

不配置IPV6,不影響后續,不過集群依舊是支持IPv6的。為后期留有擴展可能性。

若不要IPv6 ,不給網卡配置IPv6即可,不要對IPv6相關配置刪除或操作,否則會出問題。

強烈建議在Github上查看文檔。Github出問題會更新文檔,并且后續盡可能第一時間更新新版本文檔。

當前文檔版本

1.21.13 和 1.22.10 和 1.23.3 和 1.23.4 和 1.23.5 和 1.23.6 和 1.23.7 和 1.24.0 和 1.24.1 和 1.24.2 和 1.24.3 ...陸續更新。

訪問地址

https://github.com/cby-chen/Kubernetes/

手動項目地址:https://github.com/cby-chen/Kubernetes

腳本項目地址:https://github.com/cby-chen/Binary_installation_of_Kubernetes

文檔

二進制安裝每個版本文檔

1.23版本

v1.23.3-CentOS-binary-install

v1.23.4-CentOS-binary-install

v1.23.5-CentOS-binary-install

v1.23.6-CentOS-binary-install

1.24版本

v1.24.0-CentOS-binary-install-IPv6-IPv4.md

v1.24.1-CentOS-binary-install-IPv6-IPv4.md

v1.24.2-CentOS-binary-install-IPv6-IPv4.md

v1.24.3-CentOS-binary-install-IPv6-IPv4.md

三主倆從版本

v1.21.13-CentOS-binary-install-IPv6-IPv4-Three-Masters-Two-Slaves.md

v1.22.10-CentOS-binary-install-IPv6-IPv4-Three-Masters-Two-Slaves.md

v1.23.7-CentOS-binary-install-IPv6-IPv4-Three-Masters-Two-Slaves.md

v1.24.0-CentOS-binary-install-IPv6-IPv4-Three-Masters-Two-Slaves.md

v1.24.1-CentOS-binary-install-IPv6-IPv4-Three-Masters-Two-Slaves.md

v1.24.1-Ubuntu-binary-install-IPv6-IPv4-Three-Masters-Two-Slaves.md

修復kube-proxy證書權限過大問題

kube-proxy_permissions.md

使用kubeadm初始化IPV4/IPV6集群

kubeadm-install-IPV6-IPV4.md

IPv4集群啟用IPv6功能,關閉IPv6則反之

Enable-implement-IPv4-IPv6.md

安裝包

(下載更快)我自己的網盤:https://pan.oiox.cn/s/PetV

(下載更快)123網盤:https://www.123pan.com/s/Z8ArVv-PG60d

每個初始版本會打上releases,安裝包在releases頁面

https://github.com/cby-chen/Kubernetes/releases

注意:1.23.3 版本當時沒想到會后續更新,所以當時命名不太規范。

wget https://ghproxy.com/https://github.com/cby-chen/Kubernetes/releases/download/cby/Kubernetes.tar

wget https://ghproxy.com/https://github.com/cby-chen/Kubernetes/releases/download/v1.23.4/kubernetes-v1.23.4.tar

wget https://ghproxy.com/https://github.com/cby-chen/Kubernetes/releases/download/v1.23.5/kubernetes-v1.24.5.tar

wget https://ghproxy.com/https://github.com/cby-chen/Kubernetes/releases/download/v1.23.6/kubernetes-v1.23.6.tar

wget https://ghproxy.com/https://github.com/cby-chen/Kubernetes/releases/download/v1.23.7/kubernetes-v1.23.7.tar

wget https://ghproxy.com/https://github.com/cby-chen/Kubernetes/releases/download/v1.24.0/kubernetes-v1.24.0.tar

wget https://ghproxy.com/https://github.com/cby-chen/Kubernetes/releases/download/v1.24.1/kubernetes-v1.24.1.tar

wget https://ghproxy.com/https://github.com/cby-chen/Kubernetes/releases/download/v1.24.2/kubernetes-v1.24.2.tar

wget https://ghproxy.com/https://github.com/cby-chen/Kubernetes/releases/download/v1.24.3/kubernetes-v1.24.3.tar

wget https://ghproxy.com/https://github.com/cby-chen/Kubernetes/releases/download/v1.22.10/kubernetes-v1.22.10.tar

wget https://ghproxy.com/https://github.com/cby-chen/Kubernetes/releases/download/v1.21.13/kubernetes-v1.21.13.tar

舊版本地址

建議查看main版本中的文檔。https://github.com/cby-chen/Kubernetes/

若找對應版本文檔中的安裝包,可以在上方下載安裝包,可以在在下方地址中查找。

https://github.com/cby-chen/Kubernetes/tree/cby

https://github.com/cby-chen/Kubernetes/tree/v1.23.4

https://github.com/cby-chen/Kubernetes/tree/v1.23.5

https://github.com/cby-chen/Kubernetes/tree/v1.23.6

https://github.com/cby-chen/Kubernetes/tree/v1.23.7

https://github.com/cby-chen/Kubernetes/tree/v1.24.0

https://github.com/cby-chen/Kubernetes/tree/v1.24.1

https://github.com/cby-chen/Kubernetes/tree/v1.24.2

https://github.com/cby-chen/Kubernetes/tree/v1.24.3

https://github.com/cby-chen/Kubernetes/tree/v1.22.10

https://github.com/cby-chen/Kubernetes/tree/v1.21.13

其他

  • 建議在 Kubernetes 查看文檔,后續會陸續更新文檔
  • 小陳網站:
  1. https://blog.oiox.cn/
  2. https://www.oiox.cn/
  3. https://www.chenby.cn/
  4. https://cby-chen.github.io/

技術交流

作者:

[圖片上傳失敗...(image-82368-1657794415835)]

加群:

[圖片上傳失敗...(image-12a367-1657794415836)]

其他文檔請查看如下,歡迎關注微信公眾號:

https://www.oiox.cn/

https://www.oiox.cn/index.php/start-page.html

CSDN、GitHub、知乎、開源中國、思否、掘金、簡書、華為云、阿里云、騰訊云、嗶哩嗶哩、今日頭條、新浪微博、個人博客

全網可搜《小陳運維》

文章主要發布于微信公眾號

?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容