diff --git a/nix/homelab/kustomize/kustomization.yaml b/nix/homelab/kustomize/kustomization.yaml index fd31b43..aad3939 100644 --- a/nix/homelab/kustomize/kustomization.yaml +++ b/nix/homelab/kustomize/kustomization.yaml @@ -1,2 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + resources: - - ./longhorn/ingress.yaml + - ./metallb/pool.yaml diff --git a/nix/homelab/kustomize/longhorn/ingress.yaml b/nix/homelab/kustomize/longhorn/ingress.yaml deleted file mode 100644 index 13d39f5..0000000 --- a/nix/homelab/kustomize/longhorn/ingress.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: longhorn-frontend - namespace: longhorn-system - -spec: - rules: - - host: longhorn.local - http: - paths: - - path: / - pathType: Exact - backend: - service: - name: longhorn-frontend - port: - number: 80 diff --git a/nix/homelab/kustomize/metallb/pool.yaml b/nix/homelab/kustomize/metallb/pool.yaml new file mode 100644 index 0000000..2676031 --- /dev/null +++ b/nix/homelab/kustomize/metallb/pool.yaml @@ -0,0 +1,17 @@ +apiVersion: metallb.io/v1beta1 +kind: IPAddressPool +metadata: + name: pool + namespace: metallb-system +spec: + addresses: + - 192.168.x.x +--- +apiVersion: metallb.io/v1beta1 +kind: L2Advertisement +metadata: + name: pool + namespace: metallb-system +spec: + ipAddressPools: + - pool diff --git a/nix/homelab/nodes/kube/configuration.nix b/nix/homelab/nodes/kube/configuration.nix index c920b58..47de2f2 100644 --- a/nix/homelab/nodes/kube/configuration.nix +++ b/nix/homelab/nodes/kube/configuration.nix @@ -35,7 +35,6 @@ extraFlags = toString [ "--write-kubeconfig-mode \"0644\"" "--disable servicelb" - # "--disable local-storage" ]; }; diff --git a/nix/homelab/update-node.sh b/nix/homelab/update-node.sh new file mode 100755 index 0000000..6d7ef6e --- /dev/null +++ b/nix/homelab/update-node.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -e + +HOST="$1" +if [ -z "$HOST" ]; then + echo "Usage: $0 " + exit 1 +fi + +ssh "$HOST" "cd ~/dotfiles && git pull && sudo nixos-rebuild switch --flake ~/dotfiles/nix/homelab --impure"