Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
8 contributors

Users who have contributed to this file

@AMecea @pedep @rstefan1 @smanpathak @MerceaOtniel @ahmadalli @jgleonard @imriss
90 lines (75 sloc) 2.29 KB
apiVersion: mysql.presslabs.org/v1alpha1
kind: MysqlCluster
metadata:
name: my-cluster
spec:
replicas: 2
secretName: my-secret
## For setting custom docker image or specifying mysql version
## the image field has priority over mysqlVersion.
# image: percona:5.7
# mysqlVersion: 5.7
# initBucketURL: gs://bucket_name/backup.xtrabackup.gz
# initBucketSecretName:
## PodDisruptionBudget
# minAvailable: 1
## For recurrent backups set backupSchedule with a cronjob expression
# backupSchedule:
# backupURL: s3://bucket_name/
# backupSecretName:
# backupScheduleJobsHistoryLimit:
# backupRemoteDeletePolicy:
## Custom Server ID Offset for replication
# serverIDOffset: 100
## Configs that will be added to my.cnf for cluster
# mysqlConf:
# innodb-buffer-size: 128M
## Specify additional pod specification
# podSpec:
# imagePullSecrets: []
# labels: {}
# annotations: {}
# affinity:
# podAntiAffinity:
# preferredDuringSchedulingIgnoredDuringExecution:
# weight: 100
# podAffinityTerm:
# topologyKey: "kubernetes.io/hostname"
# labelSelector:
# matchlabels: <cluster-labels>
# nodeSelector: {}
# resources:
# requests:
# memory: 1G
# cpu: 200m
# tolerations: []
# priorityClassName:
# serviceAccountName: default
## Specify additional volume specification
# volumeSpec:
# # https://godoc.org/k8s.io/api/core/v1#EmptyDirVolumeSource
# emptyDir: {}
# # https://godoc.org/k8s.io/api/core/v1#HostPathVolumeSource
# hostPath:
# path:
# type:
# # https://godoc.org/k8s.io/api/core/v1#PersistentVolumeClaimSpec
# persistentVolumeClaim:
# accessModes: [ "ReadWriteOnce" ]
# resources:
# requests:
# storage: 1Gi
## Specify service objectives
## If thoses SLO are not fulfilled by cluster node then that node is
## removed from scheme
# targetSLO:
# maxSlaveLatency: 10s
## You can use custom volume for /tmp partition if needed.
## Is disabled by default
# tmpfsSize: 1Gi
## Set cluster in read only
# readOnly: false
## Add metrics exporter extra arguments
# metricsExporterExtraArgs:
# - --collect.info_schema.userstats
# - --collect.perf_schema.file_events
You can’t perform that action at this time.