K3s: Difference between revisions
imported>Vater mNo edit summary  | 
				imported>Azazel75  add flannel config  | 
				||
| Line 29: | Line 29: | ||
<syntaxHighlight lang=nix>  | <syntaxHighlight lang=nix>  | ||
   virtualisation.containerd  |    virtualisation.containerd = {  | ||
    enable = true;  | |||
    settings =  | |||
      let  | |||
        fullCNIPlugins = pkgs.buildEnv {  | |||
          name = "full-cni";  | |||
          paths = with pkgs;[  | |||
            cni-plugins  | |||
            cni-plugin-flannel  | |||
          ];  | |||
        };  | |||
      in {  | |||
        plugins."io.containerd.grpc.v1.cri".cni = {  | |||
          bin_dir = "${fullCNIPlugins}/bin";  | |||
          conf_dir = "/var/lib/rancher/k3s/agent/etc/cni/net.d/";  | |||
        };  | |||
      };  | |||
  };  | |||
   # TODO describe how to enable zfs snapshotter in containerd  |    # TODO describe how to enable zfs snapshotter in containerd  | ||
   services.k3s.extraFlags = toString [  |    services.k3s.extraFlags = toString [  | ||