Unable to setup RKE2 slave node

I am trying to install RKE2 in MicroOS KVM and XEN Container Host from openSUSE MicroOS - Get openSUSE

I am provisioning my VM with the followings combustion script that follows Quick Start | RKE2

#!/bin/bash

cp vconsole.conf /etc/vconsole.conf && chmod 644 /etc/vconsole.conf
rm /etc/localtime && ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
echo root:root | chpasswd

cp sshd_config /etc/ssh
mkdir -p /root/.ssh
echo <censored> >> /root/.ssh/authorized_keys
echo ssh-ed25519

# combustion: network
exec > >(exec tee -a /dev/tty0) 2>&1
echo test
#!/bin/bash

echo Schrift 1
zypper --non-interactive refresh
echo Schrift 2
zypper --non-interactive dup
echo Schrift 3
zypper --non-interactive install --no-recommends containerd conntrack-tools socat ethtool apparmor-parser

mkdir -p /etc/NetworkManager/conf.d
cat > /etc/NetworkManager/conf.d << EOF
[keyfile]
unmanaged-devices=interface-name:cali*;interface-name:flannel*
EOF

curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE="agent" sh -

systemctl enable containerd
systemctl enable rke2-agent.service

mkdir -p /etc/rancher/rke2/

cat > /etc/rancher/rke2/config.yaml << EOF
server: https://m0.k8b.intranet.domain:9345
token: <censored>
EOF

And I am getting this error log openSUSE Paste

And systemclt status rke2-agent gives the following

â—Ź rke2-agent.service - Rancher Kubernetes Engine v2 (agent)
     Loaded: loaded (/usr/local/lib/systemd/system/rke2-agent.service; bad; preset: disabled)
     Active: activating (auto-restart) (Result: exit-code) since Fri 2024-02-23 16:58:33 UTC; 3s ago
       Docs: https://github.com/rancher/rke2#readme
    Process: 22816 ExecStartPre=/bin/sh -xc ! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service (code=exited, status=0/SUCCESS)
    Process: 22818 ExecStartPre=/sbin/modprobe br_netfilter (code=exited, status=0/SUCCESS)
    Process: 22820 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)
    Process: 22823 ExecStart=/usr/local/bin/rke2 agent (code=exited, status=203/EXEC)
    Process: 22825 ExecStopPost=/bin/sh -c systemd-cgls /system.slice/rke2-agent.service | grep -Eo '[0-9]+ (containerd|kubelet)' | awk '{print $1}' | xargs -r kill (code=exited, status=0/SUCCESS)
   Main PID: 22823 (code=exited, status=203/EXEC)
        CPU: 430ms

And the visual log in the VM graphics output contains the following

There will no be any help?

@Misekayek0l hard to help when it looks like really don’t have a grasp of Combustion scripting.

I would suggest heading to https://www.rancher.academy/ and run through the Container and Kubernetes basic courses, then the RKE2 course (they are all free) on a Leap 15.5 VM, sort out Combustion scripting and then look at a MicroOS setup…

1 Like

@malcolmlewis Do you know of any resources to learn k3s? RKE and Rancher seem too complicated for a beginner such as myself.

It is on the same page as Malcolm recommended…

1 Like

Thanks @hui , that should get me started :slightly_smiling_face:

@pavinjoseph Install Rancher-Desktop as well much easier way to get started… :wink:

They have a pre-built binary rpm, ignore that it’s for Leap 15.3, it just a name issue (I have an open issue on this), it’s what I run here on Tumbleweed.

https://build.opensuse.org/package/show/isv:Rancher:stable/rancher-desktop-1.12

https://build.opensuse.org/projects/isv:Rancher:stable/packages/rancher-desktop-1.12/repositories/rpm/binaries

If have questions just start a new thread.

1 Like

Just said me what looks wrong

If someone want to help me linux - Unable to setup RKE2 slave node - Unix & Linux Stack Exchange

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.