expose cluster & fix flaky test image

This commit is contained in:
David Arnold 2021-05-05 20:40:10 -04:00
parent 2026496ea0
commit 9759a318f5
No known key found for this signature in database
GPG key ID: 6D6A936E69C59D08
5 changed files with 62 additions and 0 deletions

View file

@ -61,6 +61,17 @@ let
};
systemd.extraConfig = "DefaultLimitNOFILE=1048576";
systemd.services.copy-certs = {
description = "Share k8s certificates with host";
script = "cp -rf /var/lib/kubernetes/secrets /tmp/xchg/";
after = [ "kubernetes.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
};
};
}
(mkIf (any (role: role == "master") config.services.kubernetes.roles) {
networking.firewall.allowedTCPPorts = [