尝试在普通Kubernetes集群上成功安装Jenkins X3。使用以下命令在AWS EKS vanilla集群中安装jenkins-x 3 operator:
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)'发布于 2021-09-23 14:54:18
您必须先将存储库添加到helm列表中
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-operatorUndercover jx admin operator调用相同的helm命令和选项。
选项2
本地克隆存储库
git clone https://github.com/jenkins-x/jx-git-operator进入文件夹内部
cd jx-git-operator/charts/jx-git-operator现在,您可以在此处直接运行舵机
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 directoryhttps://stackoverflow.com/questions/69301127
复制相似问题