ReferencedResourceNotFound

このメッセージは、Istioリソースが存在しない別のリソースを参照している場合に発生します。これにより、Istioが参照されたリソースを検索しようとしたが見つからない場合にエラーが発生します。

たとえば、次のエラーが表示されます

Error [IST0101] (VirtualService httpbin.default) Referenced gateway not found: "httpbin-gateway-bogus"

この例では、VirtualServiceは存在しないゲートウェイを参照しています

apiVersion: networking.istio.io/v1
kind: Gateway
metadata:
  name: httpbin-gateway
spec:
  selector:
    istio: ingressgateway
  servers:
  - port:
      number: 80
      name: http2
      protocol: HTTP2
    hosts:
    - "*"
---
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
  name: httpbin
spec:
  hosts:
  - "*"
  gateways:
  - httpbin-gateway-bogus #  Should have been "httpbin-gateway"
  http:
  - route:
    - destination:
        host: httpbin-gateway

この問題を解決するには、詳細なエラーメッセージでリソースタイプを探し、Istio の設定を修正して、再度試してください。