https://rancher.com/ logo
Title
b

brash-helicopter-95726

04/12/2023, 6:29 PM
Hi all, I've been trying to add a new master to an existing cluster by installing from ISO download and pointing it at a config.yaml for cloudinit that looks like this:
hostname: k3os-master-node
k3os:
  data_sources: []
  token: ...
  k3s_args:
    - server
    - "--write-kubeconfig-mode"
    - "644"
  modules:
    - kvm
    - rbd
    - openvswitch
  sysctl:
    kernel.printk: "4 4 1 7"
    net.ipv4.ip_forward: 1
  ntp_servers:
    - <http://0.us.pool.ntp.org|0.us.pool.ntp.org>
    - <http://1.us.pool.ntp.org|1.us.pool.ntp.org>
  kubernetes_url: <https://existing-master:6443>
  dns_nameservers:
    - 8.8.8.8
    - 8.8.4.4
  ntp_servers:
    - <http://0.pool.ntp.org|0.pool.ntp.org>
    - <http://1.pool.ntp.org|1.pool.ntp.org>
ssh_authorized_keys:
  - ssh-rsa ....
Is it actually possible to add a new master agent to an existing cluster like this?
c

creamy-pencil-82913

04/12/2023, 7:17 PM
I’m not sure what you mean by “master agent” but adding a new server requires that 1. the existing server be started with --cluster-init 2. the new server has --token set to the correct value to join the cluster 3. the new server has --server set to an existing server node You haven’t commented on whether or not you did 1, and from what you posted you’ve not done 2 or 3
b

brash-helicopter-95726

04/12/2023, 10:00 PM
much appreciated for the reply! no I didn't set --cluster-init and thought that --server would be redundant due to the first server arg . token is set correctly though, but not as an argument as I understood it should be passed by the variable defined at the top level.
c

creamy-pencil-82913

04/12/2023, 10:22 PM
ah sorry, I see you’re using k3os. That is pretty much end of life. It hasn’t seen a release since Jacob left the company.
🎯 1
b

brash-helicopter-95726

04/13/2023, 12:09 AM
So I realised eventually today. I'm researching a replacement, Kairos seems like a contender
c

creamy-pencil-82913

04/13/2023, 12:14 AM
I do hear about people using that from time to time, seems to work well enough
b

brash-helicopter-95726

04/13/2023, 12:46 AM
tbh never tried Kairos. Shame .. I did really like k3os, ultra minimal fast to deploy and got the job done. I hope flatcar has grown a bit since last I tried, looking for a minimal distro to reduce attack vectors. Looks like it's going to be flatcar + kubeadm first for replacement
a

alert-policeman-61846

04/14/2023, 8:41 AM
actually trying kairos. Looks promising