summaryrefslogtreecommitdiff
path: root/playbooks.d
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2024-06-24 17:11:07 +0200
committerPatrick Spek <p.spek@tyil.nl>2024-06-24 17:11:07 +0200
commit9a8cb575776dadf3eeb03cc7195fc9fd00e5c797 (patch)
tree96ba39a14b4430da5c84124703946be6d401b4e9 /playbooks.d
parent55bbbe621cdd206992f6dc864c410d625ca4aa22 (diff)
Give up on dualstack k3s cluster
Diffstat (limited to 'playbooks.d')
-rw-r--r--playbooks.d/k3s-master/playbook.bash20
-rw-r--r--playbooks.d/k3s-node/playbook.bash11
2 files changed, 4 insertions, 27 deletions
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