1、切换环境
kubecm switch
2、查看isito的gateway
kubectl get service -n ns-istio-system-sit
3、virtualService文件
kind: VirtualService
metadata:
name: vs-ingress-otelcol-ack-sit-collector
namespace: observability
spec:
gateways:
- istio-system/gw-ingress-manulife-sinochem-com
hosts:
- otel-collector-sit.internal.manulife-sinochem.com
http:
- match:
- uri:
prefix: /
retries:
attempts: 3
perTryTimeout: 15s
retryOn: 5xx
route:
- destination:
host: otelcol-ack-sit-collector.observability.svc.cluster.local
port:
number: 4318
timeout: 60s