Jump to content
Welcome to our new Citrix community!

Manually configured static routes and CIC --feature-node-watch issues as we use CNI Calico


RAPHAEL CHEN

Recommended Posts

Hi:

 

Reference:

https://github.com/citrix/citrix-k8s-ingress-controller/blob/master/docs/network/staticrouting.md#manually-configure-route-on-the-citrix-adc-instance

 

We issue the following commands as instructed by this doc.

# kubectl get nodes -o jsonpath="{range .items[*]}{'podNetwork: '}{.metadata.annotations.projectcalico\.org/IPv4IPIPTunnelAddr}{'\tgateway: '}{.metadata.annotations.projectcalico\.org/IPv4Address}{'\n'}"

 

We've got null value in podNetwork, see below.

podNetwork:     gateway: 172.16.100.81/16
podNetwork:     gateway: 172.16.100.82/16
podNetwork:     gateway: 172.16.100.83/16
podNetwork:     gateway: 172.16.100.84/16
podNetwork:     gateway: 172.16.100.85/16

 

Since we follow Calico quick start guide, overlay has been changed to VXLAN, so null value in podNetwork may be as expected, but the doc did  not get corrected or updated.

# kubectl get nodes -o jsonpath="{range .items[*]}{'podNetwork: '}{.metadata.annotations.projectcalico\.org/IPv4VXLANTunnelAddr}{'\tgateway: '}{.metadata.annotations.projectcalico\.org/IPv4Address}{'\n'}"
podNetwork: 10.245.208.0    gateway: 172.16.100.81/16
podNetwork: 10.245.177.0    gateway: 172.16.100.82/16
podNetwork: 10.245.44.0    gateway: 172.16.100.83/16
podNetwork: 10.245.100.0    gateway: 172.16.100.84/16
podNetwork: 10.245.1.0    gateway: 172.16.100.85/16

 

I'm wondering why our MPX/VPX did not get the correct static routes configured by CIC may caused by the same issue.

CIC just configured the original podNetwork but ignores the current podNetwork assigned by Calico.

 

Hope you can fix this issue asap.

 

Thanks!

 

 

Link to comment
Share on other sites

Hi @raphael1688 ,

 

Regarding CIC's inability to configure static routes on MPX/VPX; it is because CIC expects podCIDR to be present in the spec.podCIDR section of the node. While this works for flannel, it doesn't seem to work for Calico because of the annotations. We are working on the fix.

 

Thanks,

Asparsh

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...