chore(bootstrap): Added external-secrets and cnpg to ArgoCD

This commit is contained in:
Daniël Groothuis
2025-10-23 12:49:41 +02:00
parent 99580850fb
commit 5f1dc2e991
10 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: cnpg
spec:
description: Cloud Native Postgress Operator
sourceRepos:
- '*'
sourceNamespaces:
- '*'
destinations:
- namespace: 'cnpg-system'
server: '*'
clusterResourceWhitelist:
- group: '*'
kind: '*'

View File

@@ -0,0 +1,24 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cnpg
namespace: cnpg-system
labels:
platform.dgse.cloud/cluster: artemis
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: cnpg
source:
repoURL: 'https://git.dgse.cloud/DGSE/kubernetes.git'
path: manifests/artemis/cnpg
targetRevision: HEAD
destination:
namespace: cnpg-system
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
prune: true
selfHeal: true

View File

@@ -0,0 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- app-project.yaml
- application.yaml

View File

@@ -0,0 +1,17 @@
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: external-secrets
spec:
description: Secrets Management for platform
sourceRepos:
- '*'
sourceNamespaces:
- '*'
destinations:
- namespace: 'external-secrets'
server: '*'
clusterResourceWhitelist:
- group: '*'
kind: '*'

View File

@@ -0,0 +1,24 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: external-secrets
namespace: external-secrets
labels:
platform.dgse.cloud/cluster: artemis
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: external-secrets
source:
repoURL: 'https://git.dgse.cloud/DGSE/kubernetes.git'
path: manifests/artemis/external-secrets
targetRevision: HEAD
destination:
namespace: external-secrets
name: in-cluster
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
prune: true
selfHeal: true

View File

@@ -0,0 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- app-project.yaml
- application.yaml

View File

@@ -7,3 +7,5 @@ resources:
- vault - vault
- gitea-runners - gitea-runners
- gitea - gitea
- cnpg
- external-secrets

View File

@@ -0,0 +1,10 @@
---
#resources:
# - cert.yaml
helmCharts:
- name: cloudnative-pg
repo: https://cloudnative-pg.github.io/charts
version: 0.26.0
releaseName: cnpg
namespace: cnpg-system

View File

@@ -0,0 +1,10 @@
---
resources:
- platform-cluster-secret-store.yaml
helmCharts:
- name: external-secrets
repo: https://charts.external-secrets.io/
version: 0.18.1
releaseName: external-secrets
namespace: external-secrets

View File

@@ -0,0 +1,15 @@
---
apiVersion: external-secrets.io/v1
kind: ClusterSecretStore
metadata:
name: platform
spec:
provider:
vault:
server: "http://vault.vault:8200"
path: "platform"
version: "v2"
auth:
kubernetes:
mountPath: "kubernetes"
role: "eso"