chore(bootstrap): Added external-secrets and cnpg to ArgoCD
This commit is contained in:
17
clusters/artemis/apps/cnpg/app-project.yaml
Normal file
17
clusters/artemis/apps/cnpg/app-project.yaml
Normal 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: '*'
|
||||
24
clusters/artemis/apps/cnpg/application.yaml
Normal file
24
clusters/artemis/apps/cnpg/application.yaml
Normal 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
|
||||
7
clusters/artemis/apps/cnpg/kustomization.yaml
Normal file
7
clusters/artemis/apps/cnpg/kustomization.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- app-project.yaml
|
||||
- application.yaml
|
||||
17
clusters/artemis/apps/external-secrets/app-project.yaml
Normal file
17
clusters/artemis/apps/external-secrets/app-project.yaml
Normal 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: '*'
|
||||
24
clusters/artemis/apps/external-secrets/application.yaml
Normal file
24
clusters/artemis/apps/external-secrets/application.yaml
Normal 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
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- app-project.yaml
|
||||
- application.yaml
|
||||
@@ -7,3 +7,5 @@ resources:
|
||||
- vault
|
||||
- gitea-runners
|
||||
- gitea
|
||||
- cnpg
|
||||
- external-secrets
|
||||
|
||||
10
manifests/artemis/cnpg/kustomization.yaml
Normal file
10
manifests/artemis/cnpg/kustomization.yaml
Normal 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
|
||||
10
manifests/artemis/external-secrets/kustomization.yaml
Normal file
10
manifests/artemis/external-secrets/kustomization.yaml
Normal 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
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user