Commit graph

334 commits

Author SHA1 Message Date
illustris 814015be43
nixos/hadoop: fix HBase 2024-12-20 12:30:03 +05:30
Sandro 12c53e4e68
nixos/hadoop: fix, hadoop: 3.4.0 -> 3.4.1 (#364992) 2024-12-17 23:56:12 +01:00
Christina Sørensen 5d48167f78
nixos/kubernetes/kubelet: Fix sandbox image load on containerd 2.x (#364558) 2024-12-14 12:45:14 +01:00
illustris c62ec80d1f
hadoop, nixos/hadoop, nixosTests/hadoop: nixfmt 2024-12-14 00:31:48 +05:30
illustris bdd10c641e
nixos/hadoop: fix failing yarn tests 2024-12-13 23:18:14 +05:30
illustris 61dd3fdae2
nixos/hadoop: fix lib function calls 2024-12-13 23:12:15 +05:30
Sarah Brofeldt 278f0be608 nixos/kubernetes/kubelet: Fix sandbox image load on containerd 2.x 2024-12-13 10:21:12 +01:00
Robert Rose 759d2b8646 nixos/k3s: make assertions about missing configuration options warnings
It is possible to configure k3s in various ways (cli flags, env
variables, single config file, multiple config files) and everything is
merged together in a final config. The nixos module cannot know if a
configuration option that is missing from the module point of view is
supplied in another way, so it shouldn't assert missing configuration
options.
2024-12-11 22:29:21 +01:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Philip Taron 0311f6c40e
treewide/nixos: remove with lib; part 5 (#335647) 2024-12-09 16:04:21 -08:00
Marcus Ramberg 37da609352
nixos/k3s: add nftables to Path of k3s service (#360796) 2024-12-09 21:45:25 +01:00
nicoo d0e6b0e170 dockerTools.pullImage: accept hash parameter 2024-12-09 14:28:24 +01:00
RMT 7ece479f39
nixos/k3s: add extraKubeProxyConfig option to add nftables to k3s's path 2024-12-08 23:27:37 +08:00
Felix Buehler c41bc079d1 nixos/services.kubernetes.scheduler: remove with lib; 2024-12-08 13:21:50 +01:00
Felix Buehler ac653187c5 nixos/services.kubernetes: remove with lib; 2024-12-08 13:21:50 +01:00
Felix Buehler 697d1c3660 nixos/services.kubernetes.controllerManager: remove with lib; 2024-12-08 13:21:50 +01:00
Felix Buehler e75e6693b7 nixos/services.kubernetes.apiserver: remove with lib; 2024-12-08 13:21:50 +01:00
Felix Buehler 42a84adc1c nixos/services.kubernetes.addonManager: remove with lib; 2024-12-08 13:21:50 +01:00
Felix Buehler c1109e87b0 nixos/services.hadoop.yarn: remove with lib; 2024-12-08 13:21:49 +01:00
Felix Buehler e7e4c15a19 nixos/services.hadoop.hdfs: remove with lib; 2024-12-08 13:21:49 +01:00
Felix Buehler decec5eaa3 nixos/services.hadoop.hbase*: remove with lib; 2024-12-08 13:21:49 +01:00
Felix Buehler e5c3196d17 nixos/services.hadoop: remove with lib; 2024-12-08 13:21:49 +01:00
Felix Buehler ddcd8d565e nixos/services.corosync: remove with lib; 2024-12-08 13:21:49 +01:00
Felix Buehler 400d31aeb5 nixos/services.spark: remove with lib; 2024-09-15 10:43:48 +02:00
Felix Buehler 7e25c525fe nixos/services.rke2: remove with lib; 2024-09-15 10:43:48 +02:00
Felix Buehler 92566faf1c nixos/services.patroni: remove with lib; 2024-09-15 10:43:47 +02:00
Felix Buehler 7b141e6b8f nixos/services.pacemaker: remove with lib; 2024-09-15 10:43:47 +02:00
Felix Buehler 980a655feb nixos/services.kubernetes.addons.dns: remove with lib; 2024-09-15 10:43:47 +02:00
Felix Buehler 6ebec4f097 nixos/services.k3s: remove with lib; 2024-09-15 10:43:47 +02:00
Sarah Brofeldt 8a508485c4
nixos/kubernetes: add extraConfig to kubelet config (#338526) 2024-09-08 20:35:46 +02:00
Sarah Brofeldt a1863c871e nixos/kubernetes: amend dns addon clusterDns list
With 24.11, this is the required type, and we rely on this for the NixOS
tests
2024-09-01 15:13:11 +02:00
Tristan Gosselin-Hane 2d54b2b048 nixos/kubernetes: allow setting multiple kubelet dns resolvers
The current kubernetes module only allows you to set a single DNS
resolver for the kubelet. Historically, this has not mattered as the
value was passed to a cli argument as a string and as per the kubelet's
configuration parsing mechanism, multiple values could be passed as a
comma-delimited string. However, recently, the module was refactored to
make configure kubernetes components via configuration files rather than
the deprecated command-line arguments. These files more strongly-typed
than CLI arguments and to pass multiple values, one must define a list
in the file. When this change was made, an incorrect assumption was made
that only a single DNS server could be specified and forced a
single-item list into this configuration file. We need to introduce a
breaking change to the module in order to allow the user to supply their
own list with however many dns resolvers they wish to use.
2024-08-30 22:17:00 -04:00
Tristan Gosselin-Hane 5a03aa5a45 nixos/kubernetes: add extraConfig to kubelet config
Every now and then, kubernetes adds new configuration parameters to the
kubelet configuration. Since this is defined using a nix attrset which
is then converted to json/yaml, it would be nice to have an escape hatch
similar to the extraOpts one that exists for additional CLI arguments.
The typical use case would be to configure new settings before they are
officially supported in the nixos module.
2024-08-30 22:12:40 -04:00
Felix Buehler bff67892a7 nixos/services.kubernetes.flannel: remove with lib; 2024-08-30 00:30:38 +02:00
superherointj 3a158316b8
Merge pull request #332183 from codedownio/k3s-containerd-config
nixos/k3s: add containerdConfigTemplate option
2024-08-13 04:03:59 -03:00
Tom McLaughlin 81c0783c0e nixos/k3s: add containerdConfigTemplate option 2024-08-12 14:58:18 -07:00
Rick van Schijndel 0a21feb643
Merge pull request #327842 from cafkafk/kubernetes-feature-gate-refactor
nixos/kubernetes: refactor feature gates to attrsOf bool, making it possible to disable featureGates
2024-08-09 08:24:47 +02:00
Christina Sørensen 32ca66f3ed
nixos/kubernetes: refactor feature gates to attrsOf bool, making it possible to disable featureGates
This is a breaking change, requiring users of `featureGates` to change
from a `listOf str` to `attrsOf bool`.

Before:
```nix
featureGates = [ "EphemeralContainers" ];
extraOpts = pkgs.lib.concatStringsSep " " (
[
  "--container-runtime=remote"
  ''--feature-gates="CSIMigration=false"''
});
```

After:
```nix
featureGates = {EphemeralContainers = true; CSIMigration=false;};
```

This is much nicer, and sets us up for later work of migrating to
configuration files for other services, like e.g. has been happening
with kubelet (see: #290119).

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-08-01 07:51:34 +02:00
Robert Rose 3ac993566c nixos/k3s: add test for airgap images import
Add a nixos test that imports the airgap images
archive and checks whether all expected images are
successfully loaded by k3s.
2024-07-30 21:14:25 +02:00
Florian 2c5b304712
Merge pull request #219942 from vsharathchandra/druid_nix_module
nixos/druid: init module and package
2024-07-28 11:02:06 +02:00
sharath.v 4bfc173d8f nixos/druid: init module 2024-07-28 06:54:13 +00:00
❄️ 5f2a6de6f9
Merge pull request #328385 from rorosen/k3s-kubelet-config
nixos/k3s: add options for graceful node shutdown and kubelet config
2024-07-25 10:19:16 -03:00
Robert Rose c58c1e8f55 nixos/k3s: add options for graceful node shutdown and kubelet config
Allow to set kubelet configuration parameters
via an option. Additionally, expose the
respective options for graceful node
shutdown directly, as it is anticipated to
be used frequently.
2024-07-19 20:28:00 +02:00
Sarah Brofeldt 54fbcf1be8
Merge pull request #321632 from PedroRegisPOAR/kubernetes-mkCert-drops-nogroup-as-default
nixos/kubernetes: adds argument to mkCert defaulting to kubernetes group
2024-07-19 12:49:49 +02:00
Robert Rose cc2790ff1e nixos/k3s: accept a list of extraFlags
Accept a list of strings for the extraFlags
option in addition to the previous single
string.
2024-07-16 08:20:32 +02:00
superherointj bbc168ab4c k3s: use team for maintainers 2024-07-12 09:30:38 -03:00
Marcus Ramberg 72249a0d35
Merge pull request #275180 from rorosen/extend-k3s-module 2024-07-12 12:02:32 +02:00
Jonas Chevalier 87fa27e3aa
Merge pull request #321410 from mogeko/rke2
rke2: add killall script
2024-07-11 12:15:24 +02:00
Paul-Henri Froidmont bca32a4163
nixos/patroni: remove raft 2024-07-04 10:22:19 +02:00
Robert Rose a64423c745 nixos/k3s: extend k3s module
This contribution extends the k3s module to
enable the usage of Helm charts and container
images in air-gapped environments. Additionally,
the manifests option allows to specify arbitrary
manifests that are deployed by k3s automatically.
It is now possible to deploy Kubernetes workloads
using the k3s module.
2024-06-25 17:09:12 +02:00