MySQL crashes when my pods connects

July 3, 2019 166 views
MySQL Node.js

I created a Kubernetes cluster in Digital Ocean. The cluster has one node pool with 3 4GB memory / 2vCPU nodes.

I have linked GitLab CI to the cluster following the GitLab documentation

Next I installed Helm Tiller, Ingress, Cert-Manager, and Prometheus using the GitLab user interface. Then I configured my local kubectl and Helm, and upgraded the Tiller instance installed by GitLab. Also I had to run the steps in this forum answer to get Helm to be able to deploy my application in CI.

The result is a succesful deployment. (CI output)

However, as soon as the app makes a database request to the MySQL instance, the MySQL pod just crashes. After several tries, I managed to get the MySQL crash log below.

When I forward the port to localhost, I can connect to the database and execute queries. I can also see my database tables have been created.

However, when I run the following code from within my application pod, the MySQL pod crashes.

const Sequelize = require('sequelize')
s = new Sequelize(`mysql://${process.env.DATABASE_USER}:${process.env.DATABASE_PASSWORD}@${process.env.DATABASE_HOST}:3306`)
q = s.getQueryInterface()
q.showAllTables()

I did not have this issue when I was using a Kubernets cluster in Google Cloud.

root@review-split-tsco-s44xj5-mysql-846c64646b-58492:/# tail -f /var/log/mysql/error.log 
2019-07-03T14:43:13.400989Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2019-07-03T14:43:13.405608Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2019-07-03T14:43:13.406408Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2019-07-03T14:43:13.406515Z 0 [Note] IPv6 is available.
2019-07-03T14:43:13.406537Z 0 [Note]   - '::' resolves to '::';
2019-07-03T14:43:13.406573Z 0 [Note] Server socket created on IP: '::'.
2019-07-03T14:43:13.406729Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190703 14:43:13
2019-07-03T14:43:13.423675Z 0 [Note] Event Scheduler: Loaded 0 events
2019-07-03T14:43:13.424443Z 0 [Note] mysqld: ready for connections.
Version: '5.7.14'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
tail: unrecognized file system type 0x794c7630 for '/var/log/mysql/error.log'. please report this to bug-coreutils@gnu.org. reverting to polling
*** buffer overflow detected ***: mysqld terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x731af)[0x7f3ded20c1af]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f3ded291cf7]
/lib/x86_64-linux-gnu/libc.so.6(+0xf6f10)[0x7f3ded28ff10]
mysqld(_Z19find_or_create_hostP10PFS_threadPKcj+0x395)[0xea96c5]
mysqld(_Z22find_or_create_accountP10PFS_threadPKcjS2_j+0x3d2)[0xef3e72]
mysqld(_Z18set_thread_accountP10PFS_thread+0x36)[0xeb1476]
mysqld(pfs_set_thread_account_v1+0xa0)[0xe93760]
mysqld(_Z16acl_authenticateP3THD19enum_server_command+0xfb2)[0x7b1a52]
mysqld[0xc14e6d]
mysqld(_Z22thd_prepare_connectionP3THD+0x53)[0xc15f23]
mysqld(handle_connection+0x24f)[0xd122ef]
mysqld(pfs_spawn_thread+0x1b4)[0xe93094]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x80a4)[0x7f3dee7be0a4]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f3ded28187d]
======= Memory map: ========
00400000-01a34000 r-xp 00000000 fe:01 1967664                            /usr/sbin/mysqld
01c34000-01d25000 r--p 01634000 fe:01 1967664                            /usr/sbin/mysqld
01d25000-01dd1000 rw-p 01725000 fe:01 1967664                            /usr/sbin/mysqld
01dd1000-01e90000 rw-p 00000000 00:00 0 
026e0000-03252000 rw-p 00000000 00:00 0                                  [heap]
7f3da0000000-7f3da0021000 rw-p 00000000 00:00 0 
7f3da0021000-7f3da4000000 ---p 00000000 00:00 0 
7f3da4000000-7f3da4023000 rw-p 00000000 00:00 0 
7f3da4023000-7f3da8000000 ---p 00000000 00:00 0 
7f3da8000000-7f3da8021000 rw-p 00000000 00:00 0 
7f3da8021000-7f3dac000000 ---p 00000000 00:00 0 
7f3dac000000-7f3dac021000 rw-p 00000000 00:00 0 
7f3dac021000-7f3db0000000 ---p 00000000 00:00 0 
7f3db37ff000-7f3db3800000 ---p 00000000 00:00 0 
7f3db3800000-7f3db4000000 rw-p 00000000 00:00 0 
7f3db4000000-7f3db4024000 rw-p 00000000 00:00 0 
7f3db4024000-7f3db8000000 ---p 00000000 00:00 0 
7f3db8000000-7f3db8021000 rw-p 00000000 00:00 0 
7f3db8021000-7f3dbc000000 ---p 00000000 00:00 0 
7f3dbc000000-7f3dbc024000 rw-p 00000000 00:00 0 
7f3dbc024000-7f3dc0000000 ---p 00000000 00:00 0 
7f3dc0000000-7f3dc0024000 rw-p 00000000 00:00 0 
7f3dc0024000-7f3dc4000000 ---p 00000000 00:00 0 
7f3dc4000000-7f3dc4025000 rw-p 00000000 00:00 0 
7f3dc4025000-7f3dc8000000 ---p 00000000 00:00 0 
7f3dc811b000-7f3dc812f000 r-xp 00000000 fe:01 1836116                    /lib/x86_64-linux-gnu/libresolv-2.19.so
7f3dc812f000-7f3dc832e000 ---p 00014000 fe:01 1836116                    /lib/x86_64-linux-gnu/libresolv-2.19.so
7f3dc832e000-7f3dc832f000 r--p 00013000 fe:01 1836116                    /lib/x86_64-linux-gnu/libresolv-2.19.so
7f3dc832f000-7f3dc8330000 rw-p 00014000 fe:01 1836116                    /lib/x86_64-linux-gnu/libresolv-2.19.so
7f3dc8330000-7f3dc8332000 rw-p 00000000 00:00 0 
7f3dc8332000-7f3dc8337000 r-xp 00000000 fe:01 1836091                    /lib/x86_64-linux-gnu/libnss_dns-2.19.so
7f3dc8337000-7f3dc8536000 ---p 00005000 fe:01 1836091                    /lib/x86_64-linux-gnu/libnss_dns-2.19.so
7f3dc8536000-7f3dc8537000 r--p 00004000 fe:01 1836091                    /lib/x86_64-linux-gnu/libnss_dns-2.19.so
7f3dc8537000-7f3dc8538000 rw-p 00005000 fe:01 1836091                    /lib/x86_64-linux-gnu/libnss_dns-2.19.so
7f3dc8538000-7f3dc87f9000 rw-p 00000000 00:00 0 
7f3dc87f9000-7f3dc87fa000 ---p 00000000 00:00 0 
7f3dc87fa000-7f3dc8ffa000 rw-p 00000000 00:00 0 
7f3dc8ffa000-7f3dc8ffb000 ---p 00000000 00:00 0 
7f3dc8ffb000-7f3dc97fb000 rw-p 00000000 00:00 0 
7f3dc97fb000-7f3dc97fc000 ---p 00000000 00:00 0 
7f3dc97fc000-7f3dc9ffc000 rw-p 00000000 00:00 0 
7f3dc9ffc000-7f3dc9ffd000 ---p 00000000 00:00 0 
7f3dc9ffd000-7f3dca7fd000 rw-p 00000000 00:00 0 
7f3dca7fd000-7f3dca7fe000 ---p 00000000 00:00 0 
7f3dca7fe000-7f3dcaffe000 rw-p 00000000 00:00 0 
7f3dcaffe000-7f3dcafff000 ---p 00000000 00:00 0 
7f3dcafff000-7f3dcb7ff000 rw-p 00000000 00:00 0 
7f3dcb7ff000-7f3dcb800000 ---p 00000000 00:00 0 
7f3dcb800000-7f3dcc000000 rw-p 00000000 00:00 0 
7f3dcc000000-7f3dcc021000 rw-p 00000000 00:00 0 
7f3dcc021000-7f3dd0000000 ---p 00000000 00:00 0 
7f3dd00b4000-7f3dd04b5000 rw-p 00000000 00:00 0 
7f3dd04b5000-7f3dd04b6000 ---p 00000000 00:00 0 
7f3dd04b6000-7f3dd0cb6000 rw-p 00000000 00:00 0 
7f3dd0cb6000-7f3dd0cb7000 ---p 00000000 00:00 0 
7f3dd0cb7000-7f3dd14b7000 rw-p 00000000 00:00 0 
7f3dd14b7000-7f3dd14b8000 ---p 00000000 00:00 0 
7f3dd14b8000-7f3dd1cb8000 rw-p 00000000 00:00 0 
7f3dd1cb8000-7f3dd1cb9000 ---p 00000000 00:00 0 
7f3dd1cb9000-7f3dd24b9000 rw-p 00000000 00:00 0 
7f3dd24b9000-7f3dd24ba000 ---p 00000000 00:00 0 
7f3dd24ba000-7f3dd2ee0000 rw-p 00000000 00:00 0 
7f3dd2ee0000-7f3dd2ee1000 ---p 00000000 00:00 0 
7f3dd2ee1000-7f3dd36e1000 rw-p 00000000 00:00 0 
7f3dd36e1000-7f3dd36e2000 ---p 00000000 00:00 0 
7f3dd36e2000-7f3dd3ee2000 rw-p 00000000 00:00 0 
7f3dd3ee2000-7f3dd3ee3000 ---p 00000000 00:00 0 
7f3dd3ee3000-7f3dd46e3000 rw-p 00000000 00:00 0 
7f3dd46e3000-7f3dd46e4000 ---p 00000000 00:00 0 
7f3dd46e4000-7f3dd4ee4000 rw-p 00000000 00:00 0 
7f3dd4ee4000-7f3dd4ee5000 ---p 00000000 00:00 0 
7f3dd4ee5000-7f3dd56e5000 rw-p 00000000 00:00 0 
7f3dd56e5000-7f3dd56e6000 ---p 00000000 00:00 0 
7f3dd56e6000-7f3dd5ee6000 rw-p 00000000 00:00 0 
7f3dd5ee6000-7f3dd5ee7000 ---p 00000000 00:00 0 
7f3dd5ee7000-7f3dd66e7000 rw-p 00000000 00:00 0 
7f3dd66e7000-7f3dd66e8000 ---p 00000000 00:00 0 
7f3dd66e8000-7f3dd6ee8000 rw-p 00000000 00:00 0 
7f3dd6ee8000-7f3dd6ee9000 ---p 00000000 00:00 0 
7f3dd6ee9000-7f3dd76e9000 rw-p 00000000 00:00 0 
7f3dd76e9000-7f3dd76ea000 ---p 00000000 00:00 0 
7f3dd76ea000-7f3dd7eea000 rw-p 00000000 00:00 0 
7f3dd7eea000-7f3dd7eeb000 ---p 00000000 00:00 0 
7f3dd7eeb000-7f3dd87e2000 rw-p 00000000 00:00 0 
7f3dd87f2000-7f3dd87fd000 r-xp 00000000 fe:01 1836093                    /lib/x86_64-linux-gnu/libnss_files-2.19.so
7f3dd87fd000-7f3dd89fc000 ---p 0000b000 fe:01 1836093                    /lib/x86_64-linux-gnu/libnss_files-2.19.so
7f3dd89fc000-7f3dd89fd000 r--p 0000a000 fe:01 1836093                    /lib/x86_64-linux-gnu/libnss_files-2.19.so
7f3dd89fd000-7f3dd89fe000 rw-p 0000b000 fe:01 1836093                    /lib/x86_64-linux-gnu/libnss_files-2.19.so
7f3dd89fe000-7f3dd89ff000 rw-p 00000000 00:00 0 
7f3dd8b7d000-7f3dd8b7e000 rw-p 00000000 00:00 0 
7f3dd8b7e000-7f3dd8b7f000 ---p 00000000 00:00 0 
7f3dd8b7f000-7f3dd8bbf000 rw-p 00000000 00:00 0 
7f3dd8bbf000-7f3dd8bc0000 ---p 00000000 00:00 0 
7f3dd8bc0000-7f3de323d000 rw-p 00000000 00:00 0 
7f3de323d000-7f3de3242000 rw-s 00000000 00:11 736330                     /[aio] (deleted)
7f3de3242000-7f3de3247000 rw-s 00000000 00:11 736329                     /[aio] (deleted)
7f3de3247000-7f3de324c000 rw-s 00000000 00:11 736328                     /[aio] (deleted)
7f3de324c000-7f3de3251000 rw-s 00000000 00:11 736327                     /[aio] (deleted)
7f3de3251000-7f3de3290000 rw-p 00000000 00:00 0 
7f3de3290000-7f3de3295000 rw-s 00000000 00:11 736326                     /[aio] (deleted)
7f3de3295000-7f3de329a000 rw-s 00000000 00:11 736325                     /[aio] (deleted)
7f3de329a000-7f3de329f000 rw-s 00000000 00:11 736324                     /[aio] (deleted)
7f3de329f000-7f3de32a4000 rw-s 00000000 00:11 736323                     /[aio] (deleted)
7f3de32a4000-7f3de32a9000 rw-s 00000000 00:11 736322                     /[aio] (deleted)
7f3de32a9000-7f3de32ae000 rw-s 00000000 00:11 736321                     /[aio] (deleted)
7f3de32ae000-7f3de400e000 rw-p 00000000 00:00 0 
7f3de400e000-7f3de400f000 ---p 00000000 00:00 0 
7f3de400f000-7f3ded199000 rw-p 00000000 00:00 0 
7f3ded199000-7f3ded33b000 r-xp 00000000 fe:01 1836048                    /lib/x86_64-linux-gnu/libc-2.19.so
7f3ded33b000-7f3ded53a000 ---p 001a2000 fe:01 1836048                    /lib/x86_64-linux-gnu/libc-2.19.so
7f3ded53a000-7f3ded53e000 r--p 001a1000 fe:01 1836048                    /lib/x86_64-linux-gnu/libc-2.19.so
7f3ded53e000-7f3ded540000 rw-p 001a5000 fe:01 1836048                    /lib/x86_64-linux-gnu/libc-2.19.so
7f3ded540000-7f3ded544000 rw-p 00000000 00:00 0 
7f3ded544000-7f3ded55a000 r-xp 00000000 fe:01 1836067                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f3ded55a000-7f3ded759000 ---p 00016000 fe:01 1836067                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f3ded759000-7f3ded75a000 rw-p 00015000 fe:01 1836067                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f3ded75a000-7f3ded85a000 r-xp 00000000 fe:01 1836078                    /lib/x86_64-linux-gnu/libm-2.19.so
7f3ded85a000-7f3deda59000 ---p 00100000 fe:01 1836078                    /lib/x86_64-linux-gnu/libm-2.19.so
7f3deda59000-7f3deda5a000 r--p 000ff000 fe:01 1836078                    /lib/x86_64-linux-gnu/libm-2.19.so
7f3deda5a000-7f3deda5b000 rw-p 00100000 fe:01 1836078                    /lib/x86_64-linux-gnu/libm-2.19.so
7f3deda5b000-7f3dedb47000 r-xp 00000000 fe:01 1836928                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20
7f3dedb47000-7f3dedd47000 ---p 000ec000 fe:01 1836928                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20
7f3dedd47000-7f3dedd4f000 r--p 000ec000 fe:01 1836928                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20
7f3dedd4f000-7f3dedd51000 rw-p 000f4000 fe:01 1836928                    /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20
7f3dedd51000-7f3dedd66000 rw-p 00000000 00:00 0 
7f3dedd66000-7f3dedd6d000 r-xp 00000000 fe:01 1836118                    /lib/x86_64-linux-gnu/librt-2.19.so
7f3dedd6d000-7f3dedf6c000 ---p 00007000 fe:01 1836118                    /lib/x86_64-linux-gnu/librt-2.19.so
7f3dedf6c000-7f3dedf6d000 r--p 00006000 fe:01 1836118                    /lib/x86_64-linux-gnu/librt-2.19.so
7f3dedf6d000-7f3dedf6e000 rw-p 00007000 fe:01 1836118                    /lib/x86_64-linux-gnu/librt-2.19.so
7f3dedf6e000-7f3dedf71000 r-xp 00000000 fe:01 1836061                    /lib/x86_64-linux-gnu/libdl-2.19.so
7f3dedf71000-7f3dee170000 ---p 00003000 fe:01 1836061                    /lib/x86_64-linux-gnu/libdl-2.19.so
7f3dee170000-7f3dee171000 r--p 00002000 fe:01 1836061                    /lib/x86_64-linux-gnu/libdl-2.19.so
7f3dee171000-7f3dee172000 rw-p 00003000 fe:01 1836061                    /lib/x86_64-linux-gnu/libdl-2.19.so
7f3dee172000-7f3dee17a000 r-xp 00000000 fe:01 1836056                    /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f3dee17a000-7f3dee379000 ---p 00008000 fe:01 1836056                    /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f3dee379000-7f3dee37a000 r--p 00007000 fe:01 1836056                    /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f3dee37a000-7f3dee37b000 rw-p 00008000 fe:01 1836056                    /lib/x86_64-linux-gnu/libcrypt-2.19.so
7f3dee37b000-7f3dee3a9000 rw-p 00000000 00:00 0 
7f3dee3a9000-7f3dee3b3000 r-xp 00000000 fe:01 1967662                    /usr/lib/x86_64-linux-gnu/libnuma.so.1.0.0
7f3dee3b3000-7f3dee5b2000 ---p 0000a000 fe:01 1967662                    /usr/lib/x86_64-linux-gnu/libnuma.so.1.0.0
7f3dee5b2000-7f3dee5b3000 r--p 00009000 fe:01 1967662                    /usr/lib/x86_64-linux-gnu/libnuma.so.1.0.0
7f3dee5b3000-7f3dee5b4000 rw-p 0000a000 fe:01 1967662                    /usr/lib/x86_64-linux-gnu/libnuma.so.1.0.0
7f3dee5b4000-7f3dee5b5000 r-xp 00000000 fe:01 1967577                    /lib/x86_64-linux-gnu/libaio.so.1.0.1
7f3dee5b5000-7f3dee7b4000 ---p 00001000 fe:01 1967577                    /lib/x86_64-linux-gnu/libaio.so.1.0.1
7f3dee7b4000-7f3dee7b5000 r--p 00000000 fe:01 1967577                    /lib/x86_64-linux-gnu/libaio.so.1.0.1
7f3dee7b5000-7f3dee7b6000 rw-p 00001000 fe:01 1967577                    /lib/x86_64-linux-gnu/libaio.so.1.0.1
7f3dee7b6000-7f3dee7ce000 r-xp 00000000 fe:01 1836112                    /lib/x86_64-linux-gnu/libpthread-2.19.so
7f3dee7ce000-7f3dee9cd000 ---p 00018000 fe:01 1836112                    /lib/x86_64-linux-gnu/libpthread-2.19.so
7f3dee9cd000-7f3dee9ce000 r--p 00017000 fe:01 1836112                    /lib/x86_64-linux-gnu/libpthread-2.19.so
7f3dee9ce000-7f3dee9cf000 rw-p 00018000 fe:01 1836112                    /lib/x86_64-linux-gnu/libpthread-2.19.so
7f3dee9cf000-7f3dee9d3000 rw-p 00000000 00:00 0 
7f3dee9d3000-7f3dee9f3000 r-xp 00000000 fe:01 1836030                    /lib/x86_64-linux-gnu/ld-2.19.so
7f3dee9f3000-7f3dee9f5000 rw-s 00000000 00:11 736331                     /[aio] (deleted)
7f3dee9f5000-7f3dee9f6000 rw-s 00000000 00:11 736318                     /[aio] (deleted)
7f3dee9f6000-7f3deebf1000 rw-p 00000000 00:00 0 
7f3deebf1000-7f3deebf3000 rw-p 00000000 00:00 0 
7f3deebf3000-7f3deebf4000 r--p 00020000 fe:01 1836030                    /lib/x86_64-linux-gnu/ld-2.19.so
7f3deebf4000-7f3deebf5000 rw-p 00021000 fe:01 1836030                    /lib/x86_64-linux-gnu/ld-2.19.so
7f3deebf5000-7f3deebf6000 rw-p 00000000 00:00 0 
7ffe704fe000-7ffe7051f000 rw-p 00000000 00:00 0                          [stack]
7ffe705ab000-7ffe705ae000 r--p 00000000 00:00 0                          [vvar]
7ffe705ae000-7ffe705b0000 r-xp 00000000 00:00 0                          [vdso]
17:15:29 UTC - 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.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=1
max_threads=151
thread_count=1
connection_count=1
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68190 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7f3da4007820
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 = 7f3dd8bbde80 thread_stack 0x40000
mysqld(my_print_stacktrace+0x2c)[0xe7a83c]
mysqld(handle_fatal_signal+0x459)[0x7a8539]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0)[0x7f3dee7c58d0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37)[0x7f3ded1ce067]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7f3ded1cf448]
/lib/x86_64-linux-gnu/libc.so.6(+0x731b4)[0x7f3ded20c1b4]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f3ded291cf7]
/lib/x86_64-linux-gnu/libc.so.6(+0xf6f10)[0x7f3ded28ff10]
mysqld(_Z19find_or_create_hostP10PFS_threadPKcj+0x395)[0xea96c5]
mysqld(_Z22find_or_create_accountP10PFS_threadPKcjS2_j+0x3d2)[0xef3e72]
mysqld(_Z18set_thread_accountP10PFS_thread+0x36)[0xeb1476]
mysqld(pfs_set_thread_account_v1+0xa0)[0xe93760]
mysqld(_Z16acl_authenticateP3THD19enum_server_command+0xfb2)[0x7b1a52]
mysqld[0xc14e6d]
mysqld(_Z22thd_prepare_connectionP3THD+0x53)[0xc15f23]
mysqld(handle_connection+0x24f)[0xd122ef]
mysqld(pfs_spawn_thread+0x1b4)[0xe93094]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x80a4)[0x7f3dee7be0a4]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f3ded28187d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0): Connection ID (thread ID): 1826
Status: NOT_KILLED

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
command terminated with exit code 137
1 Answer
remcohaszing July 4, 2019
Accepted Answer

It turns out setting fullnameOverride for my application in the Helm chart solved the issue. If it is too long, the MySQL pod crashes when my application pod tries to connect to it.

I still have no clue why this caused MySQL to crash specifically in the Digital Ocean cluster.

Have another answer? Share your knowledge.