nixos/kubernetes: let flannel use kubernetes as storage backend

+ isolate etcd on the master node by letting it listen only on loopback
+ enabling kubelet on master and taint master with NoSchedule

The reason for the latter is that flannel requires all nodes to be "registered"
in the cluster in order to setup the cluster network. This means that the
kubelet is needed even at nodes on which we don't plan to schedule anything.
This commit is contained in:
Johan Thomsen
2019-02-20 21:08:56 +01:00
committed by Franz Pletz
parent 1f49c2160a
commit 466beb0214
5 changed files with 78 additions and 9 deletions
-1
View File
@@ -65,7 +65,6 @@ let
}
(optionalAttrs (any (role: role == "master") machine.roles) {
networking.firewall.allowedTCPPorts = [
2379 2380 # etcd
443 # kubernetes apiserver
];
})