back-stack / showcase

The showcase implementation of The BACK stack
24 stars 21 forks source link

bug: if local machine has a kind installation already, porter fails #37

Open kurktchiev opened 3 months ago

kurktchiev commented 3 months ago

If you have a kind cluster up locally, porter install --param cluster-type=kind fails to proceed. I did not have a chance to debug thoroughly, but the fix locally was to delete my existing kind cluster, which allowed the installation to proceed. We need to figure out where/why the clash was happening.

morey-tech commented 3 months ago

Strange, the Porter install should be aware that the kind cluster already exists and avoid conflicts. Can you post the error you run into?

kurktchiev commented 3 months ago

No it wasn’t that a backstack cluster already existed, it was having issues with the fact that there were other kind instances running locally.

I will rerun and try to grab the issue again next week

-B On Mar 22, 2024 at 13:56 -0600, Nicholas Morey @.***>, wrote:

Strange, the Porter install should be aware that the kind cluster already exists and avoid conflicts. Can you post the error you run into? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

kurktchiev commented 3 months ago

i cannot reproduce this anymore locally, but in that time kind got updated so maybe it was red herring.

kurktchiev commented 2 months ago

Found the problem. in our kind.config we bind 80/443 which in turn means we cannot stand up more instances

apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
  kubeadmConfigPatches:
  - |
    kind: InitConfiguration
    nodeRegistration:
      kubeletExtraArgs:
        node-labels: "ingress-ready=true"        
  extraPortMappings:
  - containerPort: 80
    hostPort: 80
    protocol: TCP
  - containerPort: 443
    hostPort: 443
    protocol: TCP

So if I want to stand up another instance of the HUB on my local host, it will fail. This is isolated to KinD