1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

🚀 k0smotronをローカルでビルド&デプロイする最速ガイド

Last updated at Posted at 2025-06-03

⚡ 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で、ローカル開発環境が整うのは最高にクールです!

さあ、今すぐ試してみましょう! 🚀

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?