feat: Add catalyst

This commit is contained in:
2026-04-08 14:55:00 +02:00
parent af17fa4f23
commit 61691f1edb
8 changed files with 143 additions and 1 deletions
+42
View File
@@ -0,0 +1,42 @@
{{- if .Values.clusterConfig.argo.enabled }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: catalyst
namespace: argocd
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: cra-agent
server: https://kubernetes.default.svc
project: sys
sources:
- repoURL: {{ .Values.clusterConfig.manifests }}
targetRevision: HEAD
path: helmfile.d
plugin:
name: helmfile-cmp
env:
- name: CLUSTER_NAME
value: {{ .Values.clusterConfig.cluster }}
- name: HELMFILE_ENVIRONMENT
value: {{ .Values.catalyst.env }}
- name: HELMFILE_FILE_PATH
value: catalyst.yaml.gotmpl
syncPolicy:
managedNamespaceMetadata:
labels:
component: aux
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
# - ServerSideApply=true
{{- if .Values.catalyst.autosync }}
automated:
prune: true
# selfHeal: false
{{- end }}
{{- end }}
+11
View File
@@ -0,0 +1,11 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: catalyst-db
namespace: cra-agent
spec:
instances: 1
imageName: ghcr.io/cloudnative-pg/postgresql:18
storage:
resizeInUseVolumes: true
size: 10Gi
+16
View File
@@ -0,0 +1,16 @@
{{- if .Values.clusterConfig.cilium.enabled }}
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: allow-api-umami
namespace: analytics
spec:
description: Allow umami api
egress:
- toFQDNs:
- matchPattern: binaries.prisma.sh
- matchPattern: checkpoint.prisma.io
endpointSelector:
matchLabels:
app.kubernetes.io/instance: umami
{{- end }}