Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

fix: update kubeone.yaml #20

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions kubernetes-cluster-kubeone/terraform/kubeone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,3 @@ versions:
cloudProvider:
hetzner: {}
external: true

clusterNetwork:
cni:
external: {}

addons:
enable: true
addons:
- name: calico-vxlan
params:
MTU: "0" # auto-detect MTU
14 changes: 14 additions & 0 deletions kubernetes-cluster-kubeone/terraform/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ else
echo -e "Terraform initialized: \033[32m✔️\033[0m"
fi

# check if kubeone is installed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to use one specific version?

if ! command -v kubeone &> /dev/null; then
echo "Installing Kubeone..."
curl -sfL https://get.kubeone.io | sh
if ! command -v kubeone &> /dev/null; then
echo "unable to install kubeone please go to https://docs.kubermatic.com/kubeone/v1.7/tutorials/creating-clusters/ and install it"
exit 1
fi
# remove kubeone folder once if it was installed
find . -type d -name "kubeone_*" -exec rm -rf {} +
fi

echo -e "kubeone: \033[32m✔️\033[0m"

# Copy terraform.tfvars.example to terraform.tfvars if it does not exists
if [ -e "terraform.tfvars.example" ] && [ ! -e "terraform.tfvars" ]; then
cp terraform.tfvars.example terraform.tfvars
Expand Down