启用有关磁通和azure aks / gitops的跨名空间参考

发布于 2025-02-14 01:24:31 字数 1074 浏览 1 评论 0 原文

尝试将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

读取我的群集上提到的网络策略,但看上去没有任何相关的内容。也许只是我!

有人提示吗?谢谢

Trying to add a nginx ingress controller (amongst other things) to my Azure AKS cluster and running into the following issue when trying to deploy via the MS flux v2 gitops setup. Think it's related to the flux/aks side of things but not too sure on where to start to enable the cross-namespace setting.

Anyone any ideas?

[
    {
        "lastTransitionTime": "2022-07-08T14:43:57+00:00",
        "message": "can't access  cross-namespace references have been blocked",
        "reason": "AccessDenied",
        "status": "False",
        "type": "Ready"
    }
]

trying to deploy using this helm manifest setup:

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

Read network policies being mentioned on my cluster but not seeing anything that looks relevant. Maybe just me!!

Anyone any tips? Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

浴红衣 2025-02-21 01:24:31

从错误消息中,看起来您可以使用以下标志引导通量安装: -no-cross-namespace-refs = true

请注意,在多租户群集上,平台管理员可以使用-no-cross-namespace-refs = true标志禁用跨名称的参考。设置此标志时,Helmrelease只能参考与Helmrelease对象相同名称空间中的来源。

参考:

From the error message, it looks like you bootstrapped your Flux installation with the following flag: --no-cross-namespace-refs=true.

Note that on multi-tenant clusters, platform admins can disable cross-namespace references with the --no-cross-namespace-refs=true flag. When this flag is set, the helmrelease can only refer to sources in the same namespace as the helmrelease object.

Reference: https://fluxcd.io/docs/components/helm/helmreleases/#helm-chart-template

っ左 2025-02-21 01:24:31

只需检查以下问题并禁用解决此问题的多种效力即可。

Just check below issue and disabling multitenancy which resolve this issue.
https://github.com/fluxcd/flux2/issues/3182

十年不长 2025-02-21 01:24:31

这是运行将其关闭的命令:

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文