- NamespaceNotInjected
NamespaceNotInjected
| Message Name | NamespaceNotInjected |
| Message Code | IST0102 |
| Description | A namespace is not enabled for Istio injection. |
| Level | Warning |
This message occurs when you have a namespace that is missing theannotation to indicate whether thenamespace is auto-injected, for example sidecar.istio.io/inject.
For example, you receive this error:
Warn [IST0102] (Namespace default) The namespace is not enabled for Istioinjection. Run 'kubectl label namespace default istio-injection=enabled' toenable it, or 'kubectl label namespace default istio-injection=disabled' toexplicitly mark it as not needing injection Error: Analyzer found issues.
To resolve this problem, use an annotation to explicitly declare whetheror not you want the namespace to be auto-injected. For example:
$ kubectl label namespace <namespace-name> istio-injection=enabled
It is strongly recommended to explicitly define the desired injection behavior.Forgetting to annotate a namespace is a common cause of errors.
