[DO-1431] Test deploy karma in new prod K8s (!8)

[DO-1431]

Co-authored-by: denis.patrakeev <denis.patrakeev@avroid.tech>
Reviewed-on: https://git.avroid.tech/K8s/k8s-configs/pulls/8
This commit is contained in:
Denis Patrakeev
2025-02-10 15:47:08 +03:00
parent 5654a65bff
commit 8ceba8a217
3 changed files with 136 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: karma
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: karma
destination:
server: https://kubernetes.default.svc
namespace: karma
sources:
- repoURL: https://git.avroid.tech/K8s/k8s-configs.git
targetRevision: master
ref: values
- repoURL: https://wiremind.github.io/wiremind-helm-charts
chart: "karma"
targetRevision: 2.9.3
helm:
valueFiles:
- $values/clusters/k8s-avroid-office.prod.local/namespaces/karma/values.yaml
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- ApplyOutOfSyncOnly=true
- CreateNamespace=true
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: karma
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://wiremind.github.io/wiremind-helm-charts
- https://git.avroid.tech/K8s/k8s-configs.git
# Only permit applications to deploy to the guestbook namespace in the same cluster
destinations:
- namespace: karma
server: https://kubernetes.default.svc
# Deny all cluster-scoped resources from being created, except for Namespace
clusterResourceWhitelist:
- group: ''
kind: Namespace