From 9fbf7a98b8b64c4d4bb8699d1c357b75aded661a Mon Sep 17 00:00:00 2001 From: Pascal Schmid Date: Thu, 28 Mar 2024 23:44:25 +0100 Subject: [PATCH] Fix init cluster script --- init_cluster.sh | 2 +- kind.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 kind.yaml diff --git a/init_cluster.sh b/init_cluster.sh index ce006af..55d8bf4 100755 --- a/init_cluster.sh +++ b/init_cluster.sh @@ -2,7 +2,7 @@ kind delete cluster -kind create cluster --config deployment/kind.yaml +kind create cluster --config kind.yaml kubectl wait -A --for=condition=ready pod --field-selector=status.phase!=Succeeded --timeout=15m diff --git a/kind.yaml b/kind.yaml new file mode 100644 index 0000000..80f7472 --- /dev/null +++ b/kind.yaml @@ -0,0 +1,24 @@ +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha4 +nodes: + - role: control-plane + kubeadmConfigPatches: + - | + kind: InitConfiguration + nodeRegistration: + kubeletExtraArgs: + node-labels: "ingress-ready=true" + extraPortMappings: + - containerPort: 80 + hostPort: 80 + protocol: TCP + - containerPort: 443 + hostPort: 443 + protocol: TCP +# image: kindest/node:v1.26.3@sha256:61b92f38dff6ccc29969e7aa154d34e38b89443af1a2c14e6cfbd2df6419c66f + - role: worker +# image: kindest/node:v1.26.3@sha256:61b92f38dff6ccc29969e7aa154d34e38b89443af1a2c14e6cfbd2df6419c66f + - role: worker +# image: kindest/node:v1.26.3@sha256:61b92f38dff6ccc29969e7aa154d34e38b89443af1a2c14e6cfbd2df6419c66f + - role: worker +# image: kindest/node:v1.26.3@sha256:61b92f38dff6ccc29969e7aa154d34e38b89443af1a2c14e6cfbd2df6419c66f