⚡ 30秒でk0smotronをkindにデプロイ
# リポジトリをクローン
git clone https://github.com/k0smotron/k0smotron.git
cd k0smotron
# Docker networkとkindクラスタを作成し、Cluster APIをInstallし、k0smotronをbuildしてkindへdeploy
make kind-capi-k0smotron
これだけ! 🎉
🔥 kindの設定を少し説明
# config/samples/capi/docker/kind.yaml の中身
extraMounts:
- hostPath: /var/run/docker.sock
containerPath: /var/run/docker.sock
extraPortMappings:
- containerPort: 31443
hostPort: 31443
- Docker socket マウント: Cluster APIがDockerコンテナを管理するため必須
- ポート31443公開: k0smotronクラスタへの外部アクセス用
- 専用ネットワーク: IP masqueradeでコンテナ間通信
💡 Pro Tips
# マルチアーキテクチャビルド(ARM64も対応!)
make docker-buildx PLATFORMS=linux/arm64,linux/amd64
まとめ
k0smotronはKustomizeで構成管理され、専用のkind設定でCluster API対応の環境を簡単に構築できます。make kind-cluster && make kind-deploy-k0smotron
で、ローカル開発環境が整うのは最高にクールです!
さあ、今すぐ試してみましょう! 🚀