2022-12-17 00:05:27 +00:00
|
|
|
---
|
|
|
|
|
2024-03-15 21:31:52 +00:00
|
|
|
apk_tools_version: v2.14.1
|
2022-12-17 00:05:27 +00:00
|
|
|
apk_tools_arch: x86_64
|
|
|
|
apk_tools_url: https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic//{{ apk_tools_version }}/{{ apk_tools_arch }}/apk.static
|
2024-03-15 21:31:52 +00:00
|
|
|
apk_tools_checksum: sha256:273227b3fdece78c8a32ba65cb14a9590988d5290f6d5ba53f2f37cbc5a7e3f5
|
2023-05-06 17:36:12 +00:00
|
|
|
|
|
|
|
alpine_mirror: https://dl-cdn.alpinelinux.org/alpine
|
|
|
|
alpine_repositories:
|
|
|
|
- url: '{{ alpine_mirror }}/edge/main'
|
|
|
|
- tag: 'community'
|
|
|
|
url: '{{ alpine_mirror }}/edge/community'
|
|
|
|
- tag: 'testing'
|
|
|
|
url: '{{ alpine_mirror }}/edge/testing'
|
|
|
|
- tag: 'luzifer'
|
2023-06-11 15:19:16 +00:00
|
|
|
url: 'https://alpinerepo.hub.luzifer.io/repo'
|
2023-05-06 17:36:12 +00:00
|
|
|
|
|
|
|
alpine_repository_keys:
|
|
|
|
- name: 'alpine@ahlers.me-64562ea3.rsa.pub'
|
|
|
|
public_key: |
|
|
|
|
-----BEGIN PUBLIC KEY-----
|
|
|
|
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEArxxCxVKukbb/zGHBv1ks
|
|
|
|
Gu+eRHNCf7aPyUZVEwMdBSO3GYaVC5np1wtzCZzG+1BVQEdgyomxzB2dU0hTSBIZ
|
|
|
|
myu+u7344+4/XzbcIwNOfGyduYhlIDvQ4UMzFZfq0oXU9QTmsVl0iqi1CT8J4LWr
|
|
|
|
X5i6h/zkmURCvTkK9SoZ3S+LcnCS8becUdiJpQksMQ8nFr6MtwN92W4fzyHTJYI9
|
|
|
|
p+tuWr9j71xHLujWQU7aio+qGpvIS9y3R4eIkJ+YRRpTiZi7x+Aixn3JaGF0zk2h
|
|
|
|
tsApoPQbVqomgDPYX6JrMx1T5amkONz1vwhg9QTYISafQg0sbrQYBrjKDZBM0zZw
|
|
|
|
vUpVKHjr0S1rMJhzNXvoYBFwDv/d15B8B8QDyTKRJkhcfKpjN2UPinB0DNozJ8L5
|
|
|
|
l8VmxKdiA0zbbvWuhRMo9Svkhn/N55M+cH4Xmkf+3Z8frqmQf5b02mDfh4kMLRKT
|
|
|
|
SBwkqgx/Kqceiw8ZIDprPY3tr6ThQ9oJOzI8NomNmvmanWHJtm6oBNiyvH3G9cfe
|
|
|
|
+CeXkOhwwug+xrnNsA8bedFLfm2XB5Y6k/xs88604igHxfjbAWXjIyHhrNAD885s
|
|
|
|
cbZ7WJTWYHuoltHwFvmq5Z8ZFuFpqbWH7B618rLR92AmHGaaje8m4vVeUcTq2TeN
|
|
|
|
Ld4erUMnkwbBDYOIlAc/vzMCAwEAAQ==
|
|
|
|
-----END PUBLIC KEY-----
|
2022-12-17 00:05:27 +00:00
|
|
|
|
|
|
|
boot_size: +100m
|
|
|
|
root_size: '0'
|
|
|
|
hostname: alpine-k8s
|
|
|
|
|
2023-05-06 17:36:12 +00:00
|
|
|
dhcp_interfaces: [eth0, eth1]
|
|
|
|
|
2022-12-17 00:05:27 +00:00
|
|
|
packages:
|
|
|
|
# Alpine base system
|
|
|
|
openssh: ''
|
|
|
|
syslinux: ''
|
|
|
|
linux-virt: ''
|
2022-12-17 01:51:51 +00:00
|
|
|
sudo: '@community'
|
2022-12-17 23:56:26 +00:00
|
|
|
vim: ''
|
2022-12-17 00:56:13 +00:00
|
|
|
|
2022-12-17 00:05:27 +00:00
|
|
|
cloud-init: '@community'
|
2023-01-15 00:26:02 +00:00
|
|
|
e2fsprogs-extra: ''
|
2022-12-17 00:56:13 +00:00
|
|
|
py3-pyserial: '@community'
|
|
|
|
py3-netifaces: '@community'
|
2022-12-17 00:05:27 +00:00
|
|
|
|
2023-03-02 17:26:38 +00:00
|
|
|
wireguard-tools: ''
|
|
|
|
|
2023-09-02 15:41:25 +00:00
|
|
|
chrony: ''
|
|
|
|
chrony-openrc: ''
|
|
|
|
|
2022-12-17 00:05:27 +00:00
|
|
|
# K8s requirements
|
|
|
|
open-iscsi: ''
|
|
|
|
open-iscsi-openrc: ''
|
2022-12-17 23:56:26 +00:00
|
|
|
udev: ''
|
2022-12-17 00:05:27 +00:00
|
|
|
|
2024-03-16 12:32:11 +00:00
|
|
|
cni-plugin-calico: '@luzifer=3.27.2-r0'
|
2022-12-17 00:05:27 +00:00
|
|
|
cni-plugins: '@community'
|
2023-09-02 16:25:43 +00:00
|
|
|
cri-tools: '@community'
|
2023-03-03 11:35:47 +00:00
|
|
|
containerd: '@community'
|
|
|
|
containerd-openrc: '@community'
|
2022-12-17 00:05:27 +00:00
|
|
|
nfs-utils: ''
|
2023-03-03 11:35:47 +00:00
|
|
|
uuidgen: ''
|
2022-12-17 00:05:27 +00:00
|
|
|
|
2024-03-15 21:31:52 +00:00
|
|
|
kubelet: '@luzifer=1.29.3-r0'
|
|
|
|
kubeadm: '@luzifer=1.29.3-r0'
|
|
|
|
kubectl: '@luzifer=1.29.3-r0'
|
2022-12-17 00:05:27 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
devfs: sysinit
|
|
|
|
dmesg: sysinit
|
|
|
|
hwdrivers: sysinit
|
2022-12-17 23:56:26 +00:00
|
|
|
udev: sysinit
|
2024-03-23 22:07:00 +00:00
|
|
|
udev-trigger: sysinit
|
|
|
|
udev-settle: sysinit
|
2022-12-17 00:05:27 +00:00
|
|
|
|
|
|
|
hwclock: boot
|
|
|
|
modules: boot
|
|
|
|
sysctl: boot
|
|
|
|
hostname: boot
|
|
|
|
bootmisc: boot
|
|
|
|
syslog: boot
|
|
|
|
networking: boot
|
|
|
|
|
|
|
|
mount-ro: shutdown
|
|
|
|
killprocs: shutdown
|
|
|
|
savecache: shutdown
|
|
|
|
|
2023-09-02 15:41:25 +00:00
|
|
|
chronyd: default
|
2022-12-17 00:05:27 +00:00
|
|
|
sshd: default
|
2024-03-23 22:07:00 +00:00
|
|
|
udev-postmount: default
|
2022-12-17 00:05:27 +00:00
|
|
|
|
|
|
|
# K8s requirements
|
2023-03-03 11:35:47 +00:00
|
|
|
containerd: default
|
2022-12-17 00:05:27 +00:00
|
|
|
iscsid: default
|
|
|
|
kubelet: default
|
|
|
|
ntpd: default
|
|
|
|
|
|
|
|
nameservers:
|
|
|
|
- 185.12.64.1
|
|
|
|
- 185.12.64.2
|
|
|
|
- 2a01:4ff:ff00::add:1
|
|
|
|
- 2a01:4ff:ff00::add:2
|
|
|
|
|
2023-11-10 12:31:26 +00:00
|
|
|
sysctl:
|
|
|
|
net.ipv4.ip_forward: 1
|
|
|
|
net.bridge.bridge-nf-call-iptables: 1
|
2022-12-17 00:05:27 +00:00
|
|
|
|
|
|
|
extlinux_modules:
|
|
|
|
- ext4
|
|
|
|
|
2024-03-26 12:28:32 +00:00
|
|
|
mkinitfs_features:
|
2024-03-26 10:57:33 +00:00
|
|
|
- ata
|
2022-12-17 00:05:27 +00:00
|
|
|
- base
|
|
|
|
- ext4
|
|
|
|
- keymap
|
2024-03-26 10:57:33 +00:00
|
|
|
- kms
|
|
|
|
- nvme
|
|
|
|
- raid
|
|
|
|
- scsi
|
2022-12-17 00:05:27 +00:00
|
|
|
- virtio
|
|
|
|
|
|
|
|
kernel_modules:
|
|
|
|
- ipv6
|
|
|
|
- af_packet
|
|
|
|
|
|
|
|
default_kernel_opts:
|
|
|
|
- quiet
|
|
|
|
|
|
|
|
chroot_commands:
|
|
|
|
# kernel stuff
|
|
|
|
- 'echo "br_netfilter" >/etc/modules-load.d/k8s.conf'
|
|
|
|
|
2023-05-06 17:36:12 +00:00
|
|
|
# Disable overwriting network config
|
|
|
|
- 'echo "network: {config: disabled}" >/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg'
|
|
|
|
|
2022-12-17 00:05:27 +00:00
|
|
|
# Fix prometheus errors
|
|
|
|
- 'echo -e "#!/bin/sh\nmount --make-rshared /" >/etc/local.d/sharemetrics.start'
|
|
|
|
- 'chmod +x /etc/local.d/sharemetrics.start'
|
|
|
|
- 'rc-update add local'
|
|
|
|
|
2022-12-17 23:56:26 +00:00
|
|
|
# Force --cloud-provider=external
|
|
|
|
- "sed -i 's/command_args=\"/command_args=\"--cloud-provider=external /' /etc/init.d/kubelet"
|
|
|
|
|
2023-09-02 21:59:03 +00:00
|
|
|
# Configure chrony
|
2023-12-19 13:24:40 +00:00
|
|
|
- 'echo -e "server ptbtime1.ptb.de iburst\nserver ptbtime2.ptb.de iburst\ninitstepslew 10 ptbtime1.ptb.de\ndriftfile /var/lib/chrony/chrony.drift\nrtcsync\ncmdport 0" >/etc/chrony/chrony.conf'
|
2023-09-02 21:59:03 +00:00
|
|
|
|
2022-12-17 00:05:27 +00:00
|
|
|
...
|