From 4321d78cf85c5f52f7e5407e1424098bf05a22e5 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Sun, 19 Mar 2023 13:57:57 +0100 Subject: [PATCH] Add comments to variables --- kubernetes/defaults/main.yml | 4 +++- kubernetes/templates/k3s/server/config.yaml.jinja2 | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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