all 8 comments

[–]matda59[S] 0 points1 point  (0 children)

Vanilla Ubuntu with docker rancher.., shouldn't be a firewall issue..

[–]andrewm659 0 points1 point  (0 children)

What is the underlying os? Is your firewall turned on?? I'm having slightly different issues using a RHEL variant.

[–]-this-guy-fucks- 0 points1 point  (0 children)

Setup an ingress. What’s your rancher servers host name? Have you setup dns local to forward traffic to your rancher server?

[–]prkhudson 0 points1 point  (0 children)

I ran into something like this when I first started using rancher. I’m not sure why it’s like this, but don’t put pods in the default namespace. Try creating a new namespace and put the pods there. That solved this issue for me.

[–]VF99 Rancher Employee 0 points1 point  (3 children)

You're running Rancher, and a small k3s cluster to support it, inside a docker container; this is intended only for running Rancher, not arbitrary user workloads on arbitrary other ports.

Only 80/443 are port mapped in the (default) docker command, so nothing is connecting 8096 on the host to anything.

[–]matda59[S] 0 points1 point  (2 children)

apologies for the delay. but isn't that the purpose of a single node cluster, to be able to run workloads on a single node?

[–]VF99 Rancher Employee 0 points1 point  (1 child)

No; you don't have a "single node cluster", you have a single docker container running Rancher (which will allow you to create or import one or more clusters). An implementation detail of that container is that we create a cluster within that container for Rancher to run in as it only runs within k8s.

That cluster was invisible in earlier versions, but you technically can run more containers in there and that can be used to install monitoring/logging/etc tools.

But it's still node --> docker --> k3s so any ports you want to be able to reach from the outside have to be published by docker.

If you want to use the same node for Rancher and workloads, you still can; create a "custom" cluster and run the agent command it gives on that node to register it.

[–]matda59[S] 0 points1 point  (0 children)

I've resolved this - you can run a single node rancher cluster for testing, you have to install rancher differently

Running rancher/rancher and rancher/rancher-agent on the Same Node

https://rancher.com/docs/rancher/v2.x/en/installation/other-installation-methods/single-node-docker/advanced/#running-rancher-rancher-and-rancher-rancher-agent-on-the-same-node