Skip to content

SpencerDuball/homelab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sudo kubeadm reset
# kubelet
sudo systemctl enable kubelet
sudo systemctl status kubelet
sudo systemctl restart kubelet
# kubeadm
sudo kubeadm init

To completely reset a node we also need to delete the CNI:

sudo rm -rf /etc/cni/net.d/*

  • Ensure to update the containerd correctly (initialize with default!)
  • Add the modprobe correctly
  • Do I need to wait to start the kubelet until after the CNI is installed? Can I wait so there are no restarts?
k8sServiceHost: "{{ ansible_host }}"
k8sServicePort: 6443
# enable kubeProxyReplacement
kubeProxyReplacement: true
operator.replicas: 1
# enable GatewayAPI
gatewayAPI.enabled: true
# allow for host networking & binding to privileged ports (port # < 1023)
gatewayAPI.hostNetwork.enabled: true
envoy.securityContext.capabilities.keepCapNetBindService: true
# setup node-to-node encryption
encryption.enabled: true
encryption.type: wireguard
encryption.nodeEncryption: true
# enable l2announcements
l2announcements.enabled: true

There are also a bunch of labs to learn more about Cilium networking, which is mega important because networking is really the main thing that Kubernetes does for you: https://isovalent.com/resource-library/labs/

Give these a look over before finishing full setup


  • Explain why we don't need the following rules with kube-proxy replacement:
    • net.bridge.bridge-nf-call-iptables = 1
    • net.bridge.bridge-nf-call-ip6tables = 1
  • Explain why we do need net.ipv4.ip_forward with kube-proxy replacement
  • Explain that the ports still need to be opened except for 10256 for kube-proxy.

About

This repository holds the shared infrastructure for the self hosted machines on my network.

Resources

License

Stars

Watchers

Forks

Packages

No packages published