Kubernetes: Difference between revisions
removed kube-nix which is unrelated to kubernetes but installs a kde groupware. |
m Reworded the warning comment about setting 'easyCerts = true;'. |
||
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"; |