Mysql 利用赫尔姆图研究Kubernetes上的MariaDB误差

Mysql 利用赫尔姆图研究Kubernetes上的MariaDB误差,mysql,kubernetes,mariadb,kubernetes-helm,matomo,Mysql,Kubernetes,Mariadb,Kubernetes Helm,Matomo,我正试图在Kubernetes集群上部署MariaDB,以便使用Helm chart和我在下面添加的文件提供Matomo服务。 但吊舱被困在一个带有以下日志的紧急回退装置上: 2021-05-03 09:07:00+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.5.9+maria~focal started. 2021-05-03 09:07:01+00:00 [Note] [Entrypoint]: Swi

我正试图在Kubernetes集群上部署MariaDB,以便使用Helm chart和我在下面添加的文件提供Matomo服务。 但吊舱被困在一个带有以下日志的紧急回退装置上:

2021-05-03 09:07:00+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.5.9+maria~focal started.
2021-05-03 09:07:01+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2021-05-03 09:07:01+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.5.9+maria~focal started.
2021-05-03  9:07:02 0 [Note] mysqld (mysqld 10.5.9-MariaDB-1:10.5.9+maria~focal) starting as process 1 ...
2021-05-03  9:07:03 0 [Note] InnoDB: Uses event mutexes
2021-05-03  9:07:03 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-05-03  9:07:03 0 [Note] InnoDB: Number of pools: 1
2021-05-03  9:07:03 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2021-05-03  9:07:03 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
2021-05-03  9:07:03 0 [Note] InnoDB: Using Linux native AIO
2021-05-03  9:07:03 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
2021-05-03  9:07:03 0 [Note] InnoDB: Completed initialization of buffer pool
2021-05-03  9:07:03 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2021-05-03  9:07:03 0 [Warning] InnoDB: Retry attempts for reading partial data failed.
2021-05-03  9:07:03 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
2021-05-03  9:07:03 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
2021-05-03  9:07:03 0 [ERROR] [FATAL] InnoDB: Tried to read 65536 bytes at offset 38400, but was only able to read 0.Cannot read from file. OS error number 13.
210503  9:07:03 [ERROR] mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.

To report this bug, see https://mariadb.com/kb/en/reporting-bugs

We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed, 
something is definitely wrong and this may fail.

Server version: 10.5.9-MariaDB-1:10.5.9+maria~focal
key_buffer_size=134217728
read_buffer_size=131072
max_used_connections=0
max_threads=153
thread_count=0
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467864 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0x0 thread_stack 0x49000
mysqld(my_print_stacktrace+0x32)[0x5580060f8af2]
Printing to addr2line failed
mysqld(handle_fatal_signal+0x485)[0x558005b4e6f5]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x153c0)[0x7fbde3b0f3c0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7fbde361618b]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)[0x7fbde35f5859]
mysqld(+0x62dd5b)[0x558005810d5b]
mysqld(+0x610d02)[0x5580057f3d02]
mysqld(+0xcdd9c6)[0x558005ec09c6]
mysqld(+0xcc8d7b)[0x558005eabd7b]
mysqld(+0xccdc4b)[0x558005eb0c4b]
mysqld(+0xcd1f49)[0x558005eb4f49]
mysqld(+0xcd2570)[0x558005eb5570]
mysqld(+0x6264eb)[0x5580058094eb]
mysqld(+0xc65d59)[0x558005e48d59]
mysqld(_Z24ha_initialize_handlertonP13st_plugin_int+0x82)[0x558005b51792]
mysqld(+0x76c2aa)[0x55800594f2aa]
mysqld(_Z11plugin_initPiPPci+0x965)[0x558005950585]
mysqld(+0x68b6ab)[0x55800586e6ab]
mysqld(_Z11mysqld_mainiPPc+0x455)[0x558005874275]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7fbde35f70b3]
mysqld(_start+0x2e)[0x55800586901e]
The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains
information that should help you find out what is causing the crash.
Writing a core file...
Working directory at /var/lib/mysql
Resource Limits:
Limit                     Soft Limit           Hard Limit           Units     
Max cpu time              unlimited            unlimited            seconds   
Max file size             unlimited            unlimited            bytes     
Max data size             unlimited            unlimited            bytes     
Max stack size            8388608              unlimited            bytes     
Max core file size        unlimited            unlimited            bytes     
Max resident set          unlimited            unlimited            bytes     
Max processes             unlimited            unlimited            processes 
Max open files            1048576              1048576              files     
Max locked memory         67108864             67108864             bytes     
Max address space         unlimited            unlimited            bytes     
Max file locks            unlimited            unlimited            locks     
Max pending signals       63912                63912                signals   
Max msgqueue size         819200               819200               bytes     
Max nice priority         0                    0                    
Max realtime priority     0                    0                    
Max realtime timeout      unlimited            unlimited            us        
Core pattern: |/usr/share/apport/apport %p %s %c %d %P %E

