Helm部署mysql集群问题

问题描述

  • 通过k3s部署的k8s集群,然后通过helm chart部署的mysql集群READY状态一直为0/1


  • 从节点无法通过mysql -u 连接,有没有大佬知道这是什么原因导致的

helm配置如下

auth:
  rootPassword: "123456"
  database: ry-vue

initdbScriptsConfigMap: ruoyi-init-sql
networkPolicy:
  enabled: false
  allowSameNamespace: true
primary:
  persistence:
    size: 1Gi
    enabled: true
  extraEnvVars:
    - name: TZ
      value: "Asia/Shanghai"
  
secondary:
  replicaCount: 2
  persistence:
    size: 1Gi
    enabled: true
  extraEnvVars:
    - name: TZ
      value: "Asia/Shanghai"

architecture: replication

这个问题已经解决