https://rancher.com/ logo
Title
b

bored-rain-98291

06/02/2022, 1:14 PM
Greetings friends. I am trying to install RKE2 on 3 centos8 servers. When i configure the first node with the config.yaml in /etc/rancher/config.yaml it causes the node to crash and not start clean. Ive tried to get the system to recognize the other server nodes but simply cant get it to work. I can get it to work with a single node. Any help would be greatly appreciated.
s

shy-zebra-53074

06/02/2022, 1:15 PM
hey @bored-rain-98291 are you trying to get a 3-node HA master setup?
and it’s CentOS 8 Stream I assume 🙂
b

bored-rain-98291

06/02/2022, 1:16 PM
Hi thanks for responding! yes
ive worked with vanilla kubernetes many times. kinda perplexing.
s

shy-zebra-53074

06/02/2022, 1:16 PM
when it’s crashing is it the rke2-server service?
b

bored-rain-98291

06/02/2022, 1:16 PM
yes
s

shy-zebra-53074

06/02/2022, 1:16 PM
what do the
journalctl
logs say?
b

bored-rain-98291

06/02/2022, 1:17 PM
but if i stop using the node-token and just enter random text it works
s

shy-zebra-53074

06/02/2022, 1:18 PM
and would you be able to put your
config.yaml
here? I have a working 3-master RKE2 deployment on CentOS 8 Stream
so may be able to help you
b

bored-rain-98291

06/02/2022, 1:18 PM
sure one moment
standby
I assume the first node gets this config.yaml as well? not just 2 & 3?
s

shy-zebra-53074

06/02/2022, 1:21 PM
so 2&3 will need an extra attribute called
server
that essentially tells RKE2-server that they are replicated masters
Master A
          cloud-provider-name: aws
          cluster-cidr: 10.0.0.0/12
          service-cidr: 10.96.0.0/12
          node-taint:
            - "CriticalAddonsOnly=true:NoExecute"
b

bored-rain-98291

06/02/2022, 1:24 PM
ah i see. Sorry im in an air-gapped environment so i have to take special steps to copy configs out.
So that config is what you have on every server node?
s

shy-zebra-53074

06/02/2022, 1:24 PM
Master B / C
          server: https://<LOAD BALANCER DNS>:9345
          cloud-provider-name: aws
          cluster-cidr: 10.0.0.0/12
          service-cidr: 10.96.0.0/12
          node-taint:
            - "CriticalAddonsOnly=true:NoExecute"
np there isn’t much to the configs
b

bored-rain-98291

06/02/2022, 1:24 PM
mine is self-installed
no cloud yet
s

shy-zebra-53074

06/02/2022, 1:24 PM
but honestly it’s the
server
that’s the main difference
b

bored-rain-98291

06/02/2022, 1:24 PM
ok cool - thanks! i will try that
s

shy-zebra-53074

06/02/2022, 1:24 PM
bare-metal?
I have not tried RKE2 on bare metal yet, so you most likely will need a LoadBalancer service like MetalLB
b

bored-rain-98291

06/02/2022, 1:25 PM
Its in vmware i believe
setup by another team 😉
i was hoping it would be aws but not yet apparantly
yes i figured we would need something for the lb
The last time i setup rancher was years ago and you deployed it to a vanilla kubernetes cluster.
s

shy-zebra-53074

06/02/2022, 1:29 PM
yup! there’s also some tie-in with k3s in the RKE2 project as well but I’m not 100% sure what that relationship to k3s is yet
**I believe
could be wrong but I think the automated installation may come from k3s
b

bored-rain-98291

06/02/2022, 1:30 PM
that fixed it! thank you!
s

shy-zebra-53074

06/02/2022, 1:32 PM
sweet! glad that it helped