0

I have a microk8s installed on a ubuntu EC2 instance. I have kubernetes 1.21 with calico cni installed. These are installed with snap.

I am trying to enable dual stack(ipv4 and ipv6) for the kubernetes. This requires changing config of kubernetes and calico.

I see there are two locations where these configs are

/var/snap/microk8s/current /var/snap/microk8s/x1

File /var/snap/microk8s/current/args/containerd.toml says

  # 'plugins."io.containerd.grpc.v1.cri".cni' contains config related to cni
  [plugins."io.containerd.grpc.v1.cri".cni]
    # bin_dir is the directory in which the binaries for the plugin is kept.
    bin_dir = "/var/snap/microk8s/x1/opt/cni/bin"

    # conf_dir is the directory in which the admin places a CNI conf.
    conf_dir = "/var/snap/microk8s/x1/args/cni-network"

which means it points to the conf at x1 location.

Which one is active? Why are they in two places?

Which config should I be touching?

infinite_loop
  • 131
  • 1
  • 10

1 Answers1

0

"current" is a link to "x1" location

infinite_loop
  • 131
  • 1
  • 10
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Apr 15 '22 at 08:21