Add systemd timer to upgrade gitlab weekly

This commit is contained in:
Jonas Juselius
2018-10-17 10:38:28 +02:00
parent bf48649690
commit cce9aa825b

View File

@@ -77,7 +77,12 @@ in
10.253.18.100 gitlab.cluster.local 10.253.18.100 gitlab.cluster.local
10.253.18.100 baywash.cluster.local 10.253.18.100 baywash.cluster.local
''; '';
systemd.services.gitlab-upgrade = {
description = "Upgrade gitlab by zapping pod";
startAt = "Sun 09:00:00";
script = "kubectl delete pods -n gitlab --all";
path = [ pkgs.kubectl ];
};
}; };
k0-1 = cluster.server "10.253.18.101" "k0-1" "etcd1"; k0-1 = cluster.server "10.253.18.101" "k0-1" "etcd1";