- ReferencedResourceNotFound
ReferencedResourceNotFound
Message Name | ReferencedResourceNotFound |
Message Code | IST0101 |
Description | A resource being referenced does not exist. |
Level | Error |
This message occurs when an Istio resource references another resource that doesnot exist. This will lead to errors when Istio tries to look up the referencedresource but cannot find it.
For example, you receive this error:
Error [IST0101] (VirtualService httpbin.default) Referenced gateway not found: "httpbin-gateway-bogus"
In this example, the VirtualService
refers to a gateway that does not exist:
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: httpbin-gateway
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http2
protocol: HTTP2
hosts:
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: httpbin
spec:
hosts:
- "*"
gateways:
- httpbin-gateway-bogus # Should have been "httpbin-gateway"
http:
- route:
- destination:
host: httpbin-gateway
To resolve this problem, look for the resource type in the detailed errormessage, correct your Istio configuration and try again.