diff --git a/kubernetes/defaults/main.yml b/kubernetes/defaults/main.yml index 414e0ea..7966b04 100644 --- a/kubernetes/defaults/main.yml +++ b/kubernetes/defaults/main.yml @@ -2,13 +2,15 @@ kubernetes: ipPool: ipv4: + # Minimum: /24 cluster_cidr: 10.42.0.0/16 service_cidr: 10.43.0.0/16 ipv6: + # Minimum: /120 cluster_cidr: fd42::/56 service_cidr: fd43::/112 - # Replace - with _ + # Interface to grab node-IPv4/v6 from nodeIp_interface: control_plane: diff --git a/kubernetes/templates/k3s/server/config.yaml.jinja2 b/kubernetes/templates/k3s/server/config.yaml.jinja2 index 3dd95aa..f348279 100644 --- a/kubernetes/templates/k3s/server/config.yaml.jinja2 +++ b/kubernetes/templates/k3s/server/config.yaml.jinja2 @@ -1,5 +1,6 @@ ## Base ## {% if inventory_hostname == groups['kubernetes'][0] %} +# Initialize with internal etcd cluster-init: true {% else %} server: https://{{ groups['kubernetes'][0] }}:6443