[DO-1431] add mermaid (!14)

[DO-1431]

Co-authored-by: denis.patrakeev <denis.patrakeev@avroid.tech>
Reviewed-on: https://git.avroid.tech/K8s/k8s-configs/pulls/14
This commit is contained in:
Denis Patrakeev
2025-02-11 13:05:00 +03:00
parent 704cf5d4a9
commit 728d2742bd
7 changed files with 227 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mermaid
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: mermaid
destination:
server: https://kubernetes.default.svc
namespace: mermaid
sources:
- repoURL: https://git.avroid.tech/K8s/k8s-configs.git
targetRevision: master
path: clusters/k8s-avroid-office.prod.local/namespaces/mermaid/kustomize
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- ApplyOutOfSyncOnly=true
- CreateNamespace=true
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: mermaid
namespace: argocd
# Finalizer that ensures that project is not deleted until it is not referenced by any application
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
sourceRepos:
- https://git.avroid.tech/K8s/k8s-configs.git
# Only permit applications to deploy to the guestbook namespace in the same cluster
destinations:
- namespace: mermaid
server: https://kubernetes.default.svc
# Deny all cluster-scoped resources from being created, except for Namespace
clusterResourceWhitelist:
- group: ''
kind: Namespace