kind
環境
過去環境のクリーンアップ
┌───(hitto@hot)-[~]
└─$ which kind
/Users/hitto/go/bin/kind
┌───(hitto@hot)-[~]
└─$ which cue
cue not found
┌───(hitto@hot)-[~]
└─$ rm /Users/hitto/go/bin/kind
┌───(hitto@hot)-[~]
└─$ hash -r
┌───(hitto@hot)-[~]
└─$ which kind
/opt/homebrew/bin/kind
┌───(hitto@hot)-[~]
└─$
確認
┌───(hitto@hot)-[~]
└─$ brew list kind
/opt/homebrew/Cellar/kind/0.27.0/bin/kind
/opt/homebrew/Cellar/kind/0.27.0/etc/bash_completion.d/kind
/opt/homebrew/Cellar/kind/0.27.0/sbom.spdx.json
/opt/homebrew/Cellar/kind/0.27.0/share/fish/vendor_completions.d/kind.fish
/opt/homebrew/Cellar/kind/0.27.0/share/zsh/site-functions/_kind
┌───(hitto@hot)-[~]
└─$ kind --version
kind version 0.27.0
┌───(hitto@hot)-[~]
└─$ which kubectl
/opt/homebrew/bin/kubectl
┌───(hitto@hot)-[~]
└─$
Kindクラスタの作成
$ kind create cluster
Creating cluster "kind" ...
✓ Ensuring node image (kindest/node:v1.32.2) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
Set kubectl context to "kind-kind"
You can now use your cluster with:
kubectl cluster-info --context kind-kind
Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community 🙂
kind delete cluster
kind create cluster --config cluster.yml # ハンズオン資料のcluster.ymlを使用
kubectl apply -f app.yml # app.ymlを再適用 (image: registry.k8s.io/echoserver:1.4)
kubectl apply -f service.yml # service.ymlを再適用
kindinu
hitto@kind:~$ [ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.29.0/kind-linux-amd64
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 97 100 97 0 0 394 0 --:--:-- --:--:-- --:--:-- 394
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 10.5M 100 10.5M 0 0 9190k 0 0:00:01 0:00:01 --:--:-- 9190k
hitto@kind:~$ ls
kind
hitto@kind:~$ chmod +x ./kind
hitto@kind:~$ sudo mv ./kind /usr/local/bin/kind
hitto@kind:~$ kind version
kind v0.29.0 go1.24.2 linux/amd64
← Go home