Ek8.--easy kubernetes是一款快速安装和高可用性的kubernetes产品,简单易用,下文是对ek8使用说明。
GitHub:[下载]. 阿里云下载:[下载]. 百度云下载地址:[下载]
最新0.2版本支持etcd服务独立部署:去看看
EK8v0.1说明:
Ek8[easy kubernetes]是一款快速安装和高可用性的kubernetes产品,简单易用。
通过一条命令即可完成k8s集群环境安装、配置。该产品具有以下特点:
1) 集群安装包由Kube、keepalived、haproxy、docker和docker-registry组成
2) 支持灵活的安装类型。用户可以选择全部安装或选择性安装
3) 安装程序自动检查配置。包括IP合法性,服务器连通性、帐户可用性和IP可用性
4) 支持覆盖安装和全新安装。在安装期间自动检查历史版本的有效性根据情况继续使用或更新
5) 安装程序自动设置群集服务器环境所需的环境
6) 支持远程集群安装;支持集群服务器并行安装配置;默认并行执行10台服务器
7) 支持ek8安装机和集群分离安装,ek8安装机可以是macos[version:forMAC]或支持bash的linux机器[version:forLinux]
- 安装前先配置 e8k.cfg 文件,设置相关服务器信息
- 请确保ek8安装程序所在的计算机可以通过SSH无密码登机群录服.
- 当前的ek8版本是CentOS,安装机和集群服务器必须是centos7或更高版本
- 如果您需要支持k8s更高版本或支持其他服务器版本,请在GitHub上给作者留言
ek8 命令格式:
format:ek8 command --t=type [--o=option ...]
install command :Install cluster, command parameters include --t and --o :
--t :Installation type, required, only one, refer to the following:
install: New installation. The existing cluster environment will be deleted before installation
initdocker: Reinstall docker only
initkube: Only reinstall and configure kuber
initkeepalived: Reinstall keepalived only
inithaproxy: Reinstall haproxy only
initregistry: Reinstall docker-registry only
--o :Optional, support multiple. Values are referenced below:
excludedocker:Only effective when '-- t = initall', do not install docker
excluderegistry:Only effective when '-- t = initall', do not install docker-registry
nocheckenv:Do not check the validity of cluster parameters before installation
only: the only takes effect when and '- t = initkube'. When initializing the Kube cluster, the required software will not be reinstalled.
delete command :Delete the specified configuration of kubernetes cluster. The command contains --t and --o. refer to the following:
--t :delete type, required, only one, refer to the following::
cleartall: Delete cluster environment, equivalent to reset
cleardocker: delete docker only
clearkube: delete kube environment only
clearkeepalived: delete keepalived only
clearhaproxky: delete haproxy only
clearregistry: delete docker-registry only
--o :Optional, support multiple. Values are referenced below:
excludedocker: Only effective when '--t=clearall', do not delete docker
excluderegistry: Only effective when '--t=clearall', do not delete docker-registry
nocheckenv: Do not check the validity of cluster parameters before deleting
checkenv command:Only check the validity of your configuration and installation parameters, excluding --t and --o
help command :显示帮助。Display command instructions, excluding --t and --o
示例:
- ek8 install --t=initall。安装集群环境所需的所有软件(包括docker、Kube、keepalived、haproxy、keepalived、registry)
- ek8 install --t=initall --o=excludedocker。安装群集环境所需的软件,但不安装docker。
- ek8 install --t=initkube 。 仅在群集服务器上安装Kebu软件并初始化Kube环境
- ek8 install --t=initkube --o=only。仅安装了Kube群集配置,不安装Kube软件
- ek8 delete --t=clearall。删除群集环境中安装的所有软件,[相当于重置环境,请谨慎使用]
- ek8 delete --t=clearall --o=excludedocker--o=excluderegistry。删除集群上的软件并重置,但不删除docker和docker-registry
- ek8 delete --t=clearkube。仅重置Kube群集配置
- ek8 delete --t=clearhaproxy。只删除群集服务器中的haproxy环境
注意:
- 默认情况下,ek8中的所有命令都检查配置参数的有效性。如果要关闭,请在命令行中添加“--o=nocheck”