https://rancher.com/ logo
Title
f

fierce-magician-45581

08/11/2022, 12:55 AM
👋 Hello, team!, I am trying to deploy an app on
k3d
via helm where cluster is created as below -
k3d cluster create --agents 2 test-cluster \
  --api-port 6445 \
  --port '8585:8585@loadbalancer' \
  --port '2376:2376@loadbalancer' \
  --port '80:80@loadbalancer' \
  --port '443:443@loadbalancer'
My app is using ports 80,443,2376 and 8585. All pods are up and running fine but when I am trying to access my application, on 80/443 I am getting a
404 not found
error from
traefik
, I can not change application port from 80/443 to some other port as there are some internal micro-services dependency. Can you help me to understand what might be wrong here?
w

wide-garage-9465

08/11/2022, 5:38 AM
Hey 👋 How are you exposing your application ports? Which service type are you using? Since you're hitting Traefik here, you're trying to access it via Ingress, right?
f

fierce-magician-45581

08/11/2022, 6:35 AM
Ports are exposed via k8s services - 80/443 - exposed as Loadbalancer Other ports - exposed as Cluster IP
w

wide-garage-9465

08/11/2022, 6:42 AM
80/443 should already be taken by Traefik, so I guess you have some pending svclb pods for yours? ClusterIP service means that it's only accessible within the cluster network, so you'd have to change that to e.g. NodePort or hostPort.
m

melodic-market-42092

08/11/2022, 6:43 AM
It is possible to run k3d without traefik though, right?
w

wide-garage-9465

08/11/2022, 6:45 AM
Yep, you can pass the
--disable=traefik
flag to K3s server
f

fierce-magician-45581

08/11/2022, 6:47 AM
Let me try to disable the
traefik
and try. will update here.
Thanks so much, after disabling
traefik
, I am able to connect to application.