hashicorp-education / learn-consul-cluster-peering

A repository to help learn how Consul's Cluster Peering works
Mozilla Public License 2.0
0 stars 5 forks source link

Is this meant to work on Desktop Kubernetes? #17

Open wildone opened 1 week ago

wildone commented 1 week ago

@krastin I have tried to get this setup working on docker desktop Kubernetes with no avail [https://github.com/wildone/learn-consul-cluster-peering], has any one tried this on local?

The whole process stops at electing peer: image

I am using latest docker desktop with kubernetes enabled.

wildone commented 1 week ago

Also trying this on Podman and Minikube stack.

image

Podman:

Client:       Podman Engine
Version:      5.2.4
API Version:  5.2.4
Go Version:   go1.23.2
Git Commit:   76d0859d9f6e5d7c84392da9dcd2fae3447f789d
Built:        Tue Oct  8 03:09:24 2024
OS/Arch:      windows/amd64

Server:       Podman Engine
Version:      5.2.3
API Version:  5.2.3
Go Version:   go1.22.7
Built:        Tue Sep 24 10:00:00 2024
OS/Arch:      linux/amd64

Minikube

minikube version: v1.34.0
commit: 210b148df93a80eb872ecbeb7e35281b3c582c61
wildone commented 1 week ago

When running with replica 1

NAME                                          READY   STATUS      RESTARTS      AGE
consul-connect-injector-7fb856f469-hw467      1/1     Running     0             3m19s
consul-mesh-gateway-75cd879bf8-s5cg7          0/1     Init:0/1    1 (24s ago)   3m19s
consul-server-0                               1/1     Running     0             3m19s
consul-server-acl-init-qtnv6                  0/1     Completed   0             3m18s
consul-webhook-cert-manager-76477f5cb-2gd72   1/1     Running     0             3m19s
prometheus-server-6c87669b58-xqzcs            2/2     Running     0             117s

kubectl -n edge-services logs consul-mesh-gateway-75cd879bf8-s5cg7

Defaulted container "mesh-gateway" out of: mesh-gateway, mesh-gateway-init (init)
Error from server (BadRequest): container "mesh-gateway" in pod "consul-mesh-gateway-75cd879bf8-s5cg7" is waiting to start: PodInitializing

While its installing I can port forward into it and console is up:

image