Kubernetes: Difference between revisions
m Category:NixOS Manual added |
Add more nix-based kubernetes tools |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 27: | Line 27: | ||
Add to your <code>configuration.nix</code>: | Add to your <code>configuration.nix</code>: | ||
<syntaxhighlight lang=nix> | <syntaxhighlight lang="nix"> | ||
{ config, pkgs, ... }: | { config, pkgs, ... }: | ||
let | let | ||
# When using easyCerts=true the IP | # When using 'easyCerts = true;', the IP address must resolve to the master at the time of creation. | ||
# In this case, set 'kubeMasterIP = "127.0.0.1";'. Otherwise, you may encounter the following issue: https://github.com/NixOS/nixpkgs/issues/59364. | |||
kubeMasterIP = "10.1.1.2"; | kubeMasterIP = "10.1.1.2"; | ||
kubeMasterHostname = "api.kube"; | kubeMasterHostname = "api.kube"; | ||
Line 336: | Line 336: | ||
There are various community projects aimed at facilitating working with Kubernetes combined with Nix: | There are various community projects aimed at facilitating working with Kubernetes combined with Nix: | ||
* [https://github.com/saschagrunert/kubernix kubernix]: simple setup of development clusters using Nix | * [https://github.com/saschagrunert/kubernix kubernix]: simple setup of development clusters using Nix | ||
* [https://kubenix.org/ kubenix] - [https://github.com/hall/kubenix GitHub (updated 2023)] | * [https://kubenix.org/ kubenix] - [https://github.com/hall/kubenix GitHub (updated 2023)] | ||
* [https://github.com/justinas/nixos-ha-kubernetes nixos-ha-kubernetes] | * [https://github.com/justinas/nixos-ha-kubernetes nixos-ha-kubernetes] | ||
* [https://github.com/nix-community/nixhelm nixhelm] - generates nix expressions from a selection of helm charts | |||
* [https://github.com/reMarkable/helmfile-nix helmfile-nix] - wrapper around [[Helm and Helmfile|Helmfile]] to allow writing helmfiles in the nix language | |||
== References == | == References == |