InvalidAnnotation

Message NameInvalidAnnotation
Message CodeIST0125
DescriptionAn Istio annotation that is not valid
LevelWarning

This message occurs when an annotation mentions istio.io but the annotation

  • isn’t an annotation known to this version of Istio
  • is known, but has a disallowed value, such as a string where a number is needed
  • is applied to the wrong kind of resource, such as a pod-specific resource applied to a service

Consult Istio’s list of resource annotations.

Example

You will receive this message:

  1. Warning [IST0108] (Service httpbin.default) Unknown annotation: networking.istio.io/exportTwo

when your cluster has following namespace:

  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: httpbin
  5. labels:
  6. app: httpbin
  7. annotations:
  8. # no such Istio annotation
  9. networking.istio.io/exportTwo: bar
  10. spec:
  11. ports:
  12. - name: http
  13. port: 8000
  14. targetPort: 80
  15. selector:
  16. app: httpbin

In this example, the service httpbin is using networking.istio.io/exportTwo instead of networking.istio.io/exportTo.

How to resolve

  • Delete or rename unknown annotations
  • Change annotations with disallowed values