k8s-mysql主从数据库
(1)mysql-secret(记录密码)apiVersion: v1kind: Secretmetadata: name: mysql namespace: defaulttype: Opaquedata: root_pass: MTIzNDU2 # 用base64转码后的字符 123456(2)mysql-configmap(注册主节点配置以及从节点配置)apiVersion: v1kind: ConfigMapmetadata: name