Skip to content
Snippets Groups Projects
Commit 7eabf861 authored by Andri Joos's avatar Andri Joos :blush:
Browse files

fixup! add distribution.create_cluster

parent fd731641
No related branches found
No related tags found
No related merge requests found
......@@ -15,4 +15,21 @@ k3d cluster create distribution \
--kubeconfig-update-default=true \
--kubeconfig-switch-context=true
calico_dir="/tmp/calico"
git clone https://git.420joos.dev/kubernetes-cluster/networking/calico.git "${calico_dir}"
calico_repo_name="projectcalico"
helm repo add ${calico_repo_name} https://docs.tigera.io/calico/charts
helm upgrade calico ${calico_repo_name}/tigera-operator \
--install \
--version "${CALICO_VERSION:-v3.29.2}" \
--namespace ${NAMESPACE} \
--create-namespace \
--values "${calico_dir}/values.yaml" \
--wait \
--set "installation.calicoNetwork.ipPools[0].cidr=${CLUSTER_CIDR}"
helm repo remove ${calico_repo_name}
rm -rf "${calico_dir}"
# TODO: setup cluster for usage (agent & maybe calico)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment