0
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?

kindを使ってingressつきローカル開発を作ってみた

Posted at

🦋 事前準備

以下のアプリケーションをインストールしてください

  • golang
  • kind

🤖 以下のmiseを使うと簡単にinstallできます。

.mise.toml
[tools]
kind = "0.29.0"
go = "1.24.0"

miseを使ったインストールの仕方は下記のコマンドです。

mise install

⚓ clusterの作成

下記のコマンドでクラスターを作成します。

kind create cluster

# clusterの作成が確認するコマンド
kind get clusters

🪐 ingressのインストール

Cloud Provider KINDをインストールします。

go install sigs.k8s.io/cloud-provider-kind@latest

別タブで下記のコマンドを実行してください。

sudo cloud-provider-kind

最後にingress controllerをapplyします。

kubectl apply -f https://kind.sigs.k8s.io/examples/ingress/deploy-ingress-nginx.yaml

# Podがreadyになるまで待つ
kubectl wait --namespace ingress-nginx \
  --for=condition=ready pod \
  --selector=app.kubernetes.io/component=controller \
  --timeout=90s

EXTERNAL-IPが付与されていたら成功です。

# EXTERNAL-IPが付与されていることを確認
kubectl -n ingress-nginx get services
0
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
0
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?