From 9a8cb575776dadf3eeb03cc7195fc9fd00e5c797 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 24 Jun 2024 17:11:07 +0200 Subject: Give up on dualstack k3s cluster --- playbooks.d/k3s-master/playbook.bash | 20 ++++---------------- playbooks.d/k3s-node/playbook.bash | 11 ----------- 2 files changed, 4 insertions(+), 27 deletions(-) (limited to 'playbooks.d') diff --git a/playbooks.d/k3s-master/playbook.bash b/playbooks.d/k3s-master/playbook.bash index 270e0cb..cfd0330 100644 --- a/playbooks.d/k3s-master/playbook.bash +++ b/playbooks.d/k3s-master/playbook.bash @@ -11,24 +11,12 @@ playbook_add() { node-ip: "$(config "$BASHTARD_PLAYBOOK.internal-ip" "127.0.0.1")" bind-address: "$(config "$BASHTARD_PLAYBOOK.bind-address" "0.0.0.0")" cluster-cidr: "$(config "$BASHTARD_PLAYBOOK.cluster-cidr" "172.19.0.0/16")" - service-cidr: "$(config "$BASHTARD_PLAYBOOK.service-cidr" "172.20.0.0/16")" cluster-domain: "$(config "$BASHTARD_PLAYBOOK.cluster-domain" "cluster.local")" - service-node-port-range: "$(config "$BASHTARD_PLAYBOOK.service-node-port-min" "30000")-$(config "$BASHTARD_PLAYBOOK.service-node-port-max" "32767")" - flannel-ipv6-masq: true + service-cidr: "$(config "$BASHTARD_PLAYBOOK.service-cidr" "172.20.0.0/16")" disable: - traefik EOF - if [[ -n "$(config_subkeys "$BASHTARD_PLAYBOOK.flannel.interfaces")" ]] - then - printf "flannel-iface:\n" - - while read -r iface - do - printf -- "- %s\n" "$(config "$BASHTARD_PLAYBOOK.flannel.interfaces.$iface")" - done < <( config_subkeys "$BASHTARD_PLAYBOOK.flannel.interfaces" ) - fi - if [[ -n "$(config "$BASHTARD_PLAYBOOK.external-ip" "")" ]] then printf "%s: \"%s\"\n" "node-external-ip" "$(config "$BASHTARD_PLAYBOOK.external-ip" "")" @@ -38,13 +26,13 @@ playbook_add() { info "$BASHTARD_PLAYBOOK/add" "Installing k3s" curl -sfL https://get.k3s.io | sh -s - server --cluster-init # I hate this - notice "$BASHTARD_PLAYBOOK/add" "Creating data directories" - mkdir -pv -- "$(playbook_path "data")/manifests.d" + #notice "$BASHTARD_PLAYBOOK/add" "Creating data directories" + #mkdir -pv -- "$(playbook_path "data")/manifests.d" notice "$BASHTARD_PLAYBOOK/add" "Waiting for node to become available" { grep -q -m 1 "${BASHTARD_PLATFORM[fqdn]}[[:space:]]\+Ready"; kill $!; } < <(k3s kubectl get node -w) - playbook_sync + #playbook_sync } playbook_sync() { diff --git a/playbooks.d/k3s-node/playbook.bash b/playbooks.d/k3s-node/playbook.bash index bc041df..361c176 100644 --- a/playbooks.d/k3s-node/playbook.bash +++ b/playbooks.d/k3s-node/playbook.bash @@ -44,16 +44,6 @@ playbook_add() { token: "$token" EOF - if [[ -n "$(config_subkeys "$BASHTARD_PLAYBOOK.flannel.interfaces")" ]] - then - printf "flannel-iface:\n" - - while read -r iface - do - printf -- "- \"%s\"\n" "$(config "$BASHTARD_PLAYBOOK.flannel.interfaces.$iface")" - done < <( config_subkeys "$BASHTARD_PLAYBOOK.flannel.interfaces" ) - fi - if [[ -n "$(config "$BASHTARD_PLAYBOOK.external-ip" "")" ]] then printf "%s: \"%s\"\n" "node-external-ip" "$(config "$BASHTARD_PLAYBOOK.external-ip" "")" @@ -67,7 +57,6 @@ playbook_add() { cluster-domain: "$(config "$BASHTARD_PLAYBOOK.cluster-domain" "cluster.local")" service-cidr: "$(config "$BASHTARD_PLAYBOOK.service-cidr" "172.20.0.0/16")" service-node-port-range: "$(config "$BASHTARD_PLAYBOOK.service-node-port-min" "30000")-$(config "$BASHTARD_PLAYBOOK.service-node-port-max" "32767")" - flannel-ipv6-masq: true disable: - traefik EOF -- cgit v1.1