Skip to content

Commit 625c36f

Browse files
committed
Add ingress for ports 80/443 via traefik
1 parent 087fab1 commit 625c36f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

workshop/petclinic/petclinic-deploy.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,24 @@ data:
642642
INSERT IGNORE INTO visits VALUES (3, 8, '2009-06-04', 'neutered');
643643
INSERT IGNORE INTO visits VALUES (4, 7, '2008-09-04', 'spayed');
644644
---
645+
apiVersion: networking.k8s.io/v1
646+
kind: Ingress
647+
metadata:
648+
name: api-gateway-ingress
649+
annotations:
650+
spec:
651+
ingressClassName: traefik
652+
rules:
653+
- http:
654+
paths:
655+
- path: /
656+
pathType: Prefix
657+
backend:
658+
service:
659+
name: api-gateway
660+
port:
661+
number: 82
662+
---
645663
apiVersion: apps/v1
646664
kind: Deployment
647665
metadata:

0 commit comments

Comments
 (0)