CKS Enhancements - Custom CNI Documentation #11692
-
problemI have been recently testing out the CKS enhancements in Cloudstack and have been wondering if anyone happens to have an example CNI configuration for Cilium? Additionally, the Calico example in the documentation doesnt appear to work (at least with the 1.33 prebuilt ISO I was using) Calico example here: ISO I used: I am also using the default CloudStack 4.21 system VM instead of a custom node image. When using the custom CNI config, I get the following error in the control node's cloud-init-output.log:
I pulled the userdata files from the control node in question and base64 decoded them: I can see this if registry is defined thing, but am not sure whether that means something is not being templated correctly or not:
versionscloudstack-management 4.21.0.0-1 The steps to reproduce the bug
What to do about it?Please provide a working example of a custom CNI configuration for CloudStack 4.21.0. Either calico or cilium (preferred since I am hoping to build clusters with cilium). |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
>>I can see this if registry is defined thing, but am not sure whether that means something is not being templated correctly or not: This is the issue. Based on the userdata files you shared, they are clearly not in yaml format ( at the line where the failure is). Looks like the line where the failure is jinja2 template format. AFAIK this should be translated or rendered by Cloudstack. Unfortunately, I don't have any sample custom CNI config. I will try to see if I can find any. Meanwhile, can you confirm on how debian user login worked for you? Was it through ssh or password based login? this is not working for me to check the cloud-init logs from my repro |
Beta Was this translation helpful? Give feedback.
-
@jdhirst Have you specified BGP peer and AS in the cloudstack zone https://docs.cloudstack.apache.org/en/4.21.0.0/adminguide/networking/dynamic_static_routing.html |
Beta Was this translation helpful? Give feedback.
-
@jdhirst As mentioned by @kiranchavala the failure when using example calico CNI could be as a result of missing Routed Network and BGP config. Here is a sample configuration for the Cilium CNI network you were looking for. I tested this in my lab environment and was able to successfully deploy a CKS cluster. This configuration uses the VXLAN overlay mode for pod networking. As you can see, I have hardcoded the cilium version Please treat this as a reference only. The configuration may require adjustments based on your environment, Kubernetes version, and operational constraints. You should thoroughly test in a non-production setup before rolling it out in production, as CNI changes can directly affect cluster networking and workload availability.
|
Beta Was this translation helpful? Give feedback.
@jdhirst As mentioned by @kiranchavala the failure when using example calico CNI could be as a result of missing Routed Network and BGP config.
Here is a sample configuration for the Cilium CNI network you were looking for. I tested this in my lab environment and was able to successfully deploy a CKS cluster. This configuration uses the VXLAN overlay mode for pod networking. As you can see, I have hardcoded the cilium version
Please treat this as a reference only. The configuration may require adjustments based on your environment, Kubernetes version, and operational constraints. You should thoroughly test in a non-production setup before rolling it out in production, as CNI changes can d…