0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

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-12 16:48:23 +01:00 committed by Franz Pletz
parent 1f49c2160a
commit 466beb0214
No known key found for this signature in database
GPG key ID: 846FDED7792617B4
5 changed files with 78 additions and 9 deletions

View file

@ -411,6 +411,7 @@ in
name = "etcd";
CN = top.masterAddress;
hosts = [
"etcd.local"
"etcd.${top.addons.dns.clusterDomain}"
top.masterAddress
cfg.advertiseAddress