-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatabase_v1alpha1_mysql.yaml
More file actions
24 lines (24 loc) · 1.12 KB
/
database_v1alpha1_mysql.yaml
File metadata and controls
24 lines (24 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
apiVersion: database.elnino.tech/v1alpha1
kind: MySQL
metadata:
labels:
app.kubernetes.io/name: yamo
app.kubernetes.io/managed-by: kustomize
name: mysql-sample
namespace: mysql-operator-test
spec:
image: percona/percona-server:8.4 # Preferably Percona images (MySQL)
initImage: ghcr.io/elninotech/yet-another-mysql-operator/init:latest # Optional: host init image yourself
storageClassName: rook-cephfs # Adjust to setup
storageSize: 10Gi # Default 10Gi scale to desired need.
port: 3306 # Optional: Change MySQL port
replicas: 3 # Optional: scale to more or less replicas (max 9.)
rootPasswordSecretName: mysql-sample-root-credentials # Optional: root secret name
mysqlConf: # Optional: Example config options (https://dev.mysql.com/doc/refman/8.4/en/server-system-variables.html)
max-connections: 800
innodb-buffer-pool-size: 1G
groupReplication:
groupName: 123e4567-e89b-12d3-a456-426614174000 # UUID (Optional)
mode: SinglePrimary # Change Mode (Optional)
forceBootstrap: false # Optional Force the bootstrap
replicationUserSecret: mysql-sample-repl-creds # Optional: Set replication secret name