Skip to content

Commit

Permalink
Merge pull request #23 from kurtosis-tech/egomes/new-gateway-management
Browse files Browse the repository at this point in the history
feat! new gateway management
  • Loading branch information
lostbean authored Sep 26, 2024
2 parents d8a1996 + da44690 commit 4f713bc
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 30 deletions.
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 61 additions & 18 deletions release/obd-kardinal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,24 +171,7 @@ spec:
protocol: TCP
appProtocol: HTTP
targetPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: frontend-external
annotations:
kardinal.dev.service/ingress: "true"
kardinal.dev.service/host: "baseline.app.localhost"
spec:
type: LoadBalancer
selector:
app: frontend
ports:
- name: http
port: 80
targetPort: 8080
protocol: TCP
appProtocol: HTTP

---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -341,6 +324,65 @@ spec:
protocol: TCP
appProtocol: HTTP

---
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: gateway
annotations:
kardinal.dev.service/gateway: "true"
spec:
gatewayClassName: istio
listeners:
- name: default
hostname: "*.app.localhost"
port: 8888
protocol: HTTP
allowedRoutes:
namespaces:
from: All

---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: http
annotations:
kardinal.dev.service/route: "true"
spec:
parentRefs:
- name: gateway
hostnames: ["prod.app.localhost"]
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: frontend
port: 80

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
kardinal.dev.service/ingress: "true"
name: ingress
spec:
rules:
- host: web.other.localhost
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: frontend
port:
number: 80

---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -395,6 +437,7 @@ spec:
# value:
#- name: SNS_TOPIC_ARN
# value:

---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 4f713bc

Please sign in to comment.