Skip to content

Commit 3a984a3

Browse files
committed
chore(k8s): Switch to Gateway API
1 parent c0a76c0 commit 3a984a3

3 files changed

Lines changed: 28 additions & 32 deletions

File tree

k8s/httproute.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: gateway.networking.k8s.io/v1
2+
kind: HTTPRoute
3+
metadata:
4+
name: httproute
5+
spec:
6+
parentRefs:
7+
- name: traefik-gateway
8+
namespace: traefik
9+
kind: Gateway
10+
sectionName: websecure-dev
11+
hostnames:
12+
- betterslcm.whyredfire.dev
13+
rules:
14+
- matches:
15+
- path:
16+
type: PathPrefix
17+
value: /api
18+
backendRefs:
19+
- name: backend
20+
port: 8000
21+
- matches:
22+
- path:
23+
type: PathPrefix
24+
value: /
25+
backendRefs:
26+
- name: frontend
27+
port: 8080

k8s/ingress.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

k8s/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ kind: Kustomization
44
resources:
55
- backend
66
- frontend
7-
- ingress.yaml
7+
- httproute.yaml

0 commit comments

Comments
 (0)