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

Commit

Permalink
fix: update kubeone.yaml (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Javlopez authored Jan 22, 2024
1 parent ecbf5c0 commit 690d377
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
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
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

0 comments on commit 690d377

Please sign in to comment.