first commit
This commit is contained in:
22
01-cnpg-cluster.yaml
Normal file
22
01-cnpg-cluster.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: wordpress-db
|
||||
namespace: wordpress
|
||||
spec:
|
||||
instances: 2
|
||||
storage:
|
||||
size: 20Gi
|
||||
storageClass: longhorn-fast
|
||||
resources:
|
||||
requests:
|
||||
memory: "512Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "1Gi"
|
||||
cpu: "750m"
|
||||
bootstrap:
|
||||
initdb:
|
||||
database: postgres
|
||||
affinity:
|
||||
enablePodAntiAffinity: false
|
||||
Reference in New Issue
Block a user