Skip to content

Commit

Permalink
[data] added PostgreSQL Cloudnative Operator
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberdev committed Sep 28, 2023
1 parent 8867824 commit 8db1d91
Show file tree
Hide file tree
Showing 3 changed files with 490 additions and 0 deletions.
30 changes: 30 additions & 0 deletions apps/argocd/base/core/cloudnative.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cloudnative
spec:
project: cluster
source:
repoURL: 'https://github.com/gruberdev/homelab.git'
path: apps/data/postgres/cloudnative
targetRevision: main
destination:
namespace: cnpg-system
name: in-cluster
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
syncOptions:
- Validate=false
- CreateNamespace=true
- PrunePropagationPolicy=foreground
- ServerSideApply=true
- Prune=true
retry:
limit: 5
backoff:
duration: 20s
factor: 2
maxDuration: 15m
7 changes: 7 additions & 0 deletions apps/argocd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ resources:
# Core Applications
- base/core/argocd.yaml
- base/core/postgres.yaml
- base/core/cloudnative.yaml
- base/core/redis.yaml
- base/core/storage.yaml
# - base/core/nvidia.yaml
Expand Down Expand Up @@ -131,6 +132,12 @@ images:
newTag: v2.8.4

patches:
- target:
kind: ServiceMonitor
patch: |-
- op: replace
path: "/metadata/namespace"
value: "monitoring"
- patch: |-
- op: add
path: "/spec/strategy"
Expand Down
Loading

0 comments on commit 8db1d91

Please sign in to comment.