Skip to content

Commit a962ceb

Browse files
authored
MariaDB Operator setup (#5921)
* feat(mariadb): Setup the MariaDB Operator Signed-off-by: Nicolas Lamirault <[email protected]>
1 parent 1ad4fe8 commit a962ceb

File tree

5 files changed

+139
-0
lines changed

5 files changed

+139
-0
lines changed

gitops/argocd/apps/system/values-talos-homelab.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ argocd-apps:
3333
- appName: dragonfly-operator
3434
namespace: database
3535
targetRevision: HEAD
36+
- appName: mariadb-operator
37+
namespace: database
38+
targetRevision: HEAD
3639
- appName: descheduler
3740
namespace: kube-system
3841
targetRevision: HEAD

gitops/argocd/charts/crds/crds/Chart.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ dependencies:
4949
repository: oci://public.ecr.aws/karpenter
5050
version: 1.0.2
5151
condition: karpenter.enabled
52+
# Database Operators
53+
- name: mariadb-operator-crds
54+
repository: https://mariadb-operator.github.io/mariadb-operator
55+
version: 0.36.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
# Copyright (C) Nicolas Lamirault <[email protected]>
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# SPDX-License-Identifier: Apache-2.0
17+
18+
apiVersion: v2
19+
type: application
20+
name: mariadb-operator
21+
version: 1.0.0
22+
appVersion: 1.0.0
23+
dependencies:
24+
- name: mariadb-operator
25+
repository: https://mariadb-operator.github.io/mariadb-operator
26+
version: 0.36.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
# Copyright (C) Nicolas Lamirault <[email protected]>
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# SPDX-License-Identifier: Apache-2.0
17+
18+
mariadb-operator:
19+
resources:
20+
limits:
21+
memory: 500Mi
22+
requests:
23+
cpu: 10m
24+
memory: 50Mi
25+
26+
metrics:
27+
serviceMonitor:
28+
# TODO: https://github.com/mariadb-operator/mariadb-operator/pull/1047
29+
relabelings:
30+
- action: replace
31+
replacement: portefaix-talos-homelab
32+
targetLabel: cluster
33+
34+
webhook:
35+
resources:
36+
limits:
37+
memory: 200Mi
38+
requests:
39+
cpu: 5m
40+
memory: 10Mi
41+
serviceMonitor:
42+
# TODO: https://github.com/mariadb-operator/mariadb-operator/pull/1047
43+
relabelings:
44+
- action: replace
45+
replacement: portefaix-talos-homelab
46+
targetLabel: cluster
47+
48+
certController:
49+
resources:
50+
limits:
51+
memory: 200Mi
52+
requests:
53+
cpu: 5m
54+
memory: 10Mi
55+
serviceMonitor:
56+
# TODO: https://github.com/mariadb-operator/mariadb-operator/pull/1047
57+
relabelings:
58+
- action: replace
59+
replacement: portefaix-talos-homelab
60+
targetLabel: cluster
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
# Copyright (C) Nicolas Lamirault <[email protected]>
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# SPDX-License-Identifier: Apache-2.0
17+
18+
mariadb-operator:
19+
crds:
20+
install: false
21+
22+
logLevel: INFO
23+
currentNamespaceOnly: false
24+
25+
# TODO: create a PR for that
26+
# additionalLabels:
27+
# portefaix.xyz/version: v0.54.0
28+
29+
metrics:
30+
enabled: true
31+
serviceMonitor:
32+
enabled: true
33+
additionalLabels:
34+
prometheus.io/operator: portefaix
35+
36+
webhook:
37+
serviceMonitor:
38+
enabled: true
39+
additionalLabels:
40+
prometheus.io/operator: portefaix
41+
42+
certController:
43+
serviceMonitor:
44+
enabled: true
45+
additionalLabels:
46+
prometheus.io/operator: portefaix

0 commit comments

Comments
 (0)