My infrastructure configuration via NixOS and kubernetes for my homelab
Use partition label to identify partitions
nixos-install/nixos-rebuild --flake github:RMTT/machines#{machine name}
Based on Kubernetes now
The order to apply:
storage
operators |--> postgresql --> other apps ....
cert-issuer
and
intel-device-plugin |--> plex
- network infrastructure: godel(based on ipsec). All nodes that be used to deploy services should be inserted into godel
- runtime: k3s
In default, k3s only install one traefik instance per cluster and one servicelb(forward traffic to traefik via netfilter) per node, to scale up traefik instance:
-
configure
deployment.prelicas
in HelmChartConfig of Traefik, which located atservices/k3s/traefik-custom-config.yaml
-
via
kubectl scale --replicas x deployment -n kube-system traefik
via kubectl scale --replicas x deployment -n kube-system coredns
Required apps:
nix
homebrew
home-manager
Configurations steps:
home-manager
switch --flake .#darwinbrew
bundle --global- configure rectangle app
- configure skhd app