destination.yaml 632 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. ---
  2. apiVersion: networking.istio.io/v1alpha3
  3. kind: DestinationRule
  4. metadata:
  5. name: grpc-example
  6. namespace: prd
  7. spec:
  8. host: grpc-example
  9. subsets:
  10. - name: v1
  11. labels:
  12. version: v1
  13. ---
  14. apiVersion: networking.istio.io/v1alpha3
  15. kind: DestinationRule
  16. metadata:
  17. name: http-backend
  18. namespace: prd
  19. spec:
  20. host: http-backend
  21. subsets:
  22. - name: v1
  23. labels:
  24. version: v1
  25. ---
  26. apiVersion: networking.istio.io/v1alpha3
  27. kind: DestinationRule
  28. metadata:
  29. name: http-endpoint
  30. namespace: prd
  31. spec:
  32. host: http-endpoint
  33. subsets:
  34. - name: v1
  35. labels:
  36. version: v1
  37. - name: v2
  38. labels:
  39. version: v2