Skip to content

Commit 2e9b7e4

Browse files
authored
Merge pull request #252 from signadot/use-linkerd-httproute
add a linkerd http route
2 parents cb82c3c + 59b52a1 commit 2e9b7e4

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: policy.linkerd.io/v1beta2
2+
kind: HTTPRoute
3+
metadata:
4+
name: location-router
5+
spec:
6+
parentRefs:
7+
- name: location
8+
kind: Service
9+
group: core
10+
port: 8081
11+
rules:
12+
- matches:
13+
- headers:
14+
- name: "x-refuse-connection"
15+
value: "true"
16+
backendRefs:
17+
- name: "location"
18+
port: 7981
19+
- backendRefs:
20+
- name: "location"
21+
port: 8081
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11

22
resources:
33
- ../../../base
4+
- http-route.yaml
45

56
patches:
67
- path: frontend-linkerd-annotation.yaml
78
- path: location-linkerd-annotation.yaml
89
- path: driver-linkerd-annotation.yaml
910
- path: route-linkerd-annotation.yaml
11+
- path: location-service.yaml
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: location
5+
spec:
6+
ports:
7+
# this is a dummy port which is not listened to
8+
# in order to actually exercise linkerd actively
9+
# in our linkerd integration
10+
- name: http-refuse-connection
11+
port: 7981

0 commit comments

Comments
 (0)