Skip to content

Commit

Permalink
check if K3D cluster should get installed
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinlercher authored May 3, 2024
1 parent 70efb90 commit 3f22c1d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions install-k3d-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ set -x
# do we need to set this always? I had DNS issues on the train
export K3D_FIX_DNS=1

k3d cluster create cnp-local-demo \
-p "80:80@loadbalancer" \
-p "443:443@loadbalancer" \
--agents 2 \
--wait
# in github workflows we use the same script but don't want the k3d cluster to get installed
IF [ "${INSTALL_K3D_CLUSTER}" != "false" ] ; then
k3d cluster create cnp-local-demo \
-p "80:80@loadbalancer" \
-p "443:443@loadbalancer" \
--agents 2 \
--wait
fi

# create mkcert certs in alle namespaces with ingress
for namespace in backstage kargo monitoring argocd keycloak kubecost; do
Expand Down

0 comments on commit 3f22c1d

Please sign in to comment.