- Do Manjaro ARM to em
ansible playbook -i hosts --ask-become-pass kubetime-manjaro-arm
idk about Rock64s, that's a tomorrow problem. CRI-O cuz containerd sucks on these boards, this distro, something. Edits for making CRI-O play nice with CNIs.
Runs cilium, btw.
dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=32
fdisk /dev/mmcblk0
-> o, p, n, p, 1, 32768, enter, wmkfs.ext4 /dev/mmcblk0p1
mount /dev/mmcblk0p1 root/
bsdtar -xpf ArchLinuxARM-aarch64-latest.tar.gz -C root
wget http://os.archlinuxarm.org/os/rockchip/boot/rock64/boot.scr -O root/boot/boot.scr
umount root
dd if=rksd_loader.img of=/dev/mmcblk0 seek=64 conv=notrunc
dd if=u-boot.itb of=/dev/mmcblk0 seek=16384 conv=notrunc
pass: alarm
su root
pacman-key --init
pacman-key --populate archlinuxarm
rm /boot/boot.scr
pacman -Sy uboot-rock64 sudo rxvt-unicode-terminfo python
Do wheel stuff
# still as root
sed 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
then usermod -aG wheel alarm
. You should be able to use sudo now as 'alarm' user.
Set a sane hostname
sudo echo 'kubelet-01' > /etc/hostname
Make MAC addresses unique
vi /etc/systemd/network/00-default.link
Match the default MAC showing up on the network, supply a "unique" one instead.
[Match]
MACAddress=da:19:c8:7a:6d:f4
[Link]
MACAddress=da:19:c8:7a:6d:f5
NamePolicy=kernel database onboard slot path
install yay on the ansible host
ansible-galaxy install jonsible.yay
vim ~/.ansible/roles/jonsible.yay/tasks/main.yml
#change line 38 to:
state: present
Configure ansible hosts
# /etc/ansible/hosts
[control]
localhost ansible_connection=local
[admin]
kubeadm ansible_user=alarm
[worker]
kubelet-[01:03] ansible_user=alarm
Apply some playbooks...