Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Using cni-migration for migration with "plain" Calico as CNI #2

Open
brandshaide opened this issue Nov 27, 2020 · 3 comments
Open

Using cni-migration for migration with "plain" Calico as CNI #2

brandshaide opened this issue Nov 27, 2020 · 3 comments

Comments

@brandshaide
Copy link

brandshaide commented Nov 27, 2020

First of all thank you so much for your aweseome work 馃憤 and your blog post on the website of Cilium!
I'd like to use cni-migration for migrating a k8s-cluster to Cilium as the only CNI (I'd like to avoid CNI-chaining) - as I'm having just Calico as CNI and not Canal (Calico on top of Flannel) as in your scenario.

If I understand it correcly, basically all I have to do is to adapt the resources (multus.yaml) and in particular:

  • ConfigMap multus-cni-config to reflect the definition of Calico by changing/adopting cni-conf-flannel.json:
cni_network_config: |-
    {
      "name": "k8s-pod-network",
      "cniVersion": "0.3.0",
      "plugins": [
        {
          "type": "calico",
          "log_level": "info",
          "datastore_type": "kubernetes",
          "nodename": "__KUBERNETES_NODE_NAME__",
          "mtu": __CNI_MTU__,
          "ipam": {
            "type": "host-local",
            "subnet": "usePodCidr"
          },
          "policy": {
              "type": "k8s"
          },
          "kubernetes": {
              "kubeconfig": "__KUBECONFIG_FILEPATH__"
          }
        },
        {
          "type": "portmap",
          "snat": true,
          "capabilities": {"portMappings": true}
        }
      ]
    }

As well as change DaemonSet for calico in the config.yaml

But not quite sure if there's more to it.

@JoshVanL
Copy link
Contributor

JoshVanL commented Dec 1, 2020

Hi @brandshaide, although that seems sane, I won't be able to give you any guarantees that this will work. Please try this on demo clusters first and be confident it works. Use at your own risk 馃槃

@brandshaide
Copy link
Author

Hi @brandshaide, although that seems sane, I won't be able to give you any guarantees that this will work. Please try this on demo clusters first and be confident it works. Use at your own risk 馃槃

Thanks for your answer @JoshVanL - of course I'll try on a sandbox cluster first 馃槤 I'll let you know...

@movd
Copy link

movd commented Jun 30, 2021

Hi @brandshaide, did you try the migration from plain calico with this tool and have any findings you like to share?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants