Commit Graph
83 Commits
Author SHA1 Message Date
Johan Thomsen 7e310dd8e8 nixos/containerd: StartLimit* options must be in the unit-section
also, raise limits to ensure reasonable startup time, now that StartLimits are actually enforced
2021-05-17 06:17:18 +10:00
Johan Thomsen 2142f88526 nixos/containerd: sanitize StateDirectory and RuntimeDirectory 2021-05-17 06:17:18 +10:00
Johan Thomsen 8a6e130c71 nixos/ceph: fix tests
- 512 -> 1024MB vm memory (had sporadic oom-failures with the lower setting)

- set "auth_allow_insecure_global_id_reclaim=false" as described here: https://docs.ceph.com/en/latest/security/CVE-2021-20288/
2021-04-22 13:17:57 +02:00
Johan Thomsen c3bd75c752 ceph: 15.2.10 -> 16.2.1 2021-04-22 13:17:57 +02:00
Johan Thomsen 7b5c38e973 nixos/kubernetes: docker -> containerd
also, nixos/containerd: module init
2021-03-07 12:51:14 +10:00
Johan Thomsen 793e77d4e2 dockertools: sort tar-members by name for reproducibility 2021-02-18 09:51:41 +01:00
Johan Thomsen 423b9b2a70 ceph: 15.2.7 -> 15.2.8 2021-01-13 15:51:18 +01:00
Johan Thomsen 8cbf5337dc kubernetes: 1.19.4 -> 1.19.5 2020-12-10 12:01:32 +01:00
Johan Thomsen 1096a6d77e vector: include the "unix" cargo feature if targetPlatform isUnix 2020-11-18 16:19:14 +01:00
Johan Thomsen 39eadbb3c4 kubernetes: 1.19.3 -> 1.19.4 2020-11-12 13:07:16 +01:00
Johan Thomsen a03c8a8f35 vector: add sinks, sources and transforms as nixpkgs default features
Don't include transform-geoip unless this feature is explicitly selected
2020-10-26 17:21:11 +01:00
Johan Thomsen c1fa775058 kubernetes: 1.19.1 -> 1.19.3 2020-10-18 21:28:23 +02:00
Johan Thomsen 8f5949fd46 nixos/initrd-ssh: set more defensive pemissions on sshd test key
It looks like the test sshd key can never be used, because of too open
permissions. My guess is that the current test script works fine once
the user defined ssh-key has been copied into initrd.

At "nixos-install" however, the user specified host key is not present
in initrd yet and validation fails.

fixes #91486
2020-09-30 15:47:49 +02:00
Johan ThomsenandRobert Hensing f5db415e2f nixos/tests/dockerTools: add test for running non-root containers with buildLayeredImage
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2020-07-31 10:14:07 +02:00
Johan Thomsen 9f86685cc7 dockerTools: fix permissions on /nix/store 2020-07-30 16:20:50 +02:00
Johan Thomsen 4f39f93d8e nixos/ceph: (test) ceph now has device monitoring and pg_autoscaler enabled by default
- the pg_autoscaler will force new empty pools down to 32 pgs
- device monitoring metrics consumes 1 pool with 1 pg
2020-07-11 14:12:42 +02:00
Johan Thomsen 0dea5dff36 ceph: 14.2.10 -> 15.2.4 2020-07-11 14:12:42 +02:00
Johan Thomsen 1c84b0e916 kubernetes: 1.18.4 -> 1.18.5 2020-06-27 16:56:16 +02:00
Johan Thomsen 6448b903aa morph: 1.4.0 -> 1.5.0
also; make package more patchable by delaying to postPatch and not
referring to $src
2020-05-27 14:49:33 +02:00
Johan Thomsen f150c2bd22 kubeval: 0.14.0 -> 0.15.0
Also, add myself as maintainer
2020-05-07 09:10:55 +02:00
Johan Thomsen 66556afb5a kubernetes: 1.16.5 -> 1.17.3 2020-02-18 15:34:09 +01:00
Johan Thomsen a96ed5d704 kubernetes: 1.16.4 -> 1.16.5 2020-01-22 00:04:04 -08:00
Johan Thomsen b263e57c57 scripts/gce: make image name configurable 2019-10-25 10:10:42 +02:00
Johan Thomsen 7a61cd29bd ceph: 14.2.3 -> 14.2.4 2019-09-26 14:52:02 +02:00
Johan Thomsen b21a3356f0 kubernetes: 1.15.3 -> 1.15.4 2019-09-18 22:38:10 +02:00
Johan Thomsen b3de7e26fd morph: 1.3.0 -> 1.3.1 2019-09-10 17:06:23 +02:00
Johan Thomsen a932f966c3 morph: 1.2.0 -> 1.3.0 2019-09-07 00:14:41 +02:00
Johan Thomsen 161855c033 ceph: 14.2.1 -> 14.2.3 2019-09-05 14:33:29 +02:00
Johan Thomsen d891283aa4 nixos/kubernetes: make module compatible with v1.15.x 2019-09-04 17:38:41 +02:00
Johan Thomsen 10e416ce61 kubernetes: 1.14.3 -> 1.15.3 2019-09-04 17:38:41 +02:00
Johan Thomsen 00975b5628 Revert "Merge pull request #56789 from mayflower/upstream-k8s-refactor"
This reverts commit 7dc6e77bc2, reversing
changes made to bce47ea9d5.

Motivation for the revert in #67563
2019-09-04 17:37:02 +02:00
Johan Thomsen fb22d67fa7 ceph: 13.2.4 -> 14.2.1
* remove kinetic
* release note
* add johanot as maintainer

nixos/ceph: create option for mgr_module_path
  - since the upstream default is no longer correct in v14

* fix module, default location for libexec has changed
* ceph: fix test
2019-09-04 16:17:18 +02:00
Johan Thomsen 585c9e2b10 python3Packages.cherrypy: fix tests after upgrade to pytest5 2019-09-03 12:52:57 +02:00
Johan Thomsen 298439f4fa kinetic-cpp-client: use openssl_1_0_2 2019-08-29 11:08:10 +02:00
Johan Thomsen bbd4a0c100 nixos/gitlab: gitlab-workhorse requires exiftool on path to process uploaded images 2019-07-22 16:41:16 +00:00
Johan Thomsen 1fd9ac6ff6 tomcat85: 8.5.35 -> 8.5.42 2019-06-21 15:52:24 +02:00
Johan Thomsen e62883d5cf tomcat9: 9.0.13 -> 9.0.21 2019-06-21 15:40:02 +02:00
Johan Thomsen 415e8e5820 kubernetes: 1.14.2 -> 1.14.3 2019-06-07 10:14:00 +02:00
Johan Thomsen e8c22132cd kubernetes: 1.14.0 -> 1.14.1 2019-04-30 15:37:04 +02:00
Johan Thomsen 29bf511ef9 nixos/kubernetes: fix control-plane-online prestart dependency
The kubeconfig provided to the kubernetes-control-plane-online.service
is invalid. However, the apiserver /healthz endpoint can be accessed without auth so it's
simpler to just use curl for that.
2019-04-29 17:42:16 +02:00
Johan Thomsen e76f30e5a2 kubernetes: 1.13.4 -> 1.13.5 2019-03-28 11:28:13 +01:00
Johan Thomsen 292c1ce7ff nixos/gitlab: added gzip and bzip2 as dependencies for gitaly 2019-03-12 15:04:45 +00:00
Johan Thomsen 968d3c9c05 nixos/gitlab: improved test to check download of repository archives 2019-03-12 15:04:45 +00:00
Johan Thomsen 80c4fd4f85 nixos/kubernetes: minor module fixes
- mkDefault etcd instance name
- make sure ca-cert in mkKubeConfig can be overriden
- fix controller-manager "tls-private-key-file" flag name
2019-03-08 09:18:51 +01:00
Johan Thomsen b5c81d0154 certmgr: 1.6.1 -> 1.6.4 2019-02-25 17:26:00 +01:00
Johan Thomsen 6045068f6c nixos/kubernetes: (test) Fix race-condition in test cases. docker load might fail due to dockerd restarting 2019-02-20 21:08:57 +01:00
Johan Thomsen 7028fac35b nixos/kubernetes: use system.path to handle dependency on flannel subnet.env
The current postStart step on flannel causes flannel.service to
sometimes hang, even when it's commanded to stop.
2019-02-20 21:08:56 +01:00
Johan Thomsen 466beb0214 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.
2019-02-20 21:08:56 +01:00
Johan Thomsen 1f49c2160a nixos/kubernetes: CoreDNS privileges has to be assigned by addon manager bootstrap
- because the kube-addon-manager drops most of its privileges after
startup.
2019-02-20 21:08:55 +01:00
Johan Thomsen 6334796370 nixos/kubernetes: use the certmgr-selfsigned variant 2019-02-20 21:08:54 +01:00
Johan Thomsen 8d62d7972f nixos/kubernetes: adding manual section for kubernetes and writing release note for NixOS 19.03 2019-02-20 21:08:51 +01:00
Johan Thomsen e2380e79e1 nixos/kubernetes: major module refactor
- All kubernetes components have been seperated into different files
- All TLS-enabled ports have been deprecated and disabled by default
- EasyCert option added to support automatic cluster PKI-bootstrap
- RBAC has been enforced for all cluster components by default
- NixOS kubernetes test cases make use of easyCerts to setup PKI
2019-02-20 21:08:01 +01:00
Johan Thomsen f738618637 nixos/kubernetes: dashboard 1.8.3 -> 1.10.1
- add option to specify extra cmdline arguments to the dashboard
2019-02-18 17:34:30 +01:00
Johan Thomsen 5af74e19e6 nixos/kubernetes: coredns 1.2.5 -> 1.3.1 2019-02-18 17:34:30 +01:00
Johan Thomsen 94136fdc1b nixos/flannel: node name needs to be configured for flannel to work with kubernetes storage backend 2019-02-13 17:17:52 +01:00
Johan Thomsen adc9da6178 nixos/flannel: fix flannel nixos test, add test to all-tests.nix 2019-02-12 18:26:39 +01:00
Johan Thomsen 9522ca5ce9 nixos/flannel: add options to configure kubernetes as config backend for flannel 2019-02-12 18:26:39 +01:00
Johan Thomsen 302c4df41d nixos/dockerPreloader: guard the entire implemetation with mkIf on image list 2019-02-11 23:35:25 +01:00
Johan Thomsen fa50a42874 flannel: added @johanot (myself) as flannel pkgs maintainer 2019-02-11 11:17:59 +01:00
Johan Thomsen acdae9af95 flannel: 0.6.2 -> 0.11.0 2019-02-11 11:17:13 +01:00
Johan Thomsen c7e3fda020 kube-router: 0.2.3 -> 0.2.5 2019-02-01 11:53:09 +01:00
Johan Thomsen 72eb82b687 certmgr: Add patch for optional trust of self-signed certificates at remote cfssl apiserver 2019-01-24 11:55:49 +01:00
Johan Thomsen d2048b0d7e nixos/kubernetes: don't enable all alpha feature gates for the test cases 2018-12-16 13:41:48 +01:00
Johan Thomsen 1a00b86334 nixos/kubernetes: fix import path of default nixpkgs 2018-12-12 21:30:32 +01:00
Johan Thomsen 015b2b1a35 kube-router: init at 0.2.3 2018-12-06 11:20:21 -05:00
Johan Thomsen 46b11c9d1a morph: init at 1.1.0
- added adamt to maintainers-list.nix
2018-11-18 23:02:37 +01:00
Johan Thomsen eea2db1240 nixos/kubernetes: Added rl-1903 entry documenting kubedns -> coredns 2018-10-31 13:41:04 +01:00
Johan Thomsen 2617b6800d nixos/kubernetes: Replace KubeDNS with CoreDNS 2018-10-31 13:41:04 +01:00
Johan Thomsen 8609055ac2 kubernetes: 1.12.0 -> 1.12.1 2018-10-09 12:41:47 +02:00
Johan Thomsen a91c293aaf kubernetes: 1.11.3 -> 1.12.0
- kubelet CAdvisor port has been removed
2018-09-30 14:49:26 +02:00
Johan Thomsen a49f56c3b1 kubernetes: 1.10.5 -> 1.11.3
Fixed minor issue where kube-addon manager complaints about
/opt/namespace.yaml missing.

Added release notes with reference to Kubernetes 1.11 release notes.

closes #43882
2018-09-12 15:17:02 +02:00
Johan Thomsen 85488545d8 cfssl: Add patch for stripping authkey whitespaces 2018-08-17 13:00:09 +02:00
Johan Thomsen 004e7fb6fd nixos/certmgr: init 2018-08-10 09:56:25 +02:00
Johan Thomsen 505007471d certmgr: init at 1.6.1 2018-08-03 17:35:46 +02:00
Johan Thomsen 7d7c36f8be nixos/cfssl: init
- based on module originally written by @srhb
- complies with available options in cfssl v1.3.2
- uid and gid 299 reserved in ids.nix
- added simple nixos test case
2018-08-03 09:40:32 +02:00
Johan Thomsen 75e71ad216 cfssl: 20170527 -> 1.3.2 2018-07-26 11:20:36 +02:00
Johan Thomsen 205b54ed95 nixos/kubernetes: Added missing dependency, awk, to kube-addon-manager path (#43708) 2018-07-18 10:47:27 +02:00
Johan Thomsen f9ad1cae78 nixos/kubernetes: dashboard lockdown
Kubernetes dashboard currently has cluster admin permissions,
which is not recommended.

- Renamed option "services.kubernetes.addons.dashboard.enableRBAC" to "services.kubernetes.addons.dashboard.rbac.enable"
- Added option "services.kubernetes.addons.dashboard.rbac.clusterAdmin", default = false.
- Setting recommended minimal permissions for the dashboard in accordance with https://github.com/kubernetes/dashboard/wiki/Installation
- Updated release note for 18.09.
2018-06-19 22:28:00 +02:00
Johan Thomsen 8d7ea96a13 nixos/kubernetes: improvements
- Added option 'cni.configDir' to allow for having CNI config outside of nix-store
  Existing behavior (writing verbatim CNI conf-files to nix-store) is still available.

- Removed unused option 'apiserver.publicAddress' and changed 'apiserver.address' to 'bindAddress'
  This conforms better to k8s docs and removes existing --bind-address hardcoding to 0.0.0.0

- Fixed c/p mistake in apiserver systemd unit description

- Updated 18.09 release notes to reflect changes to existing options
  And fixed some typos from previous PR

- Make docker images for Kubernetes Dashboard and kube-dns configurable
2018-06-12 22:47:32 +02:00
Johan Thomsen 38fc5b3200 kubernetes: 1.10.3 -> 1.10.4 2018-06-12 13:53:46 +02:00
Johan Thomsen df54c25f5a Kubernetes:
- Added information regarding breaking changes to release note for 18.09
- Changed golang version comment in kubernetes package
- Added @johanot to maintainers list
2018-05-26 11:19:12 +02:00
Johan Thomsen 3e3917bb9e kubernetes: 1.10.0 -> 1.10.3 2018-05-25 10:50:36 +02:00
Johan Thomsen 41d4bd29ac nixos/keepalived: Implemented vrrp-instance tracking scripts and interfaces.
Tracking scripts in particular, cannot be included in extraOpts, because script declaration has to be above script usage in keepalived.conf.
Changes are fully backward compatible.
2018-05-08 11:25:53 +02:00