Implements Cluster PostgreSQL

This commit is contained in:
2024-02-12 20:53:22 -03:00
parent 3ea8da2f25
commit 50086235b3
5 changed files with 66 additions and 146 deletions

View File

@@ -0,0 +1,27 @@
apiVersion: stackgres.io/v1
kind: SGInstanceProfile
metadata:
namespace: portfolio
name: postgres-portfolio-profile
spec:
cpu: "250m"
memory: "512Mi"
containers:
pg-main-container:
cpu: "250m"
memory: "512Mi"
---
apiVersion: stackgres.io/v1
kind: SGCluster
metadata:
namespace: portfolio
name: postgres-cluster
spec:
instances: 1
postgres:
version: "latest"
pods:
persistentVolume:
size: "5Gi"
sgInstanceProfile: postgres-portfolio-profile