From 07822ea3f2239cf9cd3335ad2d7fb0aab7a3e1dc Mon Sep 17 00:00:00 2001 From: makefunstuff Date: Thu, 18 Jul 2024 22:09:37 +0300 Subject: infra updates --- terraform/configure-k3s.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 terraform/configure-k3s.sh (limited to 'terraform/configure-k3s.sh') diff --git a/terraform/configure-k3s.sh b/terraform/configure-k3s.sh new file mode 100755 index 0000000..76076d7 --- /dev/null +++ b/terraform/configure-k3s.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# Get the IP addresses from Terraform output +MASTER_IP=$(terraform output -json k8s_node_ips | jq -r '.[0]') +WORKER_IPS=$(terraform output -json k8s_node_ips | jq -r '.[1,2]') + +# Set up the master node +ssh ubuntu@$MASTER_IP <