Browse Source

Merge pull request #1 from gestrem/main

merge forked work
pull/1/head
gestrem 3 years ago
committed by GitHub
parent
commit
b32fb49f9f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      README.md
  2. 4
      kustomize/postgres/kustomization.yaml
  3. 27
      kustomize/postgres/postgres.yaml

11
README.md

@ -1,2 +1,13 @@
# gitops # gitops
GitOps artefacts GitOps artefacts
## Deploy Postgres CrunchyDB
1. Create a namespace ***preprod-database***
2. Install the crunchyDB operator
3. run oc apply -k kustomize/postgres
More details here : https://access.crunchydata.com/documentation/postgres-operator/5.3.1/quickstart/

4
kustomize/postgres/kustomization.yaml

@ -0,0 +1,4 @@
namespace: postgres-operator
resources:
- postgres.yaml

27
kustomize/postgres/postgres.yaml

@ -0,0 +1,27 @@
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: hippo
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-15.2-0
postgresVersion: 15
instances:
- name: instance1
dataVolumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 1Gi
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.41-4
repos:
- name: repo1
volume:
volumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 1Gi
Loading…
Cancel
Save