Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.42 KB

kuberhealthy.md

File metadata and controls

43 lines (34 loc) · 1.42 KB

Kuberhealthy 安装

依赖条件

开启 Kuberhealthy 组件

  1. 开启 kuberhealthy 并进行参数配置

    # 取消 `enable_kuberhealthy: "no" 的注释, 并设置为 "yes" 可开启 kuberhealthy
    ###############
    # Kuberhealthy Options
    ###############
    # https://github.com/kuberhealthy/kuberhealthy
    enable_kuberhealthy: "yes"
    kuberhealthy_namespace: pixiu-system
    kuberhealthy_version: "100" # 安装版本,可通过helm search repo kuberhealthy/kuberhealthy --versions查看当前支持版本
  2. 执行安装命令(根据实际情况选择)

    # 单节点集群场景
    kubez-ansible apply
    
    # 高可用集群场景
    kubez-ansible -i multinode apply
  3. 部署完验证

    $ kubectl get pods -n pixiu-system | grep kuberhealthy
    NAMESPACE       NAME                                  READY   STATUS    RESTARTS         AGE
    kuberhealthy-5879d576d8-lmx7x                     1/1     Running             0          2m47s
    kuberhealthy-5879d576d8-sm55t                     0/1     Pending             0          2m47s
  4. 访问kuberhealthy

    # 访问svc查看结果
    $ kubectl get svc kuberhealthy -n pixiu-system -o=jsonpath='{.spec.clusterIP}' | xargs -I {} curl http://{}/