Open uhthomas opened 3 years ago
I've been using this hack to work around this:
systemd.services.etcd.preStart = ''${pkgs.writeShellScript "etcd-wait" ''
while [ ! -f /var/lib/kubernetes/secrets/etcd.pem ]; do sleep 1; done
''}'';
@cmacrae
[ERROR] May 24 13:23:52 5dc508ed7c systemd[1]: Starting etcd key-value store...
[ERROR] May 24 13:25:22 5dc508ed7c systemd[1]: etcd.service: start-pre operation timed out. Terminating.
[ERROR] May 24 13:25:22 5dc508ed7c systemd[1]: etcd.service: Control process exited, code=killed, status=15/TERM
[ERROR] May 24 13:25:22 5dc508ed7c systemd[1]: etcd.service: Failed with result 'timeout'.
[ERROR] May 24 13:25:22 5dc508ed7c systemd[1]: Failed to start etcd key-value store.
No luck.
Describe the bug https://github.com/NixOS/nixpkgs/issues/59364 is relevant but has no conclusion.
Kubernetes builds ok now using https://github.com/NixOS/nixpkgs/pull/123741 but the the install does not succeed.
I've tried this on multiple machines and they all report the same thing.
I've tried reinstalling multiple times, and removing relevant dirs but the issue persists.
To Reproduce
Add the following lines to a NixOS host's
configuration.nix
Expected behavior A successful Kubernetes install.
Actual behavior
Additional context Add any other context about the problem here.
Notify maintainers
@johanot @offlinehacker @saschagrunert
Metadata
Maintainer information: