Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create k3s HA cluster failed #84

Open
tboevil opened this issue Jul 22, 2023 · 0 comments
Open

create k3s HA cluster failed #84

tboevil opened this issue Jul 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@tboevil
Copy link

tboevil commented Jul 22, 2023

Describe the bug
When creating the second node via k3s, use server --node-name instead of --server,Otherwise it will prompt Job for k3s-agent.service failed because the service did not take the steps required by its unit configuration.,attach that virtual machine and you can see Incorrect Usage: flag needs an argument: -server

related code: https://github.com/innobead/kubefire/blob/main/pkg/bootstrap/k3s.go#L201

**To Reproduce**
config:
```yaml
name: "kubefire-dev"
bootstrapper: k3s
pubkey: ""
prikey: ""
version: ""
image: ghcr.io/innobead/kubefire-opensuse-leap:15.2
kernel_image: ghcr.io/innobead/kubefire-ignite-kernel:4.19.125-amd64
kernel_args: console=ttyS0 reboot=k panic=1 pci=off ip=dhcp security=apparmor apparmor=1
extra_options: {}
deployed: false
master:
  count: 3
  memory: 2GB
  cpus: 2
  disk_size: 10GB
worker:
  count: 3
  memory: 2GB
  cpus: 2
  disk_size: 10GB

kubefire cluster create dev -c dev.conf -l debug

Expected behavior
Successfully created k3s cluster

Environment

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
$ kubefire version
Version: v0.3.10
Build: 35cb33b-20230416001838
$ kubefire info
CONTAINERD	IGNITE 	CNI   	RUNC 	CNIPLUGIN
v1.6.20   	v0.10.0	v1.1.1	1.1.6	0.4.0/kubefire-cni-bridge

Additional context
I'm happy to provide MR if help is needed, but I'm not found Contributing docs

@tboevil tboevil added the bug Something isn't working label Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant