SchemaValidationError
當您的 Istio 設定無法成功通過架構驗證時,會發生此訊息。
例如,您會收到此錯誤
Error [IST0106] (VirtualService ratings-bogus-weight-default.default) Schema validation error: percentage 888 is not in range 0..100
而您的 Istio 設定包含這些值
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
name: ratings-bogus-weight-default
namespace: default
spec:
hosts:
- ratings
http:
- route:
- destination:
host: ratings
subset: v1
weight: 999
- destination:
host: ratings
subset: v2
weight: 888
在此範例中,錯誤訊息指出 weight
元素在針對架構檢查時具有無效的值。
若要解決此問題,請參閱訊息詳細資訊欄位,以判斷哪個元素或值不符合架構,更正錯誤並重試。
有關 Istio 資源的預期架構的詳細資訊,請參閱設定參考。