Kubernetes Deployment
[!NOTE] This is not officially supported. These helm charts are for reference only. I cannot guarantee k8 support if something does not work as expected, but feel free to submit a pull request
Installation Prerequisites
Install kubctl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
For instructions for your OS, see the kubernetes docs
Install minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo dpkg -i minikube_latest_amd64.deb
For instructions for your OS, see the minikube docs
Install helm
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
For instructions for your OS, see the helm docs
Start the app
Start Kubernetes
minikube start
This will start a local single-node Kubernetes cluster, add --driver=docker
for using Docker.
Spin up domain-locker helm charts
helm install dl oci://ghcr.io/lissy93/domain-locker-helm --version 0.0.8 --wait
(or, from source, using helm install dl ./helm
)
Verify it's running
kubectl get all
Port forward to access
kubectl port-forward svc/domain-locker-app 3000:80
Launch the app
You should now be able to access Domain Locker at localhost:3000
🎉
Debug
You can check the app is running with:
kubectl get pods
kubectl get svc
And view the logs with:
kubectl logs deploy/domain-locker-app
Or open a debug shell with:
kubectl exec -it deploy/domain-locker-app -- sh
Manually connect to the database:
psql -h domain-locker-postgres -U postgres -d domain_locker