Convert MariaDB from Helm Release to Application
This commit is contained in:
parent
e6baed194d
commit
3e0d23e18b
1 changed files with 47 additions and 44 deletions
|
@ -1,53 +1,56 @@
|
||||||
---
|
---
|
||||||
apiVersion: source.toolkit.fluxcd.io/v1
|
# 1. MariaDB Operator CRDs
|
||||||
kind: HelmRepository
|
apiVersion: argoproj.io/v1alpha1
|
||||||
metadata:
|
kind: Application
|
||||||
name: mariadb-operator
|
|
||||||
namespace: flux-system
|
|
||||||
spec:
|
|
||||||
url: https://helm.mariadb.com/mariadb-operator
|
|
||||||
interval: 1h
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
||||||
kind: HelmRelease
|
|
||||||
metadata:
|
metadata:
|
||||||
name: mariadb-operator-crds
|
name: mariadb-operator-crds
|
||||||
namespace: database
|
namespace: argocd
|
||||||
spec:
|
spec:
|
||||||
interval: 30m
|
project: default
|
||||||
chart:
|
source:
|
||||||
spec:
|
repoURL: "https://charts.mariadb.com/mariadb-operator"
|
||||||
chart: mariadb-operator-crds
|
chart: "mariadb-operator-crds"
|
||||||
version: 0.38.1
|
targetRevision: "0.38.1"
|
||||||
sourceRef:
|
helm:
|
||||||
kind: HelmRepository
|
releaseName: "mariadb-operator-crds"
|
||||||
name: mariadb-operator
|
destination:
|
||||||
namespace: flux-system
|
server: "https://kubernetes.default.svc"
|
||||||
install:
|
namespace: database
|
||||||
createNamespace: true
|
syncPolicy:
|
||||||
upgrade:
|
automated:
|
||||||
disableWait: true
|
prune: true
|
||||||
timeout: 5m
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- SkipHooks=false
|
||||||
|
- SyncWave=0 # ensure this is applied first
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
# 2. MariaDB Operator
|
||||||
kind: HelmRelease
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: mariadb-operator
|
name: mariadb-operator
|
||||||
namespace: database
|
namespace: argocd
|
||||||
spec:
|
spec:
|
||||||
interval: 30m
|
project: default
|
||||||
chart:
|
source:
|
||||||
spec:
|
repoURL: "https://charts.mariadb.com/mariadb-operator"
|
||||||
chart: mariadb-operator
|
chart: "mariadb-operator"
|
||||||
version: 0.38.1
|
targetRevision: "0.38.1"
|
||||||
sourceRef:
|
helm:
|
||||||
kind: HelmRepository
|
releaseName: "mariadb-operator"
|
||||||
name: mariadb-operator
|
destination:
|
||||||
namespace: flux-system
|
server: "https://kubernetes.default.svc"
|
||||||
install:
|
namespace: database
|
||||||
createNamespace: true
|
syncPolicy:
|
||||||
dependsOn:
|
automated:
|
||||||
- name: mariadb-operator-crds
|
prune: true
|
||||||
namespace: database
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- SkipHooks=false
|
||||||
|
- SyncWave=1 # ensure this waits for mariadb-operator-crds
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue