Hi Team,
I am a nube experimenting traefik with EKS. I have the traefik up and running based on the documentation Kubernetes and Let's Encrypt - Traefik
I am able to access:
http://localhost:8000/notls
http://localhost:8080/dashboard
But when I run additional pods, traefik is not able to register the routes. I am not sure what is that I am missing. Attached are the screenshot of error and config file.
Can somebody tell me where exactly to add the "entry points" for the custom app that runs as frontend?
Thanks,
Sam
Frontend-ingress-ingress-route.yaml
apiVersion: traefik.containo.us/v1alpha1
2 kind: IngressRoute
3 metadata:
4 name: frontendingressroute
5 namespace: default
6 spec:
7 entryPoints:
8 - frontend
9 routes:
10 - match: Host(`localhost`) && PathPrefix(`/frontend`)
11 kind: Rule
12 services:
13 - name: frontend
14 port: 80
15
frontend.yaml
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4 name: frontend
5 labels:
6 app: guestbook
7 spec:
8 selector:
9 matchLabels:
10 app: guestbook
11 tier: frontend
12 replicas: 1
13 template:
14 metadata:
15 labels:
16 app: guestbook
17 tier: frontend
18 spec:
19 containers:
20 - name: php-redis
21 image: gcr.io/google-samples/gb-frontend:v4
22 resources:
23 requests:
24 cpu: 100m
25 memory: 100Mi
26 env:
27 - name: GET_HOSTS_FROM
28 value: dns
29 # value: env
30 ports:
31 - containerPort: 80
32 ---
33 apiVersion: v1
34 kind: Service
35 metadata:
36 name: frontend
37 labels:
38 app: guestbook
39 tier: frontend
40 spec:
41 # comment or delete the following line if you want to use a LoadBalancer
42 type: NodePort
43 # if your cluster supports it, uncomment the following to automatically create
44 # an external load-balanced IP for the frontend service.
45 # type: LoadBalancer
46 ports:
47 - port: 80
48 name: frontend
49 selector:
50 app: guestbook
51 tier: frontend