Last active
December 15, 2021 23:58
-
-
Save kazshinohara/a660d410e9346e3c30b25010060a983e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: HTTPRoute | |
apiVersion: networking.x-k8s.io/v1alpha1 | |
metadata: | |
name: internal-httproute-header-rewrite | |
labels: | |
gateway: internal-gateway | |
spec: | |
hostnames: | |
- "i-gw.gcpx.org" | |
rules: | |
- forwardTo: | |
- serviceName: whereami-v1 | |
port: 8080 | |
- matches: | |
- headers: | |
type: Exact | |
values: | |
env: v2 | |
filters: | |
- type: RequestHeaderModifier | |
requestHeaderModifier: | |
add: | |
my-header: hello | |
remove: | |
- my-header | |
forwardTo: | |
- serviceName: whereami-v2 | |
port: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment