Fix http-support/gatewayapi/redirect.hosts.
Showing
4 changed files
with
17 additions
and
5 deletions
This diff could not be displayed because it is too large.
... | @@ -2,5 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1 | ... | @@ -2,5 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1 |
2 | kind: Kustomization | 2 | kind: Kustomization |
3 | 3 | ||
4 | resources: | 4 | resources: |
5 | - github.com/kubernetes-sigs/gateway-api/config/crd?ref=v0.5.0 | 5 | - ./experimental-install.yaml |
6 | #- github.com/kubernetes-sigs/gateway-api/config/crd?ref=v0.5.0 | ||
7 | #- https://github.com/kubernetes-sigs/gateway-api/releases/download/v0.5.0/experimental-install.yaml | ||
8 | #- https://github.com/kubernetes-sigs/gateway-api/releases/download/v0.5.0/standard-install.yaml | ||
9 | # | ||
10 | # | ||
11 | |||
6 | 12 | ... | ... |
This diff could not be displayed because it is too large.
... | @@ -26,7 +26,7 @@ releases: | ... | @@ -26,7 +26,7 @@ releases: |
26 | name: http-support-redirect-{{ $redirect_index }}-{{ index $redirect.hosts 0 }} | 26 | name: http-support-redirect-{{ $redirect_index }}-{{ index $redirect.hosts 0 }} |
27 | spec: | 27 | spec: |
28 | hosts: | 28 | hosts: |
29 | {{- $redirect.hosts | toYaml | nindent 18 }} | 29 | {{- $redirect.hosts | toYaml | nindent 20 }} |
30 | gateways: | 30 | gateways: |
31 | - {{ $.Values.istio.gateway }} | 31 | - {{ $.Values.istio.gateway }} |
32 | http: | 32 | http: |
... | @@ -46,7 +46,7 @@ releases: | ... | @@ -46,7 +46,7 @@ releases: |
46 | parentRefs: | 46 | parentRefs: |
47 | - name: {{ $.Values.gatewayAPI.gateway }} | 47 | - name: {{ $.Values.gatewayAPI.gateway }} |
48 | hostnames: | 48 | hostnames: |
49 | {{- $redirect.hosts | toYaml | nindent 18 }} | 49 | {{- $redirect.hosts | toYaml | nindent 20 }} |
50 | rules: | 50 | rules: |
51 | - matches: | 51 | - matches: |
52 | - path: | 52 | - path: |
... | @@ -90,7 +90,7 @@ releases: | ... | @@ -90,7 +90,7 @@ releases: |
90 | hosts: | 90 | hosts: |
91 | - {{ $proxy.frontend.host }} | 91 | - {{ $proxy.frontend.host }} |
92 | gateways: | 92 | gateways: |
93 | - {{ $.Values.gateway }} | 93 | - {{ $.Values.istio.gateway }} |
94 | http: | 94 | http: |
95 | - match: | 95 | - match: |
96 | - uri: | 96 | - uri: |
... | @@ -121,13 +121,16 @@ releases: | ... | @@ -121,13 +121,16 @@ releases: |
121 | parentRefs: | 121 | parentRefs: |
122 | - name: {{ $.Values.gatewayAPI.gateway }} | 122 | - name: {{ $.Values.gatewayAPI.gateway }} |
123 | hostnames: | 123 | hostnames: |
124 | - {{- $proxy.frontend.host }} | 124 | - {{ $proxy.frontend.host }} |
125 | rules: | 125 | rules: |
126 | - matches: | 126 | - matches: |
127 | - path: | 127 | - path: |
128 | type: PathPrefix | 128 | type: PathPrefix |
129 | value: / | 129 | value: / |
130 | filters: | 130 | filters: |
131 | - type: URLRewrite | ||
132 | urlRewrite: | ||
133 | hostname: {{ $proxy.authority }} | ||
131 | - type: RequestHeaderModifier | 134 | - type: RequestHeaderModifier |
132 | requestHeaderModifier: | 135 | requestHeaderModifier: |
133 | set: | 136 | set: |
... | @@ -143,6 +146,9 @@ releases: | ... | @@ -143,6 +146,9 @@ releases: |
143 | value: {{ $proxy.backend.address }} | 146 | value: {{ $proxy.backend.address }} |
144 | - name: x-backend-scheme | 147 | - name: x-backend-scheme |
145 | value: {{ $proxy.backend.scheme }} | 148 | value: {{ $proxy.backend.scheme }} |
149 | backendRefs: | ||
150 | - name: http-support-proxy | ||
151 | port: 80 | ||
146 | {{- end }} | 152 | {{- end }} |
147 | {{- end }} | 153 | {{- end }} |
148 | 154 | ... | ... |
-
Please register or sign in to post a comment