kubernetes - Jenkins-X 3 operator install 无法下载“jx3/jx-git-operator”
问题描述
尝试在 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)'
解决方案
您必须首先将 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
推荐阅读
- macos - 在 MacOS 中更改硬盘驱动器的图标时 - icns 文件实际存储在哪里?
- powershell - Powershell Get-Acl 用于没有访问权限的文件夹
- r - 如何更改 scale() 阻止的列名
- javascript - React/Redux - 何时使用状态和道具/何时更改道具
- aem - AEM Query Builder:需要在所有页面上的所有属性上搜索特定文本
- python - Git Pycharm 仅将本地 master 分支更改为与 origin master 分支完全相同
- r - 使用 R 中的“个性化”顺序对向量进行排序
- android - TextView 用较长的文本和第二行忽略了它的边界。如何解决?
- node.js - 如何将图像从本机反应上传到nodejs?
- xcode - xcode 11 - lldb 服务器不断崩溃