Reputation: 2625
I have proxmox running on a mini-pc. It has 2 nodes
Both are running AlmaLinux and hosted on the hypervisor as described above. Both nodes can ping each other using the ip address.
I started a K8 cluster using K3s on node 5. Then I installed helm and added nginx ingress. The IP address was pening initially
[root@node-4 tmp]# kubectl get service --namespace ingress-nginx ingress-nginx-controller --output wide --watch
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
ingress-nginx-controller LoadBalancer 10.43.152.10 <pending> 80:31138/TCP,443:32638/TCP 24s app.kubernetes.io/component=controller,app.kubernetes.io/instance=ingress-nginx,app.kubernetes.io/name=ingress-nginx
I edited the service using below(live)
[root@node-4 tmp]# kubectl edit service --namespace ingress-nginx ingress-nginx-controller --
service/ingress-nginx-controller edited
And in the yaml, added the externIP as 192.168.1.200
. Can be seen below
[root@node-4 tmp]# kubectl get service --namespace ingress-nginx ingress-nginx-controller --output wide
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
ingress-nginx-controller LoadBalancer 10.43.152.10 192.168.1.200 80:31138/TCP,443:32638/TCP 3m7s app.kubernetes.io/component=controller,app.kubernetes.io/instance=ingress-nginx,app.kubernetes.io/name=ingress-nginx
Now when I do a curl from node-5 at the ingress ip, I do get 404 and that is fine as I know the address is reachable from my linux node-5.
I know this might be basic to some but why is it that the ingress ip not reachable from node-4?
Basically trying to curl 192.168.1.200
from node-4 and it is not working.
Some additional questions as well, what has been done special to the IP-Tables on node-5 that form node-5 I can access the ingress from outside the K8 cluster, which is the whole point of doing this, and why can this IP not be accessed from node-4?
Upvotes: -1
Views: 23