Skip to content

Commit

Permalink
Fix mysql k8s volume configuration
Browse files Browse the repository at this point in the history
 The mysql:6.7 image upgrade caused the following error when deployed on GKE:
 > [ERROR] --initialize specified but the data directory has files in it. Aborting.
 Patch is based on this:  docker-library/mysql#186 (comment)

 Related to #3482
  • Loading branch information
tzolov committed Sep 5, 2019
1 parent 2c28565 commit 5cdb440
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/kubernetes/mysql/mysql-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ spec:
volumeMounts:
- name: data
mountPath: /var/lib/mysql
args:
- "--ignore-db-dir=lost+found"
volumes:
- name: data
persistentVolumeClaim:
Expand Down

0 comments on commit 5cdb440

Please sign in to comment.