在 k8s 集群中安装 metersphere

飞致云旗下的 metersphere ,2.0 发布了

https://github.com/metersphere/metersphere

支持 helm chart 支持安装

https://github.com/metersphere/helm-chart

尝试在腾讯云 k8s 中安装时报错

[root@app2 ~/helm/metersphere]# helm install metersphere metersphere/metersphere
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /root/.kube/config
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Ingress.spec.rules[0].http.paths[0].backend): unknown field "service" in io.k8s.api.networking.v1beta1.IngressBackend

后来通过修改 helm chart 解决,原因未知。

  1. 将 helm chart 拉到本地
helm pull metersphere/metersphere

或者

curl https://github.com/metersphere/helm-chart/releases/download/metersphere-2.0.1/metersphere-2.0.1.tgz -o metersphere-2.0.1.tgz

解压

gunzip metersphere-*.tgz
tar -xf metersphere-*.tar
cd metersphere
  1. 修改变量,进行测试,最终确认禁用 ingress 即可
ingress:
  enabled: false
  host: ms-dev.apps.metersphere.com
  annotations: {}
    ## example for ingress annotions.
    # kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: "true"      
  https:
    enabled: false
    secretName: ""
  1. 通过其它方式,将服务暴露出去,比如 apisix