openconfig / kne

Apache License 2.0
216 stars 65 forks source link

Metallb with external cluster type #375

Closed yennym3 closed 1 year ago

yennym3 commented 1 year ago

Hi,

Is there any way to deploy the cluster without metallB?, because the existing cluster already maintains a metallb.

alexmasi commented 1 year ago

It should be idempotent if you deploy into an existing cluster with the same metallb already configured. But I can understand the pain point here if you want to leave out the Ingress and/or CNI at your own risk

We can consider adding an "External" type spec that would satisfy the deployment or allow a user to specify a partial deployment config that leaves out these currently required fields.

yennym3 commented 1 year ago

@alexmasi thank you, Now I am trying to deploy KNE on an existing k8s cluster with cri-dockerd and flannel-cni without metallb , and when it starts deploying the KNE Metallb cannot get the correct polling address. would you know how can I fix this? or why is this happening?

This is the error:

I0703 12:06:38.858265 258569 deploy.go:1197] Deployment "metallb-system" healthy I0703 12:06:38.865040 258569 deploy.go:799] Applying metallb ingress config W0703 12:06:41.925237 258569 deploy.go:837] Failed to create address polling (will retry 5 times) W0703 12:06:49.990280 258569 deploy.go:837] Failed to create address polling (will retry 4 times) W0703 12:06:58.053806 258569 deploy.go:837] Failed to create address polling (will retry 3 times) W0703 12:07:06.119047 258569 deploy.go:837] Failed to create address polling (will retry 2 times) W0703 12:07:14.185353 258569 deploy.go:837] Failed to create address polling (will retry 1 times) Error: Internal error occurred: failed calling webhook "ipaddresspoolvalidationwebhook.metallb.io": failed to call webhook: Post "https://webhook-service.metallb-system.svc:443/validate-metallb-io-v1beta1-ipaddresspool?timeout=10s": dial tcp 10.108.80.175:443: connect: no route to host

K8s version: v1.27

alexmasi commented 1 year ago

Seems similar to https://github.com/openconfig/kne/issues/394

alexmasi commented 1 year ago

Marking this as closed, please reopen if its still an issue