我使用以下配置为服务content.default.svc.cluster.local添加重试策略。在命名空间中运行着数十个服务。我想在相同的名称空间中对所有这些应用相同的策略。有方便的方法吗?
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: public-ingress
namespace: netops
spec:
hosts:
- "api.backend.com"
gateways:
- public-ingress
http:
- appendHeaders:
x-envoy-max-retries: "20"
x-envoy-retry-on: connect-failure,refused-stream
x-envoy-upstream-rq-timeout-ms: "0"
route:
- destination:
host: content.default.svc.cluster.local