项目文件夹

文件
2026-07-13 13:17:40 +08:00

23 行
431 B
Bash
可执行文件

#!/usr/bin/env bash
# This scripts creates a kind cluster and verify it works
set -euo pipefail
# Install k8s tools
bash ci/k8s/install-k8s-tools.sh
set -x # Be more verbose now.
# Delete dangling clusters
kind delete clusters --all
kind create cluster --wait 120s --config ci/k8s/kind.config.yaml
# Verify the kubectl works
docker ps
kubectl version
kubectl cluster-info
kubectl get nodes
kubectl get pods --all-namespaces