2022-12-17 00:05:27 +00:00
|
|
|
---
|
|
|
|
|
2023-05-06 17:36:12 +00:00
|
|
|
apk_tools_version: v2.12.11
|
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
|
2023-05-06 17:36:12 +00:00
|
|
|
apk_tools_checksum: sha256:a77621da3475ae0ed92daa2d05b9c2bb671639af8c17cce44098192dfbe1b80b
|
|
|
|
|
|
|
|
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: ''
|
|
|
|
|
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
|
|
|
|
|
|
|
cni-plugin-flannel: '@community'
|
|
|
|
cni-plugins: '@community'
|
2023-05-06 17:36:12 +00:00
|
|
|
cri-tools: '@testing'
|
2023-03-03 11:35:47 +00:00
|
|
|
containerd: '@community'
|
|
|
|
containerd-openrc: '@community'
|
2022-12-17 00:05:27 +00:00
|
|
|
flannel-contrib-cni: '@testing'
|
2023-03-03 11:35:47 +00:00
|
|
|
flannel: '@testing'
|
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
|
|
|
|
2023-05-06 17:36:12 +00:00
|
|
|
kubelet: '@luzifer=1.27.1-r0'
|
|
|
|
kubeadm: '@luzifer=1.27.1-r0'
|
|
|
|
kubectl: '@luzifer=1.27.1-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
|
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
|
|
|
|
|
|
|
|
sshd: default
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
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'
|
2023-03-03 11:35:47 +00:00
|
|
|
- 'echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf'
|
2022-12-17 00:05:27 +00:00
|
|
|
- 'echo "net.bridge.bridge-nf-call-iptables=1" >>/etc/sysctl.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"
|
|
|
|
|
2022-12-17 00:05:27 +00:00
|
|
|
...
|