Closed hxjo closed 1 month ago
I just tried with the /kubernetes/sample
examples and the issue persists:
kubectl get pods
NAME READY STATUS RESTARTS AGE
example1-5689599f5b-wrjbw 1/1 Running 0 3m30s
example2-76c8998db8-2gk79 1/1 Running 0 3m28s
kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.43.0.1 <none> 443/TCP 18h
example1 ClusterIP 10.43.65.204 <none> 8080/TCP 3m23s
example2 ClusterIP 10.43.69.103 <none> 8080/TCP 3m21s
kubectl get deployments
NAME READY UP-TO-DATE AVAILABLE AGE
example1 1/1 1 1 3m58s
example2 1/1 1 1 3m56s
kubectl get ingress
NAME CLASS HOSTS ADDRESS PORTS AGE
example <none> example1.kubernetes.localhost,example2.kubernetes.localhost 80 4m16s
kubectl get configmap
NAME DATA AGE
kube-root-ca.crt 1 2m39s
I still have the logs
{"level":"info","ts":1718623344.3641746,"caller":"controller/action_ingress.go:55","msg":"Ingress updated (default/example)"}
Yet all curl, from the same machine this time, fail
curl example1.kubernetes.localhost/hello2
404 page not found
curl example1.kubernetes.localhost/hello1
404 page not found
curl example2.kubernetes.localhost/hello1
404 page not found
curl example2.kubernetes.localhost/hello2
404 page not found
I got it working, it seems that:
Thanks again to the contributors of this project, who did an amazing job ❤️
Hello,
First of all, my apologies if the problem here is dumb, I'm very new to Kubernetes. I am trying to setup a simple ingress from a domain to a service, and for some reason it does not seem to work.
NSLOOKUP on the domain does point to the
hostname -I
ip on the VPS, which is also referenced as externalIP on the caddy ingress controller.Caddy ingress server does seem to read the ingress:
Yet any curl on the hostname results in 404, and no log from the ingress controller.
Would any of you have any idea of what might be causing this ? Have I missed something ?
I am not on a managed kubernetes, I am on a private VPS.
I am using k3s.
If you need any more information to answer the question, please go for it.
Thank you very much for your time, have a nice day. Thanks a lot to the contributors of this project.