Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

部署数据库,利用mysql-operator,部署完成之后登录进去手动创建confluence库

Code Block

apiVersion: v1
kind: Secret
metadata:
  name: confluence-secret
  namespace: tools
type: Opaque
data:
  # root password is required to be specified
  ROOT_PASSWORD: Y29uZmx1ZW5jZQ==
  ## 密码为confluence
  # DATABASE:
  # USER:
  # PASSWORD:
---
apiVersion: mysql.presslabs.org/v1alpha1
kind: MysqlCluster
metadata:
  name: confluence
  namespace: tools
spec:
  replicas: 1
  secretName: confluence-secret
  image: harbor.uenpay.com/base/percona:8.0
  mysqlVersion: "8.0"
 
  mysqlConf:
    default_authentication_plugin: caching_sha2_password
    character-set-server: utf8mb4
    collation-server: utf8mb4_bin
    transaction-isolation: READ-COMMITTED
    max-connections: 1024
    max-allowed-packet: 256M
    innodb-log-file-size: 2g
    log-bin-trust-function-creators: 'true'

  podSpec:
    nodeSelector:
      zone: dell
    resources:
      requests:
        cpu: "4"
        memory: 8Gi
      limits:
        cpu: "4"
        memory: 8Gi
 
  volumeSpec:
    persistentVolumeClaim:
      storageClassName: cephrbd-sc
      accessModes: [ "ReadWriteOnce" ]
      resources:
        requests:
          storage: 30Gi

...