启用有关磁通和azure aks / gitops的跨名空间参考
尝试将NGINX Ingress Controller(除其他外)添加到我的Azure AKS群集中,并在尝试通过MS Flux V2 Gitops设置部署时遇到以下问题。认为它与事物的通量/AKS侧相关,但不太确定从哪里开始启用跨名空间设置。
有人有什么想法吗?
[
{
"lastTransitionTime": "2022-07-08T14:43:57+00:00",
"message": "can't access cross-namespace references have been blocked",
"reason": "AccessDenied",
"status": "False",
"type": "Ready"
}
]
尝试使用此舵机清单设置部署:
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: ingress-nginx
namespace: flux-system
spec:
interval: 30m
url: https://kubernetes.github.io/ingress-nginx
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: ingress-nginx
namespace: ingress-system
spec:
interval: 5m
chart:
spec:
chart: ingress-nginx
version: '4.0.13'
sourceRef:
kind: HelmRepository
name: ingress-nginx
namespace: flux-system
interval: 1m
读取我的群集上提到的网络策略,但看上去没有任何相关的内容。也许只是我!
有人提示吗?谢谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
从错误消息中,看起来您可以使用以下标志引导通量安装:
-no-cross-namespace-refs = true
。参考:
From the error message, it looks like you bootstrapped your Flux installation with the following flag:
--no-cross-namespace-refs=true
.Reference: https://fluxcd.io/docs/components/helm/helmreleases/#helm-chart-template
只需检查以下问题并禁用解决此问题的多种效力即可。
Just check below issue and disabling multitenancy which resolve this issue.
https://github.com/fluxcd/flux2/issues/3182
这是运行将其关闭的命令:
az k8s-扩展更新-Configuration -STTESTS MULTITENANCY.ENFORCE = false -C {clusTername} -g {resourceGroup} -n flux -t manderedClusters
Here's the command to run to turn it off:
az k8s-extension update --configuration-settings multiTenancy.enforce=false -c {clusterName} -g {resourceGroup} -n flux -t managedClusters