NamespaceMultipleInjectionLabels

当命名空间使用 **新旧** 样式标签指定 Istio 边车自动注入时,会出现此消息。

示例

您将收到此消息

Warning [IST0123] (Namespace busted) The namespace has both new and legacy injection labels. Run 'kubectl label namespace busted istio.io/rev-' or 'kubectl label namespace busted istio-injection-'

当您的集群具有以下命名空间时

apiVersion: v1
kind: Namespace
metadata:
  name: busted
  labels:
    istio-injection: enabled
    istio.io/rev: canary

在此示例中,命名空间 busted 使用旧样式和新样式注入标签。

如何解决

  • 删除 istio-injection 标签
  • 删除 istio.io/rev 标签