Go to file
2025-08-13 16:20:41 -07:00
img very old prole gif 2025-08-13 15:53:46 -07:00
k3s in progress cnpg deploy 2025-08-13 15:57:19 -07:00
mssql add MSSQL Server 2022 Ubuntu 24.04 build 2025-08-13 16:04:18 -07:00
prole-db very old prole gif 2025-08-13 15:46:30 -07:00
src get latest postgresql.tar.gz 2025-07-13 17:32:23 -07:00
cloudnative-pg-prole-dB.yaml merge diff 2025-08-13 16:09:09 -07:00
docker-root-prole-db.sh prole-db cloudnative-pg update 2025-07-29 14:04:10 -07:00
LICENSE Initial commit 2025-07-12 18:02:40 -07:00
README.md merging in progress notes 2025-08-13 16:20:41 -07:00

prole

prole-db is a PostgreSQL database for Prole

claudnative-pg cluster setup

k3d

k3d cluster create ...

start the docker image build registry

build prole-db Docker image

cd prole-db
docker run -d -p 5000:5000 --name prole-data-registry registry:2
docker network connect k3d-prole-data-cluster prole-data-registry
docker login k3d.localhost:5000
docker build -t prole-db:17.5-025 .
docker tag prole-db:17.5-025 localhost:5000/prole-db:17.5-025
docker push localhost:5000/prole-db:17.5-025

k3d image import prole-db:17.5-025 -c prole-data-cluster
kubectl apply --server-side -f https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/release-1.26/releases/cnpg-1.26.0.yaml
helm upgrade --install -f https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/main/docs/src/samples/monitoring/kube-stack-config.yaml prometheus-community prometheus-community/kube-prometheus-stack
kubectl apply -f https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/main/docs/src/samples/monitoring/prometheusrule.yaml

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add cnpg-grafana https://cloudnative-pg.github.io/grafana-dashboards
helm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/
helm upgrade --install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --create-namespace --namespace kubernetes-dashboard

kubectl apply -f cloudnative-pg-prole-dB.yaml

kubectl port-forward svc/prometheus-community-kube-prometheus 9090 &
kubectl port-forward svc/prometheus-community-grafana 3000:80 &
kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443 &
kubectl port-forward svc/prole-db-rw 5432:5432 --address 0.0.0.0 &
kubectl port-forward svc/prole-mssql-db 1433:1433 --address 0.0.0.0 &

kubectl cnpg status prole-db

kubectl cnpg plsql prole-db

brew install krew

kubectl krew install view-secret

re-initialise the database

kubectl delete -f cloudnative-pg-prole-dB.yaml
# cluster.postgresql.cnpg.io "prole-db" deleted
kubectl apply -f cloudnative-pg-prole-dB.yaml 
# cluster.postgresql.cnpg.io/prole-db created