Phase 1: Add MariaDB operator installation

This commit is contained in:
Ruben Hensen
2026-02-22 15:38:48 +01:00
parent 353687aeed
commit 2c486a32d1
5 changed files with 100 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
# MariaDB Operator
This folder contains the MariaDB operator installation for the cluster.
## Components
- **operator-crds-helm.yaml**: Installs MariaDB operator CRDs (v25.10.4)
- **operator-helm.yaml**: Installs MariaDB operator (v25.10.4)
- **kustomization.yaml**: Kustomize manifest for organizing resources
## Configuration
- **Namespace**: `mariadb-system`
- **Chart Repository**: https://mariadb-operator.github.io/mariadb-operator
- **Chart Version**: 25.10.4
- **Metrics**: Enabled (ServiceMonitor disabled - Prometheus Operator not installed)
## Managed By
ArgoCD Application: `mariadb-operator-install` (defined in `/apps/templates/mariadb-operator-folder.yaml`)
## Usage
MariaDB instances are created using the `MariaDB` CRD in application namespaces.
See `/mbgwp/mariadb-cluster.yaml` for an example.
+6
View File
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: mariadb-system
resources:
- operator-crds-helm.yaml
- operator-helm.yaml
+21
View File
@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mariadb-operator-crds
namespace: argocd
spec:
destination:
namespace: mariadb-system
server: https://kubernetes.default.svc
project: default
source:
chart: mariadb-operator-crds
repoURL: https://mariadb-operator.github.io/mariadb-operator
targetRevision: 25.10.4
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
+26
View File
@@ -0,0 +1,26 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mariadb-operator
namespace: argocd
spec:
destination:
namespace: mariadb-system
server: https://kubernetes.default.svc
project: default
source:
chart: mariadb-operator
repoURL: https://mariadb-operator.github.io/mariadb-operator
targetRevision: 25.10.4
helm:
values: |
metrics:
enabled: true
serviceMonitor:
enabled: false
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
@@ -0,0 +1,22 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: mbgwp-mariadb-credentials
namespace: mbgwp
spec:
refreshInterval: 15m
secretStoreRef:
name: vault-backend
kind: ClusterSecretStore
target:
name: mbgwp-mariadb-credentials
creationPolicy: Owner
data:
- secretKey: root-password
remoteRef:
key: kv/mariadboperator
property: mariadb-operator-root-password
- secretKey: password
remoteRef:
key: kv/mariadboperator
property: mariadb-operator-user-password