美文网首页程序员
EK8 V0.2快速安装和高可用性的kubernetes集群

EK8 V0.2快速安装和高可用性的kubernetes集群

作者: 大脸猫100 | 来源:发表于2019-11-22 19:11 被阅读0次

    Ek8.--easy kubernetes是一款快速安装和高可用性的kubernetes产品,简单易用,下文是对ek8使用说明。

    百度下载     github下载

    v0.2版本更新信息:

    - 支持etcd 集群独立部署

    - kubernetes更新为v1.16.3

     EK8说明:

    Ek8[easy kubernetes]是一款快速安装和高可用性的kubernetes产品,简单易用。

    通过一条命令即可完成k8s集群环境安装、配置。该产品具有以下特点

    1) 集群安装包由etcd、Kube、keepalived、haproxy、docker和docker-registry组成

    2) 支持灵活的安装类型。用户可以选择全部安装或选择性安装

    3) 安装程序自动检查配置。包括IP合法性,服务器连通性、帐户可用性和IP可用性

    4) 支持覆盖安装和全新安装。在安装期间自动检查历史版本的有效性根据情况继续使用或更新

    5) 安装程序自动设置群集服务器环境所需的环境。已安装docker,kube版本不对自动更新。

    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

                          initetcd: Reinstall Etcd 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

                           excludeetcd:Only effective when '--t=initall', do not install Etcd

                            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

                         clearetcd: delete Etcd 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

                          excludeetcd: Only effective when '--t=clearall', do not delete Etcd

                          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、Etcd、Kube、keepalived、haproxy、keepalived、registry)

    - ek8 install  --t=initall --o=excludedocker。安装群集环境所需的软件,但不安装docker。

    - ek8 install  --t=initkube 。 仅在群集服务器上安装Kebu软件并初始化Kube环境

    - ek8 install  --t=initetcd。 仅在群集服务器上安装Etcd软件

    - 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环境d

    注意:

    - 默认情况下,ek8中的所有命令都检查配置参数的有效性。如果要关闭,请在命令行中添加“--o=nocheck”

    安装过程:

    相关文章

      网友评论

        本文标题:EK8 V0.2快速安装和高可用性的kubernetes集群

        本文链接:https://www.haomeiwen.com/subject/ptgqwctx.html