A Comprehensive Guide to Setting Up Spicedb with PostgreSQL and a Monitoring Stack

Abhishek koserwal
4 min readJun 28, 2023

In this post, we will learn how to use the kind to set up Authzed Spicedb with a PostgreSQL database on a local Kubernetes cluster. Also, we will set up a monitoring stack with the help of kube-prometheus-stack.

Architecture

Prerequisites:

Setup code repository

Start by cloning the spicedb-postgres-kube repository from GitHub using the following command:

git clone https://github.com/akoserwal/spicedb-postgres-kube.git

Run the setup script

./setup.sh  

The script will create a local Kubernetes cluster using kind.

creating kind cluster
Creating cluster "sp-cluster" ...
✓ Ensuring node image (kindest/node:v1.25.3) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
Set kubectl context to "kind-sp-cluster"
You can now use your cluster with:

kubectl cluster-info --context…

--

--

Abhishek koserwal

#redhatter #opensource #developer #kubernetes #keycloak #golang #openshift #quarkus #spring