istio

Форк
0
105 строк · 2.4 Кб
1
apiVersion: networking.istio.io/v1alpha3
2
kind: Gateway
3
metadata:
4
  annotations:
5
    internal.istio.io/gateway-semantics: gateway
6
    internal.istio.io/gateway-service: istio-ingressgateway.istio-system.svc.domain.suffix
7
    internal.istio.io/parents: Gateway/gateway/default.istio-system
8
  creationTimestamp: null
9
  name: gateway-istio-autogenerated-k8s-gateway-default
10
  namespace: istio-system
11
spec:
12
  servers:
13
  - hosts:
14
    - '*/*.domain.example'
15
    port:
16
      name: default
17
      number: 80
18
      protocol: HTTP
19
---
20
apiVersion: networking.istio.io/v1alpha3
21
kind: VirtualService
22
metadata:
23
  annotations:
24
    internal.istio.io/parents: GRPCRoute/grpc.default
25
    internal.istio.io/route-semantics: gateway
26
  creationTimestamp: null
27
  name: grpc-0-istio-autogenerated-k8s-gateway
28
  namespace: default
29
spec:
30
  gateways:
31
  - istio-system/gateway-istio-autogenerated-k8s-gateway-default
32
  hosts:
33
  - first.domain.example
34
  http:
35
  - headers:
36
      request:
37
        add:
38
          my-added-header: added-value
39
        remove:
40
        - my-removed-header
41
    match:
42
    - headers:
43
        my-header:
44
          exact: some-value
45
      uri:
46
        prefix: /foo/
47
    name: default.grpc.0
48
    route:
49
    - destination:
50
        host: httpbin.default.svc.domain.suffix
51
        port:
52
          number: 80
53
  - match:
54
    - uri:
55
        regex: /[^/]+/bar
56
    name: default.grpc.1
57
    route:
58
    - destination:
59
        host: httpbin.default.svc.domain.suffix
60
        port:
61
          number: 80
62
---
63
apiVersion: networking.istio.io/v1alpha3
64
kind: VirtualService
65
metadata:
66
  annotations:
67
    internal.istio.io/parents: GRPCRoute/grpc.default
68
    internal.istio.io/route-semantics: gateway
69
  creationTimestamp: null
70
  name: grpc-1-istio-autogenerated-k8s-gateway
71
  namespace: default
72
spec:
73
  gateways:
74
  - istio-system/gateway-istio-autogenerated-k8s-gateway-default
75
  hosts:
76
  - another.domain.example
77
  http:
78
  - headers:
79
      request:
80
        add:
81
          my-added-header: added-value
82
        remove:
83
        - my-removed-header
84
    match:
85
    - headers:
86
        my-header:
87
          exact: some-value
88
      uri:
89
        prefix: /foo/
90
    name: default.grpc.0
91
    route:
92
    - destination:
93
        host: httpbin.default.svc.domain.suffix
94
        port:
95
          number: 80
96
  - match:
97
    - uri:
98
        regex: /[^/]+/bar
99
    name: default.grpc.1
100
    route:
101
    - destination:
102
        host: httpbin.default.svc.domain.suffix
103
        port:
104
          number: 80
105
---
106

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.