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 Address must resolve to the master on creation.
   # When using 'easyCerts = true;', the IP address must resolve to the master at the time of creation.  
# So use simply 127.0.0.1 in that case. Otherwise you will have errors like this https://github.com/NixOS/nixpkgs/issues/59364
  # 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";