diff --git a/content/zh/docs/reference/config/analysis/ist0102/index.md b/content/zh/docs/reference/config/analysis/ist0102/index.md index 165f5f6eb7..e3d3ffae39 100644 --- a/content/zh/docs/reference/config/analysis/ist0102/index.md +++ b/content/zh/docs/reference/config/analysis/ist0102/index.md @@ -3,11 +3,9 @@ title: NamespaceNotInjected layout: analysis-message --- -This message occurs when you have a namespace that is missing the -[annotation](/zh/docs/reference/config/annotations/) to indicate whether the -namespace is auto-injected, for example `sidecar.istio.io/inject`. +当命名空间缺少[注解](/zh/docs/reference/config/annotations/)来标记命名空间是否自动注入时会出现此错误,例如 `sidecar.istio.io/inject` 。 -For example, you receive this error: +例如,您可能看到以下错误: {{< text plain >}} Warn [IST0102] (Namespace default) The namespace is not enabled for Istio @@ -16,12 +14,10 @@ enable it, or 'kubectl label namespace default istio-injection=disabled' to explicitly mark it as not needing injection Error: Analyzer found issues. {{< /text >}} -To resolve this problem, use an annotation to explicitly declare whether -or not you want the namespace to be auto-injected. For example: +要解决此问题,请您使用注解明确声明您是否希望命名空间被自动注入。例如: {{< text bash >}} $ kubectl label namespace istio-injection=enabled {{< /text >}} -It is strongly recommended to explicitly define the desired injection behavior. -Forgetting to annotate a namespace is a common cause of errors. +强烈建议您明确定义需要的注入行为。忘记对命名空间标记注解是导致错误的常见原因。