autok3s icon indicating copy to clipboard operation
autok3s copied to clipboard

[BUG] Cant make HA k3d cluster

Open dlbears opened this issue 10 months ago • 1 comments

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):

  • OS: Darwin Latest
  • AutoK3s Version v0.9.2

dlbears avatar Apr 26 '24 15:04 dlbears

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.

Jason-ZW avatar Apr 28 '24 01:04 Jason-ZW

Tested with v0.9.3-rc1.

JacieChao avatar Jul 17 '24 06:07 JacieChao