Kubepi CLI 用于在 Raspberry PI 上更轻松地设置 k1s。
项目描述
KubePI CLI 用于在 Raspberry PI 上更轻松地设置 k1s。参见GitHub 上的 k1s。
用法
KubePI 是一个自定义工具,用于简化 K3D 设置、依赖项、子模块等的 k1s 管理。它至少需要 Python 3.7。请通过运行以下命令检查您是否拥有 Python 3.7 或更高版本:
# Raspberry Pi OS (Raspbian) users
python3 --version
# Arch users
python --version
如果您运行的不是 Python 3.7 或更高版本,请升级您的 Python 版本。
按照以下步骤使用 `pip` 安装 kubepi:
# Raspberry Pi OS (Raspbian) still shipping python2 by default
pip3 install kubepi
# Arch shipping python3 by default
pip install kubepi
现在你的路径中应该有 kubepi 命令,你可以运行 kubepi 来显示帮助:
pi@k1s:~$ kubepi
Usage: kubepi [OPTIONS] COMMAND [ARGS]...
KubePI CLI for easier k1s setup on Raspberry PIs.
Options:
--kube-context TEXT The kubernetes context to use
-v, --verbosity LVL Either CRITICAL, ERROR, WARNING, INFO or DEBUG
--help Show this message and exit.
Commands:
apps App commands
k3d Manage k3d clusters
platform Platform commands
preflight Preflight checks
setup Setup infrastructure services
要查看每个命令的选项,只需运行:
kubepi <COMMAND> --help
例如:
pi@k1s:~$ kubepi k3d --help
Usage: kubepi k3d [OPTIONS] COMMAND [ARGS]...
Manage k3d clusters. The name of the cluster is taken from the option
--kube-context which defaults to 'k1s'
Options:
--help Show this message and exit.
Commands:
create Create cluster
delete Delete cluster
start Start cluster
status Cluster status
stop Stop cluster
贡献
请阅读 CONTRIBUTING 以了解我们的行为准则以及向我们提交拉取请求的流程的详细信息。
版本控制
执照
这个项目是在 MIT 许可下获得许可的 - 有关详细信息,请参阅LICENSE文件。