with kubernetes config files

This commit is contained in:
Mosiur
2026-05-03 07:59:17 +00:00
commit 3e5fb66bd6
45 changed files with 423 additions and 0 deletions

27
gateway/httproute.yaml Normal file
View File

@@ -0,0 +1,27 @@
# kubernetes/gateway/httproute.yaml
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: todo-routes
namespace: todo-app
spec:
parentRefs:
- name: todo-gateway
rules:
# API traffic → backend
- matches:
- path:
type: PathPrefix
value: /api
backendRefs:
- name: backend-service
port: 5000
# All other traffic → frontend
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: frontend-service
port: 30081