安装GoCD Helm图表

    您的查询搜索没有结果。

    在 Kubernetes 上使用 GoCD 入门

    第 2 步:安装 GoCD Helm 图表

    Helm是Kubernetes的包管理器。Kubernetes包称为charts。Charts是为Kubernetes策划的应用程序。

    首先使用命令验证您的 Helm 版本helm version,然后按照以下方式安装官方的 GoCD Helm 图表:

    1. 添加 GoCD helm 图表存储库:
    helm repo add gocd https://gocd.github.io/helm-chart
    helm repo update
    
    1. 运行安装命令:
    helm install gocd gocd/gocd --namespace gocd --create-namespace
    

    访问 GoCD 服务器

    安装 GoCD helm 图表后,您应该能够从 Ingress IP 访问 GoCD 服务器。

    可以按照以下指定方法获取 Ingress IP 地址:

    • Minikube

      minikube ip
      
    • 对于其他 Kubernetes 服务(如 GKE 和 EKS):

      ip=$(kubectl get ingress --namespace gocd gocd-server -o jsonpath="{.status.loadBalancer.ingress[0].ip}")
      echo "http://$ip"
      

    注意:GoCD 服务器首次启动可能需要几分钟。您可以使用以下命令检查 GoCD 服务器是否可用:

    kubectl get deployments --namespace gocd
    

    GoCD 服务器启动时会带有一个示例“Hello World”管道,其外观如下: