1

尝试在 vanilla Kubernetes 集群上成功安装 Jenkins X 3。使用以下命令在 AWS EKS vanilla 集群中安装 jenkins-x 3 运算符:

jx admin operator --username myuser --token PAT -u https://gitlab.mydomain.com/jenkins-x-admin

输出将一些成功的查询返回到我的 Gitlab 存储库,然后失败并显示错误输出:“'Error: failed to download "jx3/jx-git-operator"'"

完整的控制台输出:

git clone URL is https://gitlab.gps-garage-pak.com/admins/jenkins-x-admin
now verifying we have a valid git username and token so that we can clone the git repository inside kubernetes...
git username is adgantt for URL https://gitlab.gps-garage-pak.com/admins/jenkins-x-admin and we have a valid password
running command:

/Users/me/.jx3/plugins/bin/helm-3.6.2 upgrade --install \
    --set url=https://gitlab.mydomain.com/jenkins-x-admin \
    --set username=myuser \
    --set password=**** --namespace jx-git-operator --create-namespace jxgo jx3/jx-git-operator

error: failed to run command /Users/me/.jx3/plugins/bin/helm-3.6.2 upgrade --install \
    --set url=https://gitlab.mydomain.com/jenkins-x-admin \
    --set username=myuser \
    --set password=**** --namespace jx-git-operator --create-namespace jxgo jx3/jx-git-operator: failed to run '/Users/me/.jx3/plugins/bin/helm-3.6.2 upgrade --install --set url=https://gitlab.mydomain.com/jenkins-x-admin --set username=myuser --set password=***** jx-git-operator --create-namespace jxgo jx3/jx-git-operator' command in directory '', output: 'Error: failed to download "jx3/jx-git-operator" (hint: running `helm repo update` may help)'
4

1 回答 1

0

您必须首先将 repo 添加到 helm list

helm repo add jx3 https://storage.googleapis.com/jenkinsxio/charts

helm repo update

在运行时运行 helm 命令

helm upgrade --install \
    --set url=$GIT_URL \
    --set username=$GIT_USER \
    --set password=$GIT_TOKEN \
     jx-git-operator --create-namespace jxgo jx3/jx-git-operator

卧底jx admin operator 调用相同的 helm 命令和选项。

选项 2

在本地克隆 repo

git clone https://github.com/jenkins-x/jx-git-operator

进入文件夹

cd jx-git-operator/charts/jx-git-operator

现在你可以直接在这里运行 helm

helm upgrade --install \
        --set url=$GIT_URL \
        --set username=$GIT_USER \
        --set password=$GIT_TOKEN \
         jx-git-operator --create-namespace jxgo ./ #this mean you are in existing directory
于 2021-09-23T14:54:18.183 回答