Deliver Edb with Perplexity
Here is a step-by-step guide to create and deploy an EnterpriseDB (EDB) PostgreSQL database on Minikube using GitHub Codespaces and kubectl:
1. Set Up GitHub Codespaces and Minikube
-
Create a Codespace:
-
Navigate to your repository on GitHub.
-
Click the Code button, select Codespaces, and create a new Codespace[1][5].
-
Install Dependencies in the Codespace terminal:
sudo apt-get update sudo apt-get install -y kubectl curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 sudo install minikube-linux-amd64 /usr/local/bin/minikube sudo apt-get install -y docker.io
- Start Minikube:
minikube start --driver=docker
2. Configure EDB Pull Secret
- Use your EDB token to create a pull secret in the
postgresql-operator-systemnamespace:
kubectl create namespace postgresql-operator-system kubectl create secret docker-registry edb-docker-secret \ --docker-server=enterprisedb-docker-url \ --docker-username=<your-edb-username> \ --docker-password=<your-edb-token> \ --namespace=postgresql-operator-system
3. Deploy the EDB Operator
- Apply the EDB PostgreSQL operator manifest:
kubectl apply -f https://get.enterprisedb.io/cnp/postgresql-operator-1.11.0.yaml
- Verify the operator is running:
kubectl get pods -n postgresql-operator-system
4. Create a PostgreSQL Cluster
- Define your cluster in a YAML file (e.g.,
cluster.yaml):
apiVersion: postgresql.k8s.enterprisedb.io/v1 kind: Cluster metadata: name: my-postgres-cluster namespace: default spec: instances: 2 storage: size: 1Gi imageName: enterprisedb/postgresql:latest credentials: superuserSecretRef: name: postgres-superuser-secret
- Apply the configuration using
kubectl:
kubectl apply -f cluster.yaml
- Check the cluster status:
kubectl get pods -l app.kubernetes.io/name=my-postgres-cluster
This setup will deploy an EDB PostgreSQL database on Minikube within GitHub Codespaces, leveraging your EDB token for authentication[2][3][4].
Sources
[1] How to use Minikube on GitHub Codespaces - sourav's blogs https://blog.souravk.cloud/how-to-use-minikube-on-github-codespaces
[2] Getting started with the EDB PostgreSQL Database Kubernetes … https://ronekins.com/2021/12/17/getting-started-with-the-edb-postgresql-database-kubernetes-operator-and-portworx-storage/
[3] EDB Postgres for Kubernetes v1 - Quickstart - EDB Docs https://www.enterprisedb.com/docs/postgres_for_kubernetes/latest/quickstart/
[4] EDB Postgres for Kubernetes v1 - Installation and upgrades https://www.enterprisedb.com/docs/postgres_for_kubernetes/latest/installation_upgrade/
[5] How to Use Minikube with GitHub Codespaces – Rifat Erdem Sahin https://rifaterdemsahin.com/2024/10/03/%F0%9F%9A%80-how-to-use-minikube-with-github-codespaces/
[6] Hello Minikube - Kubernetes https://kubernetes.io/docs/tutorials/hello-minikube/
[7] Deploy Containers from GitHub Codespaces - YouTube https://www.youtube.com/watch?v=FiA7j10wfCw
[8] Getting Started with the EDB PostgreSQL Database Kubernetes … https://portworx.com/blog/getting-started-with-the-edb-postgresql-database-kubernetes-operator-and-portworx-storage/
Imported from rifaterdemsahin.com · 2025