🔨(kind) add help to pause and resume a cluster

Once started, the cluster can not be paused using kind or ctlptl
command. 2 helpers are added to pause and resume docker containers
running the cluster.
This commit is contained in:
Manuel Raynaud
2025-01-10 10:38:14 +01:00
parent 9a07f45777
commit 78cf668cd7
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
set -o errexit
echo "Pausing docker containers running k8s cluster managed with kind"
docker pause $(docker ps --filter name=kind-* --filter status=running --format "{{.Names}}")
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
set -o errexit
echo "Resuming docker containers running k8s cluster managed with kind"
docker unpause $(docker ps --filter name=kind-* --filter status=paused --format "{{.Names}}")