Skip to content

Commit 2d660d2

Browse files
authored
Add a single worker Kind config and deployment method (#354)
* Add a single worker Kind config and deployment method * Free disk space update
1 parent fac296f commit 2d660d2

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ rebuild-cluster: delete-cluster
6565
./scripts/delete-standard-storageclass.sh
6666
./scripts/remove-control-plane-taint.sh
6767

68+
# Creates a k8s cluster with a single worker
69+
rebuild-cluster-single-worker: delete-cluster
70+
./scripts/deploy-k8s-cluster-single-worker.sh
71+
./scripts/deploy-calico.sh
72+
./scripts/preload-images.sh
73+
./scripts/delete-standard-storageclass.sh
74+
./scripts/remove-control-plane-taint.sh
75+
6876
delete-cluster:
6977
./scripts/delete-k8s-cluster.sh
7078

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
kind: Cluster
2+
apiVersion: kind.x-k8s.io/v1alpha4
3+
networking:
4+
ipFamily: dual
5+
disableDefaultCNI: true
6+
apiServerAddress: "0.0.0.0"
7+
apiServerPort: 6443
8+
nodes:
9+
- role: control-plane
10+
image: kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
11+
- role: worker
12+
image: kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
set -x
3+
4+
# Kind base with kindnetcni and ipv4/ipv6
5+
kind create cluster --config=config/k8s-cluster/single-worker.yaml

0 commit comments

Comments
 (0)