MicroOS KVM 및 XEN 컨테이너 호스트에 RKE2를 설치하려고 합니다.openSUSE MicroOS - openSUSE 받기
다음 굽기 스크립트를 사용하여 가상 머신을 구성하고 있습니다.빠른 시작 |
#!/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/rke2-canal.conf << 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
알 겠어오류 기록
그리고 systemctl status rke2-agent
다음이 주어지면
● 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