stackoverflow mysql-StatefulSet 배포시 오류 initialize specified but the data directory has files in it. Aborting.

$ k logs -n default po/mysql-0
~
[ERROR] --initialize specified but the data directory has files in it. Aborting.
[ERROR] Aborting

mysql.yaml 파일에 args 라인을 추가 합니다.

    spec:
      containers:
        - image: mysql:5.7
          name: mysql
          args:
            - "--ignore-db-dir=lost+found"
Last modified: 2022-11-02

Author

Comments

Write a Reply or Comment