MySQL fails to start without persistence enabled

When `persistance.enabled` is set to `false`, `emptyDir` volume is
mounted as `/var/lib/mysql` and `rmdir /var/lib/mysql/lost+found` fails
because the directory is not there.

```
  2m	5s	12	{kubelet minikube}						Warning	FailedSync	Error syncing pod, skipping: [failed to "InitContainer" for "remove-lost-found" with RunInitContainerError: "init container \"remove-lost-found\" exited with 1", failed to "StartContainer" for "remove-lost-found" with CrashLoopBackOff: "Back-off 5m0s restarting failed container=remove-lost-found pod=pruning-bunny-mysql-3645202232-9md2n_default(c5e4252e-9699-11e6-97b4-da01ddf400ca)"
```
This commit is contained in:
Maciej Strzelecki
2016-10-20 10:19:41 +02:00
parent 608afecca2
commit c5b6b3ad49
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: mysql
version: 0.1.1
version: 0.1.2
description: Chart for MySQL
keywords:
- mysql
+1 -1
View File
@@ -17,7 +17,7 @@ spec:
{
"name": "remove-lost-found",
"image": "busybox:1.25.0",
"command": ["rmdir", "/var/lib/mysql/lost+found"],
"command": ["rm", "-fr", "/var/lib/mysql/lost+found"],
"volumeMounts": [
{
"name": "data",