Skip to content

Commit 60a18ea

Browse files
Modify kubelet eviction threshold for k3d cluster
Signed-off-by: Kate Goldenring <[email protected]>
1 parent 3ed2e3f commit 60a18ea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/up.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ IMAGES=("spin-hello-world" "spin-keyvalue" "spin-outbound-redis" "spin-multi-tri
1313
docker build -t k3d-shim-test "$dockerfile_path"
1414

1515
k3d cluster create "$cluster_name" \
16-
--image k3d-shim-test --api-port 6551 -p '8082:80@loadbalancer' --agents 1 \
17-
--registry-create test-registry:0.0.0.0:5000
16+
--image k3d-shim-test --api-port 6551 -p '8082:80@loadbalancer' --agents 2 \
17+
--registry-create test-registry:0.0.0.0:5000 \
18+
--k3s-arg '--kubelet-arg=eviction-hard=imagefs.available<1%,nodefs.available<1%@agent:*' \
19+
--k3s-arg '--kubelet-arg=eviction-minimum-reclaim=imagefs.available=1%,nodefs.available=1%@agent:*'
1820

1921
kubectl wait --for=condition=ready node --all --timeout=120s
2022

0 commit comments

Comments
 (0)