Major revamp and restructuring of k8s setup:

* replicated etcd setup for redundancy
* use Flannel network overlay
* naming conventions
* new repo structure
* etc.
This commit is contained in:
Jonas Juselius
2017-07-09 21:04:53 +02:00
parent fb753ab30d
commit b162a82416
23 changed files with 306 additions and 275 deletions

18
git.nix
View File

@@ -1,7 +1,19 @@
{
git01 = { config, lib, pkgs, ... }:
{
deployment.targetHost = "10.253.18.103";
imports = [ ./git01/configuration.nix ];
{
deployment.targetHost = "10.253.18.103";
networking.hostName = "git01"; # Define your hostname
imports = [ ./hw/git01.nix ./git01/configuration.nix ];
services.nfs.server = {
enable=true;
exports= ''
/data 10.253.18.104(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0)
/data 10.253.18.100(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0)
/data 10.253.18.102(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0)
/data 10.253.18.101(insecure,rw,sync,no_subtree_check,crossmnt,fsid=0)
'';
};
networking.firewall.allowedTCPPorts = [2049 111 20048];
networking.firewall.allowedUDPPorts = [2049 111 20048];
};
}