{"repo":"kubeop/k8s","free":true,"listed":false,"github":"https://github.com/kubeop/k8s","clone":"git clone https://github.com/kubeop/k8s.git","description":"Deploy a Production Ready Kubernetes High Availability Cluster with Binary","language":"Jinja","stars":241,"topics":["kubernetes","k8s","etcd","ansible","docker","inventory","pod","container","containerd"],"license":"GPL-3.0","category":"deployment-docker-iac","readme_excerpt":"支持发行版 - AlmaLinux 8，9，10 - RockyLinux 8，9，10 - Ubuntu Server 20.04，22.04，24.04，26.04 - Debian 12，13 - TencentOS Server 3 - Kylin Server v11 支持平台 - amd64 - arm64 支持kubernetes版本 - 1.26.x 1.36.x 支持组件 - Core - kubernetes - etcd - containerd - Network Plugin - cni-plugins - calico - cilium - flanneld - kube-router - Addons - helm - Application - coredns - node-local-dns - metrics-server - nvidia device plugin 开始配置 本脚本向前兼容，拉取最新代码，根据需求调整 group vars/all.yml 和 inventory 中相关参数即可。 如需更新本地代码至最新，建议备份 group vars/all.yml 和 inventory 并更新代码至最新，然后将原 group vars/all.yml 和 inventory 中需要的配置添加到最新的 group vars/all.yml 和 inventory 文件即可。 对于Kubernetes =1.32.0版本，推荐使用4.19+以上内核，也支持5.x或6.x版本内核。对于cgroups v2支持，最低内核版本为4.15，推荐版本为5.8+。 从Kubernetes 1.35.0版本开始，移除 cgroup v1 支持，全面买入 cgroup v2 版本。 kube-proxy 的 ipvs 模式标记废弃，推荐迁移至 nftables 模式。1.35.x是支持 containerd v1.x 系列的最后一个版本，在升级到下一个Kubernetes版本之前，必须切换到 containerd 2.0 或更高版本。 配置Ansible控制端 建议根据下表安装合适的Python版本和Ansible版本 组件 版本 ----------------------- -------- Control Node Python =3.9 Target Python =3.6 Ansible =2.14.0 安装Ansible - 不同Python版本Anisble支持矩阵详情，请参考：https://docs.ansible.com/ansible-core/devel/reference appendices/release and maintenance.html#ansible-core-support-matrix 开启双栈网络 在 group vars/all.yml 配置中将ipv4 stack和ipv6 stack设置为 true 表明开启IPv4和IPv6双栈网络，将ipv4 stack设置为 true 表明开启IPv4单栈网络，将ipv6 stack设置为 true 表明开启IPv6单栈网络。使用IPv6网络之前请务必确认集群节点所在网络已开启支持IPv6。 ⚠️：在云平台使用Calico IPIP时，请勿开启双栈网络，Calico IPv6网络不支持IPIP，参考。 修改 inventory 请按照inventory模板格式修改对应资源 - 当haproxy和kube-apiserver部署在同","default_branch":null,"files":null,"tree":[],"storefront":"/r/kubeop","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kubeop/k8s/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}