-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
anantharam
committed
Aug 1, 2024
1 parent
1ddcd2a
commit 5c93bc1
Showing
6 changed files
with
65 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,42 @@ | ||
apiVersion: mariadb.mmontes.io/v1alpha1 | ||
apiVersion: k8s.mariadb.com/v1alpha1 | ||
kind: MariaDB | ||
metadata: | ||
name: matomo-mariadb | ||
spec: | ||
rootPasswordSecretKeyRef: | ||
name: mariadb-secret | ||
key: root-password | ||
name: {{ .Values.mariadb.rootPasswordSecretKeyRef.name }} | ||
key: {{ .Values.mariadb.rootPasswordSecretKeyRef.key }} | ||
generate: {{ .Values.mariadb.rootPasswordSecretKeyRef.generate }} | ||
|
||
image: | ||
repository: mariadb | ||
tag: {{ .Values.mariadb.image.tag | default "11.0.3" }} | ||
pullPolicy: IfNotPresent | ||
storage: | ||
size: {{ .Values.mariadb.storage.size }} | ||
storageClassName: {{ .Values.mariadb.storage.storageClassName }} | ||
resizeInUseVolumes: {{ .Values.mariadb.storage.resizeInUseVolumes }} | ||
waitForVolumeResize: {{ .Values.mariadb.storage.waitForVolumeResize }} | ||
|
||
port: 3306 | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
|
||
volumeClaimTemplate: | ||
resources: | ||
requests: | ||
storage: {{ .Values.mariadb.volumeClaimTemplate.resources.requests.storage | default "1Gi" }} | ||
accessModes: | ||
- ReadWriteOnce | ||
podDisruptionBudget: | ||
maxUnavailable: 50% | ||
|
||
myCnf: | | ||
[mariadb] | ||
bind-address=0.0.0.0 | ||
bind-address=* | ||
default_storage_engine=InnoDB | ||
binlog_format=row | ||
innodb_autoinc_lock_mode=2 | ||
innodb_buffer_pool_size=1024M | ||
max_allowed_packet=256M | ||
resources: | ||
requests: | ||
cpu: {{ .Values.mariadb.resources.requests.cpu | default "100m" }} | ||
memory: {{ .Values.mariadb.resources.requests.memory | default "128Mi" }} | ||
limits: | ||
cpu: {{ .Values.mariadb.resources.limits.cpu | default "300m" }} | ||
memory: {{ .Values.mariadb.resources.limits.memory | default "512Mi" }} | ||
username: {{ .Values.mariadb.username }} | ||
passwordSecretKeyRef: | ||
name: {{ .Values.mariadb.passwordSecretKeyRef.name }} | ||
key: {{ .Values.mariadb.passwordSecretKeyRef.key }} | ||
generate: {{ .Values.mariadb.passwordSecretKeyRef.generate }} | ||
database: {{ .Values.mariadb.database }} | ||
|
||
image: {{ .Values.mariadb.image }} | ||
imagePullPolicy: {{ .Values.mariadb.imagePullPolicy }} | ||
imagePullSecrets: | ||
- name: registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,42 @@ | ||
matomo: | ||
image: | ||
tag: latest | ||
mariadb: | ||
enabled: false | ||
externalDatabase: | ||
host: matomo-mariadb | ||
port: 3306 | ||
user: matomo | ||
database: matomo | ||
existingSecret: mariadb-secret | ||
existingSecret: matomo-user | ||
persistence: | ||
size: 1Gi | ||
cronjobs: | ||
archive: | ||
persistence: | ||
enabled: false | ||
taskScheduler: | ||
persistence: | ||
enabled: false | ||
service: | ||
type: ClusterIP | ||
|
||
# This are configs for external mariadb deployment | ||
mariadb: | ||
image: | ||
tag: "11.0.3" | ||
volumeClaimTemplate: | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 300m | ||
memory: 512Mi | ||
rootPasswordSecretKeyRef: #cannot remove this when using zfs-localpv, the pod remains in pending state due to pvc issue | ||
name: matomo-secrets | ||
key: MARIADB_ROOT_PASSWORD | ||
generate: true | ||
storage: | ||
size: 1Gi | ||
storageClassName: zfs-localpv # using zfs instead of rook-ceph because with rook ceph liveness and readiness probes fail as root password doesnt get set properly | ||
resizeInUseVolumes: true | ||
waitForVolumeResize: true | ||
image: "mariadb:latest" | ||
imagePullPolicy: IfNotPresent | ||
username: matomo | ||
passwordSecretKeyRef: | ||
name: matomo-user | ||
key: db-password # this should be set to db-password as when we pass externalDatabase.existingSecret in values file, it checks for this key | ||
generate: true | ||
database: matomo-mariadb |