如何在Kubernetes群集中使用Flux指定上下文?
kustomize
flux bootstrap github --context=staging --owner=${GITHUB_USER} --repository=${GITHUB_REPO} --branch=main --personal --path=clusters/staging
示例
✗ context "staging" does not exist
输出来源全部 Flux获取所有
NAME REVISION SUSPENDED READY MESSAGE
gitrepository/flux-system main/3fabbc2 False True stored artifact for revision 'main/3fabbc21c473f479389790de8d1daa20d207ebd6'
gitrepository/podinfo master/132f4e7 False True stored artifact for revision 'master/132f4e719209eb10b9485302f8593fc0e680f4fc'
如何创建上下文的资源?
I am following
Kustomize helm example
With original tutorial command
flux bootstrap github --context=staging --owner=${GITHUB_USER} --repository=${GITHUB_REPO} --branch=main --personal --path=clusters/staging
I got
✗ context "staging" does not exist
This is what watch helmrelease shows
Output sources all
flux get sources all
NAME REVISION SUSPENDED READY MESSAGE
gitrepository/flux-system main/3fabbc2 False True stored artifact for revision 'main/3fabbc21c473f479389790de8d1daa20d207ebd6'
gitrepository/podinfo master/132f4e7 False True stored artifact for revision 'master/132f4e719209eb10b9485302f8593fc0e680f4fc'
How to create context?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要设置
context = $ {k8s_cluster_context}
rel =“ nofollow noreferrer”>类型所以我有- context = kind-kind
否则您运行You need to set the
context=${K8S_CLUSTER_CONTEXT}
for example, I am using Kind so I have--context=kind-kind
or you run