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 内部

相关推荐
尘佑不尘21 分钟前
shodan5,参数使用,批量查找Mongodb未授权登录,jenkins批量挖掘
数据库·笔记·mongodb·web安全·jenkins·1024程序员节
传输能手29 分钟前
从三方云服务器将数据迁移至本地,如何保障安全高效?
大数据·服务器·数据库
BinTools图尔兹35 分钟前
CQ社区版 v2024.10 | 支持k8s、helm部署!
数据库·安全·k8s·helm·数据安全·数据库管理员
北笙··1 小时前
Redis慢查询分析优化
数据库·redis·缓存
p-knowledge1 小时前
redis的三种客户端
数据库·redis·缓存
积水成江1 小时前
Redis相关面试题
数据库·redis·缓存
bigcarp1 小时前
Django ORM 数据库管理 提高查询、更新性能的技巧和编程习惯:
数据库·python·django
我又来搬代码了1 小时前
【Android】使用TextView实现按钮开关代替Switch开关
android
Zilliz Planet2 小时前
GenAI 生态系统现状:不止大语言模型和向量数据库
数据库·人工智能·语言模型·自然语言处理
瓜牛_gn3 小时前
redis详细教程(4.GEO,bitfield,Stream)
数据库·redis·缓存