bitpoke- mysql-operator cluster

sidecar版本只支持到8.0.35,35可以支持到mysql8.0.35 .

默认镜像是5.7的。需要自己打sidecar的镜像:

Docker image for sidecar containers

https://github.com/bitpoke/mysql-operator/tree/master/images/mysql-operator-sidecar-8.0

参考5.7里面的Dockerfile

###############################################################################

FROM bitpoke/mysql-operator-sidecar-8.0:v0.6.3

xxx.com/database/bitpoke/mysql-operator-sidecar-8.0:v0.6.3.1

USER root

COPY percona-toolkit_3.6.0-1.bullseye_amd64.deb /

COPY percona-xtrabackup-80_8.0.35-31-1.bullseye_amd64.deb /

RUN apt-get update && apt-get install zstd && apt-get clean && rm -fr /var/cache/apt/archives && /bin/sh -c set -ex && mkdir -p /tmp/dl && cd /tmp/dl && mv /percona-toolkit_3.6.0-1.bullseye_amd64.deb /tmp/dl && mv /percona-xtrabackup-80_8.0.35-31-1.bullseye_amd64.deb /tmp/dl && dpkg -i *.deb && cd / && rm -rf /tmp/dl && apt-get autoremove && apt-get autoclean # buildkit

USER mysql

ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]

Cluster模板:

apiVersion: mysql.presslabs.org/v1alpha1

kind: MysqlCluster

metadata:

name: test-mysql

labels:

database_type: mysql

spec:

replicas: 2

secretName: root-secret-mysql

image: xxxxx/database/percona/percona-server:8.0.36.3-28

#image: percona:8.0

mysqlVersion: "8.0.36"

backupSecretName: mysql-cluster-backup-secret

backupURL: s3://rdbbackmysql/

backupSchedule: "0 18 15 * * *"

backupScheduleJobsHistoryLimit: 1

backupRemoteDeletePolicy: delete

mysqlConf:

default_authentication_plugin: caching_sha2_password

default-time-zone: 'Asia/Shanghai'

disable_ssl: 1

skip_ssl: 1

volumeSpec:

persistentVolumeClaim:

accessModes: [ "ReadWriteOnce" ]

storageClassName: csi-cephfs-sc

resources:

requests:

storage: 10Gi

podSpec:

imagePullSecrets:

  • name: dbaregistry

imagePullPolicy: IfNotPresent

annotations:

TZ: "Asia/Shanghai"

mysqlOperatorSidecarResources:

limits:

memory: 400Mi

cpu: 200m

metricsExporterResources:

requests:

memory: 100Mi

cpu: 100m

limits:

memory: 100Mi

cpu: 200m

resources:

requests:

memory: 1G

cpu: 300m

limits:

memory: 2G

cpu: 800m

云原生数据MySQL调研(percona与bitpoke) - elrond的博客 | elrond Blog

将 MySQL 通过 bitpoke/mysql-operator 部署到 k8s 内部

相关推荐
tatasix21 分钟前
MySQL UPDATE语句执行链路解析
数据库·mysql
南城花随雪。34 分钟前
硬盘(HDD)与固态硬盘(SSD)详细解读
数据库
儿时可乖了35 分钟前
使用 Java 操作 SQLite 数据库
java·数据库·sqlite
懒是一种态度37 分钟前
Golang 调用 mongodb 的函数
数据库·mongodb·golang
天海华兮39 分钟前
mysql 去重 补全 取出重复 变量 函数 和存储过程
数据库·mysql
gma9992 小时前
Etcd 框架
数据库·etcd
爱吃青椒不爱吃西红柿‍️2 小时前
华为ASP与CSP是什么?
服务器·前端·数据库
Yz98762 小时前
hive的存储格式
大数据·数据库·数据仓库·hive·hadoop·数据库开发
武子康2 小时前
大数据-231 离线数仓 - DWS 层、ADS 层的创建 Hive 执行脚本
java·大数据·数据仓库·hive·hadoop·mysql
黑色叉腰丶大魔王2 小时前
《MySQL 数据库备份与恢复》
mysql