diff --git a/cluster/apps/download/network_policy.yaml b/cluster/apps/download/network_policy.yaml index ea2a397..b8df270 100644 --- a/cluster/apps/download/network_policy.yaml +++ b/cluster/apps/download/network_policy.yaml @@ -19,6 +19,10 @@ spec: matchLabels: name: "traefik" + - namespaceSelector: + matchLabels: + name: "media" + - namespaceSelector: matchLabels: needsDownload: "yes" diff --git a/docs/setup.md b/docs/setup.md index 117047b..b456dc2 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -5,4 +5,16 @@ This document goes over the process of installing the GitOps files into a cluste Install [calico](https://docs.tigera.io/calico/latest/getting-started/kubernetes/k3s/quickstart#install-calico) Now install the FluxCD stuff:\ -https://github.com/larivierec/home-cluster#installation \ No newline at end of file +https://github.com/larivierec/home-cluster#installation + +## Uninstalling and removing all k3s data in NixOS +```shell +sudo systemctl stop k3s +sudo rm -rf /etc/rancher/k3s +sudo rm -rf /var/lib/rancher/k3s +sudo systemctl start k3s + +sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config +sudo chown $USER ~/.kube/config +sudo chmod 600 ~/.kube/config +``` \ No newline at end of file