'microk8s configuration location (current vs x1)

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?



Solution 1:[1]

"current" is a link to "x1" location

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 infinite_loop