Skip to content

Commit d6b0b2e

Browse files
committed
Switched frontend from nodeport to traefik ingressroute
1 parent 8a1d5ba commit d6b0b2e

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

guestbook/all-in-one/guestbook-all-in-one.yaml

+18-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
spec:
3636
containers:
3737
- name: master
38-
image: registry.k8s.io/redis:e2e # or just image: redis
38+
image: redis
3939
resources:
4040
requests:
4141
cpu: 100m
@@ -104,7 +104,7 @@ metadata:
104104
tier: frontend
105105
spec:
106106
# comment or delete the following line if you want to use a LoadBalancer
107-
type: NodePort
107+
#type: NodePort
108108
# if your cluster supports it, uncomment the following to automatically create
109109
# an external load-balanced IP for the frontend service.
110110
# type: LoadBalancer
@@ -147,3 +147,19 @@ spec:
147147
# value: env
148148
ports:
149149
- containerPort: 80
150+
---
151+
apiVersion: traefik.io/v1alpha1
152+
kind: IngressRoute
153+
metadata:
154+
name: guestbook
155+
namespace: testargocd
156+
spec:
157+
entryPoints:
158+
- web
159+
routes:
160+
- kind: Rule
161+
match: Host(`guestbook.local`)
162+
services:
163+
- name: frontend
164+
port: 80
165+

0 commit comments

Comments
 (0)