Closed linchuan4028 closed 6 months ago
Hi @linchuan4028, the pods running properly are on host network and the others are not. So we can see Coil has a trouble to assign a unique pod IP for them.
To solve the problem, let Coil know an appropriate CIDR to use for pods. It is written on the last line of the Quick start: https://github.com/cybozu-go/coil#quick-start
As though it looks problematic after install-coil
, but its ok to proceed to run:
$ ../bin/kubectl apply -f manifests/default_pool.yaml
Could you please try it?
It works. thx. Additional question: I don't known if the egress gateway can handle that as we set hostNetwork:true on the nat-client pod.
I don't known if the egress gateway can handle that as we set hostNetwork:true on the nat-client pod.
We cannot use egress gateway for the pod set hostNetwork: true
.
https://github.com/cybozu-go/coil/blob/v2.5.1/v2/controllers/pod_watcher.go#L84-L85
Thanks, I have read your blogs in https://blog.kintone.io/entry/coilv2#Problems-solved-by-Coil There are description about work with other CNI like calico and cilium.
Coil is designed to be easily integrated with other software such as [BIRD](https://bird.network.cz/), [MetalLB](https://metallb.universe.tf/), [Calico](https://www.projectcalico.org/), or [Cilium](https://cilium.io/) to implement Kubernetes features like LoadBalancer or NetworkPolicy
We are now working on the flannel CNI in our production. I'm very interested in the egress gateway feature. Is there a solution to keep the flannel CNI in our cluster and adopt the coil egress gateway feature?
Coil egress cannot use with flannel, because the egress feature depends on the its IPAM.
I was setup the coil natgateway on the kind created cluster according to the READ.ME command.
but I encountered some CNI issues. There are some pending pods and core DNS was holding on the ContainerCreating.
when I describe the pods kubectl describe pods coredns-bd6b6df9f-fmgd6 -n kube-system
It's show
Would you like to share some experience about how to trouble shooting this issue?