k8s icon indicating copy to clipboard operation
k8s copied to clipboard

Microk8s can't bring up nats/stan from minimal setup

Open mar1ged opened this issue 4 years ago • 2 comments

I followed the docs at https://github.com/nats-io/nats.docs/blob/master/nats-on-kubernetes/minimal-setup.md and ran the nats-box. But stan is not available.

I already checked the status of the pod:

NAME     READY   STATUS    RESTARTS   AGE
nats-0   1/1     Running   0          89s
stan-0   0/1     Pending   0          5m12s

To exclude this as a cause I downloaded the provided yaml files and updated them to use the 2.1.7-alpine image of nats and the 0.17.0-linux image. But unfortunately I still see the same effect.

mar1ged avatar Jun 12 '20 12:06 mar1ged

To further diagnose this I removed microk8s and installed kind on which I configured a three node (1 master, two workers) setup.

There I'm able to bring nats and stan up, but stan crashed twice ....

NAME     READY   STATUS             RESTARTS   AGE
nats-0   1/1     Running            0          47s
stan-0   0/1     CrashLoopBackOff   2          43s

...

before it was started properly:

NAME     READY   STATUS    RESTARTS   AGE
nats-0   1/1     Running   0          99s
stan-0   1/1     Running   3          95s

mar1ged avatar Jun 14 '20 12:06 mar1ged

@wallyqs could you review this issue and decide if the documentation needs updating or if this is an unrelated issue so we can move it to where it needs to be? Thanks!

gcolliso avatar Jun 30 '20 14:06 gcolliso

Closing due to age of issue; if experiencing in current versions please open a new issue.

caleblloyd avatar May 03 '23 17:05 caleblloyd