Files
nixos/manifests
Greg Hellings d7f53e53a3 Expost postgres cluster
Expose the postgres cluster outside of the Kubernetes cluster
Give myself the option of connecting to postgres from my own machines,
so that I can hopefully leverage the improved performance
Update some file linting issues in Nix
Add necessary gitlab keys so it can be updated properly the next time I
deploy to it
Add DNS entries for postgres
Update the configuraiton of Traefik to expose the appropriate ports
2025-05-28 00:10:50 -05:00
..
2025-05-26 17:10:01 -05:00
2025-05-28 00:10:50 -05:00
2025-05-28 00:10:50 -05:00
2025-05-26 23:37:24 -05:00
2025-05-27 19:16:11 -05:00
2025-05-27 19:16:11 -05:00
2025-05-27 19:16:11 -05:00
2025-05-27 19:16:11 -05:00
2025-05-26 17:10:01 -05:00

Stands up my personal infrastructure in a Kubernetes environment.

First Thing First

In order to properly get things up and going, you will need to create a secret to allow the external secrets to log into BitWarden Password Manager. For obvious reasont this cannot be safely added to this repository. As such, it is suggested you create this manually.

kubectl create namespace bitwarden
kubectl create secret generic bitwarden-cli --namespace bitwarden --from-literal=BW_USERNAME=my_username --from-literal=BW_PASSWORD=my_password
# Alternative to the preceding line if you don't want the data in your shell history
kubectl create secret generic bitwarden-cli  --namespace bitwarden --from-file=./BW_USERNAME.txt --from-file=./BW_PASSWORD.txt
# And yet an entirely other option, if I'm logged into my own systems
sudo cat /run/agenix/bw_secret | kubectl apply -f -

Now Configure Cluster Services

To apply this you need to install kubectl, kustomize, and helm. It can then by applied by simply invoking the command:

# Working directory is assumed to be the manifests directory
./apply.sh

Once the basic cluster stuff is setup, you can just apply this directory with

kubectl apply -k .