Skip to content

Instantly share code, notes, and snippets.

@eramax
Forked from xanderificnl/readme.md
Created February 5, 2023 22:05
Show Gist options
  • Save eramax/4501b3386dc9f1f82e3e3cf47388f91d to your computer and use it in GitHub Desktop.
Save eramax/4501b3386dc9f1f82e3e3cf47388f91d to your computer and use it in GitHub Desktop.
alpine + k3s

/etc/update-extlinux.conf

default_kernel_opts="nomodeset quiet rootfstype=ext4 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory consoleblank=120"

update-extlinux && reboot

Install k3s

curl -sfL https://get.k3s.io | INSTALL_k3S_EXEC='--disable servicelb --no-deploy traefik --flannel-backend=none --disable-network-policy' sh -
mkdir -p ~/.kube && ln -s /etc/rancher/k3s/k3s.yaml ~/.kube/config

copy kubectl config to client

sed 's/127.0.0.1/192.168.88.2/' /etc/rancher/k3s/k3s.yaml

helm

apk add bash
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh

cilium

add to /etc/fstab

bpffs /sys/fs/bpf bpf defaults 0 0

mount -a

helm repo add cilium https://helm.cilium.io/

helm install cilium cilium/cilium --version 1.12.2 \
   --namespace kube-system \
   --set operator.replicas=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment