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