Code Monkey home page Code Monkey logo

k3s-installer's Introduction

K3s 安装程序

这是一个用于安装和管理 K3s Kubernetes 集群的命令行工具。它提供了多种安装选项,包括自动检测安装源、自定义安装目录、禁用 Traefik、跳过 SELinux 等。此外,它还包含了一些实用工具,如测试网络连通性、查看主机信息等。

功能特性

  • 自动检测安装源,优先使用国内镜像加快下载速度
  • 自定义 K3s 数据目录和二进制文件目录
  • 可选择禁用 Traefik 或跳过 SELinux
  • 支持安装最新版本的 K3s
  • 提供 K3s 子节点安装命令
  • 测试公网连通性和查看公网 IP 信息
  • 查看 CPU、内存、磁盘和主机信息
  • 测试主机带宽和磁盘读写性能
  • 安装 kubectl 自动补全和 curl 工具
  • 交互式安装 K3s

使用方法

  1. 以 root 用户身份运行程序。
  2. 在主菜单中选择相应的选项进行操作。

菜单结构

主菜单

  • 安装 K3s
  • 部署应用程序 (TODO)
  • 查看服务状态 (TODO)
  • 查看应用登录信息 (TODO)
  • 自定义安装 K3s 选项
  • 工具箱
  • 交互式安装 K3s (TODO)
  • 退出程序

自定义安装 K3s 子菜单

  • 自定义 K3s 安装目录
  • 自定义 K3s 安装目录并禁用 Traefik
  • 自定义 K3s 安装目录并跳过 SELinux
  • 安装最新版 K3s
  • 使用官方源安装 K3s
  • 程序自动选择安装源进行 K3s 安装
  • 查看 K3s 子节点安装命令
  • 返回上一级菜单

工具箱子菜单

  • 测试公网连通性
  • 查看公网 IP 信息
  • 查看 CPU 信息
  • 查看内存信息
  • 查看磁盘信息
  • 查看主机信息
  • 测试主机带宽
  • 测试磁盘读写
  • 安装 kubectl 自动补全
  • 安装 curl
  • 返回上一级菜单

注意事项

  • 请确保您拥有 root 权限运行此程序。
  • 在安装 K3s 之前,程序会自动关闭交换空间和防火墙。
  • 某些功能可能需要访问互联网。

贡献

如果您有任何建议或发现任何问题,欢迎提交 issue 或 pull request。

k3s-installer's People

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.