Skip to content

Conversation

claudiubelu
Copy link
Contributor

Updated the install.sh and disable scripts, based on the upstream versions.

Also verify you have:

There are a few issues with the kube-ovn addon:

- While enabling, it may timeout while waiting for the Calico pods to
  disappear. This may happen if its service account / cluster role /
  cluster role binding gets deleted, it can no longer fetch
  ClusterInformation. We're now removing them beforehand, and waiting
  for them to disappear.
- The CNI_CONF_DIR should be /var/snap/microk8s/current/args/cni-network
- When disabling, we should remove the 01-kube-ovn.conflist file from
  $CNI_CONF_DIR, otherwise kube-ovn may be used for future pods, even
  though the kube-ovn addon is not enabled.
- When disabling, reenable the default CNI and rollout the CoreDNS
  deployment, so it can use the default CNI.
- POD_CIDR, POD_GATEWAY, SVC_CIDR, JOIN_CIDR are not configurable, which
  may conflict with a node's CIDR, resulting in the kube-ovn not
  deploying properly.
The test will enable the kube-ovn addon and test the network
connectivity by creating an nginx pod and service, and try to
connect to that nginx through the cluster IP.

Afterwards, the test will disable the addon, and test the network
connectivity again.
@bschimke95 bschimke95 merged commit 10e1eb1 into canonical:main Apr 11, 2025
4 checks passed
@claudiubelu claudiubelu mentioned this pull request Apr 11, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants