hetzner-alpine-k8s/config.yaml
Knut Ahlers 4828039621
Add missing packages for cloud-init
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-12-17 01:56:13 +01:00

102 lines
1.9 KiB
YAML

---
apk_tools_version: v2.12.10
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
apk_tools_checksum: sha256:d7506bb11327b337960910daffed75aa289d8bb350feab624c52965be82ceae8
alpine_version: edge
alpine_mirror: http://dl-cdn.alpinelinux.org/alpine
alpine_repositories: [ main, community, testing ]
boot_size: +100m
root_size: '0'
hostname: alpine-k8s
packages:
# Alpine base system
openssh: ''
syslinux: ''
linux-virt: ''
cloud-init: '@community'
py3-pyserial: '@community'
py3-netifaces: '@community'
# K8s requirements
open-iscsi: ''
open-iscsi-openrc: ''
cni-plugin-flannel: '@community'
cni-plugins: '@community'
flannel: '@testing'
flannel-contrib-cni: '@testing'
docker: '@community'
uuidgen: ''
nfs-utils: ''
kubelet: '@testing=1.25.0-r4'
kubeadm: '@testing=1.25.0-r4'
kubectl: '@testing=1.25.0-r4'
services:
devfs: sysinit
dmesg: sysinit
mdev: sysinit
hwdrivers: sysinit
hwclock: boot
modules: boot
sysctl: boot
hostname: boot
bootmisc: boot
syslog: boot
networking: boot
mount-ro: shutdown
killprocs: shutdown
savecache: shutdown
sshd: default
# K8s requirements
docker: default
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
sysctl: {}
extlinux_modules:
- ext4
kernel_features:
- base
- ext4
- keymap
- virtio
kernel_modules:
- ipv6
- af_packet
default_kernel_opts:
- quiet
chroot_commands:
# kernel stuff
- 'echo "br_netfilter" >/etc/modules-load.d/k8s.conf'
- 'echo "net.bridge.bridge-nf-call-iptables=1" >>/etc/sysctl.conf'
# 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'
...