Fatal signal 11 while backtracing
values.yaml:

name: mariadb # e.g. - box-model
image: mariadb:latest # e.g. bsmchacr.azurecr.io/helloworld:50
deployment:
  extraEnvs:
    - name: MYSQL_DATABASE
      value: db
    - name: MYSQL_ROOT_PASSWORD
      value: password
    - name: MYSQL_USER
      value: matomo
    - name: MYSQL_PASSWORD
      value: password
  replicas: 1
  strategy: RollingUpdate
  imagePullPolicy: IfNotPresent
  containerPort: 3306 # May need to override
  volumeMounts:
    mountPath: /var/lib/mysql
    name: db-data
  restartPolicy: Always
  nodeSelectorOs: linux
  annotations:
    fluxcdautomated: "true"
ingress:
  host: # e.g. - box-model.it.bsmch.net
service:
  type: ClusterIP
volumes:
  pvc:
    name: db-data
    storageClassName: azurefile
  accessModes:
    - ReadWriteMany
  storage: 2Gi
secrets:
  MYSQL_DATABASE:
    name: MYSQL_DATABASE
    key: db
  MYSQL_ROOT_PASSWORD:
    name: MYSQL_ROOT_PASSWORD
    key: password
  MYSQL_USER:
    name: MYSQL_USER
    key: matomo
  MYSQL_PASSWORD:
    name: MYSQL_PASSWORD
    key: password  
  keyVaultName: # Fill in key vault name
  backendType: azureKeyVault
  extraSecrets: 
  # - env: MY_SECRET_KEY   // the environment variable
  #   name: my-secret-key  // The name of the secret created inside the cluster
  #   key: my-secret-value // The name of the key vault secret
configMap:
  enabled: false # override if configMap is required
  data: # Fill configuration data in release
  subPath: config.js # filename, may need to override
  mountPath: /usr/share/nginx/html/config.js # May need to override
mariadb.yaml(发布文件):

我尝试将图像标签版本更改为10.4.12和10.3.16,但它只给了我其他错误

我尝试添加值为“1”的MYSQL_INITDB_SKIP_TZINFO环境变量,但它甚至无法启动

如果有人知道我能做些什么,我会非常感激

apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
  name: mariadb
  namespace: devteam
spec:
  releaseName: mariadb
  chart:
    git: ssh://git@gitlab.it.bsmch.net:222/mitkan/kubernetes.git
    ref: master
    path: charts/mariadb
  values:
    image: mariadb:latest
    name: mariadb
    ingress:
      host: mariadb.aks-test.bsmch.net
    secrets:
      keyVaultName: BASMACH-TEST-DEVTEAM-KV
    deployment:
      extraEnvs:
        - name: MYSQL_DATABASE
          value: db
        - name: MYSQL_ROOT_PASSWORD
          value: password
        - name: MYSQL_USER
          value: matomo
        - name: MYSQL_PASSWORD
          value: password