2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

k3d cluster create逆引きメモ

Last updated at Posted at 2020-09-07

※ 随時追加・修正していきます。 基本的に自分用のメモです。

目次

基本

k3d cluster create

Server APIのポートを指定する

k3d cluster create --api-port 6550

Service Type LoadBalancerを使用可能にする

k3d cluster create -p 8081:80@loadbalancer

workerノードの数を指定する

k3d cluster create --agents <n>

ノード内で実行されるk3sコマンドに引数を渡す

k3d cluster create --k3s-server-arg '--tls-san="1.2.3.4"'

【リモート】 ローカルのkubectlから操作可能なリモートk3dクラスターを作る

k3d cluster create --api-port <your server ip>:6550

【リモート】 Service Type LoadBalancerを使用可能にする

k3d cluster create -p <your server ip>:8081:<your LoadBalancer port>@loadbalancer

【リモート】 ingressを利用する場合

k3d cluster create -p 80:80@agent[0] -p 443:443@agent[0]
2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?