openconfig / kne

Apache License 2.0
214 stars 64 forks source link

Error no adress pooling when deploy external-compose #394

Closed fario97 closed 1 year ago

fario97 commented 1 year ago

Cluster version: 1.27 CNI: Flannel up-to-date and working All nodes are working and i can deploy anything in the cluster and workers. The hairpin mode is enable in the flannel config. I have not an ingress controller but i don't see anything in the guide set-up. I have CRI (Dockerd, plugin of mirantis and docker)

After do an apply, i got the issue about can't route to host as i shown in the image: image

Bonus: If i ignore all failurePolicy of the webhookconfiguration or if i delete it and create the metal-lb indepent of the deploy of external-compose.yaml i can deploy all the controllers and cni in the file but it doesnt deploy in the right network and keep everytime in init and the host get in the status: Error.

alexmasi commented 1 year ago

MetalLB creates the address pool from a docker network, the name of this pool should be specified in the deployment config: https://github.com/openconfig/kne/blob/1d7c895f753a9c6cf4a6b4b7b286daa833322cda/deploy/kne/external-multinode.yaml#L7

this network is created in the codelab: https://github.com/openconfig/kne/blob/1d7c895f753a9c6cf4a6b4b7b286daa833322cda/deploy/kne/external-multinode.yaml#L7

Not sure exactly the commands you've run to repro this issue, hopefully that helps

fario97 commented 1 year ago

MetalLB creates the address pool from a docker network, the name of this pool should be specified in the deployment config:

https://github.com/openconfig/kne/blob/1d7c895f753a9c6cf4a6b4b7b286daa833322cda/deploy/kne/external-multinode.yaml#L7

this network is created in the codelab:

https://github.com/openconfig/kne/blob/1d7c895f753a9c6cf4a6b4b7b286daa833322cda/deploy/kne/external-multinode.yaml#L7

Not sure exactly the commands you've run to repro this issue, hopefully that helps

Good morning Alex,

I'm doing the command: kne deploy /path/to/file/external-multinode.yaml, image it was wrote in the top of the file and im getting the same issue. image

After do command im getting the same but a bit different and now i'm getting connection refused: image

i want to keep in mind that i'm using as CRI-Dockerd but when i don't create the network multinode, it displays an error of it doesnt reach the ipv4 docker net but after create, i got this error but if you inspect the network is 172.17.x.x (default) and 172.20.X.X (Multinode), and also appears that i have a replica of IPs with kube-proxy and enpoint of metallb:

image

multinode: image

bridge: image

I don't know why kne is using network bridge if i specify multinode.