Skip to content

The repository is designed to quickly deploy a whole new Kubernetes cluster on a Linux distribution with one click

Notifications You must be signed in to change notification settings

Mandala-lab/Kubernetes

Repository files navigation

Kubernetes Deploy

更新日志

  1. 更新: v2.0.0-rc的ctr默认生成的配置文件中的sandbox_image字段已改成sandbox

阶段

目前处在PRE初始阶段, 正在快速迭代, 仅在本机MAC环境的aarch64的Ubuntu2.04的虚拟机上测试运行

介绍

该仓库旨在快速在Ubuntu一键部署创建一个全新的一个单节点的控制平面

与本仓库同步的文章: https://juejin.cn/post/7292041370893778983

本项目支持的Kubernetes版本

  1. kubernetes 1.25.X
  2. kubernetes 1.26.X
  3. kubernetes 1.27.X
  4. kubernetes 1.28.X
  5. kubernetes 1.29.X
  6. kubernetes 1.29.X
  7. kubernetes 1.30.X

本项目支持的CRI:

  1. Containerd(Stable)
  2. CRI-O(RC)

本项目支持的CNI:

  1. Kube-proxy(Stable)
  2. Cilium(Beta)

说明

目录:

base

基础环境安装, 所有运行Kubernetes的机器节点都需要进行的配置

control-plane

控制平面节点需要配置

worker-node

工作节点需要配置

架构

graph LR
    CRI-->CNI
    subgraph CRI
        containerd
        cri-o
    end
    subgraph CNI
        kube-proxy
        cilium
    end
Loading

注意事项

  1. 你需要查看shell的内容, 里面大多包含注释和注意事项
  2. 该仓库的脚本不适合用于生产环境的部署, 尽管这些脚本经过本人验证
  3. 该项目未对shell脚本进行更多的健壮性校验
  1. 二进制Containerd的安装方式不适用与基于 musl 的发行版,例如 Alpine Linux,此类发行版的用户可能必须从源代码或第三方软件包安装 containerd 参阅Installing containerd
  2. containerd 核心代码和快照程序使用的特定功能需要 Linux 上的最低内核版本。根据发行版内核版本控制的明确要求,Linux 的合理起点是最低 4.x 内核版本
  3. 默认情况下使用的覆盖文件系统快照器使用 4.x 内核系列中最终确定的功能。如果您选择使用 btrfs,内核版本可能会有更大的灵活性(建议的最低版本为 3.18),但需要在 Linux 发行版上安装 btrfs 内核模块和 btrfs 工具。

使用

在目标服务器安装:

git clone --depth 1 https://github.com/Mandala-lab/Kubernetes.git

局限性

  1. 目前仅在Ubuntu22.04上进行开发和测试
  2. 需要在拥有管理员执行的权限才可以运行shell scripts
  3. 本集群是在管理员权限的情况下部署, 不适用于对安全性有苛刻要求的环境

资料

  1. https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
  2. https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#installing-kubeadm-kubelet-and-kubectl

About

The repository is designed to quickly deploy a whole new Kubernetes cluster on a Linux distribution with one click

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published