mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Phase 1: Add MariaDB operator installation
This commit is contained in:
@@ -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.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: mariadb-system
|
||||||
|
resources:
|
||||||
|
- operator-crds-helm.yaml
|
||||||
|
- operator-helm.yaml
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user