cnrancher / autok3s

Run K3s Everywhere
https://www.suse.com
Apache License 2.0
741 stars 76 forks source link

[BUG] Cant make HA k3d cluster #672

Closed dlbears closed 1 month ago

dlbears commented 3 months ago

Describe the bug Described in the title

To reproduce Steps to reproduce the behavior:

  1. Run this command: "autok3s create --provider k3d --master 3 --name test --worker 0 --api-port 0.0.0.0:0 --image docker.io/rancher/k3s:v1.28.5-k3s1"
  2. See the following error message: "FATA[2024-04-26T10:53:27-04:00] [k3d] calling preflight error: need to set --cluster or --datastore when --master number > 1"
  3. cant or dont know where to pass --datastore / --cluster in the command to make this work, i've tried to add it to --master-extra-args and at the top of the command but either way it is the same error

Expected behavior Based on the docs for k3d HA cluster should work

Environments (please complete the following information):

Jason-ZW commented 3 months ago

Hi @dlbears: Thanks for your feedback. Maybe it's a bug at the createCheck function. We will be check the code and fix it ASAP.

JacieChao commented 1 month ago

Tested with v0.9.3-rc1.