GithubHelp home page GithubHelp logo

licheng-xu / kubernetes-cluster-debian-vagrant Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

Setting up a K8S Cluster Quickly with Vagrant + VirtualBox

PowerShell 4.94% Shell 95.06%
kubernetes-cluster vagrant virtualbox

kubernetes-cluster-debian-vagrant's Introduction

Setting up a K8S Cluster Quickly with Vagrant + VirtualBox

Objective

Configuration of K8S Cluster Machines

Hostname IP Address CPU Memory Operating System
k8s-master 192.168.100.10 4 4G Debian "bookworm"
k8s-worker1 192.168.100.11 2 2G Debian "bookworm"
k8s-worker2 192.168.100.12 2 2G Debian "bookworm"

Components and Versions of K8S Cluster

Project Component Version
Deployment kubeadm v1.30.0
CLI kubectl v1.30.0
Node Agent kubelet v1.30.0
Container Runtime CRI-O v1.30.0
CNI flannel v0.25.1

Prerequisites

VirtualBox: Virtualization software.

Vagrant: Virtual machine management tool. Install the following plugins:

vagrant plugin install vagrant-vbguest vagrant-share

Notes

  1. This project is not intended for production use.
  2. Due to network restrictions in Mainland China, this project uses USTC open source software mirror and Alibaba Cloud Container Registry to accelerate software package downloads. You may need to remove or replace corresponding repository addresses in other regions.
  3. When executing vagrant ssh on Windows, you may encounter a permission denied issue. Run the fix_ssh_pkey_perm_for_win.ps1 script to fix the permission issue.
  4. This project has been fully tested on Windows. In theory, it should also work fine on other operating systems as the host machine.

使用 Vagrant + VirtualBox 快速搭建 K8S 集群

目标

K8S 集群机器配置

主机名 IP 地址 处理器 内存 操作系统
k8s-master 192.168.100.10 4 4G Debian "bookworm"
k8s-worker1 192.168.100.11 2 2G Debian "bookworm"
k8s-worker2 192.168.100.12 2 2G Debian "bookworm"

K8S 集群组件和版本

项目 组件 版本
部署工具 kubeadm v1.30.0
命令行工具 kubectl v1.30.0
节点代理 kubelet v1.30.0
容器运行时 CRI-O v1.30.0
CNI flannel v0.25.1

依赖环境

VirtualBox:虚拟机软件

Vagrant:虚拟机管理工具,需要安装插件

vagrant plugin install vagrant-vbguest vagrant-share

注意事项

  1. 本项目不应用于生产环境。
  2. 由于**大陆地区的网络原因,项目中使用了中科大开源软件镜像阿里云镜像仓库加速软件包下载,其他地区可能需要移除或替换相应的仓库地址。
  3. 在 Windows 上执行 vagrant ssh 会遇到 permission denied 的问题,执行 fix_ssh_pkey_perm_for_win.ps1 脚本修复权限问题。
  4. 本项目在 Windows 进行了完整测试,其他操作系统的宿主机理论上也可以正常运行。

kubernetes-cluster-debian-vagrant's People

Contributors

licheng-xu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.