Asking for help? Comment out what you need so we can get more information to help you!
Kubernetes version: 1.19.5 with minikube version: v1.15.1
Cloud being used: (put bare-metal if not on a public cloud)
Installation method: Homebrew
Host OS: macOS Mojave
I am using a basic mysql container and am trying to configure most in my deployment:
- name: mysql image: smart48/smt-mysql:1.1 # The default pull policy is IfNotPresent # When imagePullPolicy is defined without a specific value, it is also set to Always. imagePullPolicy: IfNotPresent env: - name: mysql_ROOT_PASSWORD value: .sweetpwd. - name: mysql_DATABASE value: my_db - name: mysql_USER value: db_user - name: mysql_PASSWORD value: .mypwd args: ["--default-authentication-plugin=mysql_native_password"] ports: - containerPort: 3306 volumeMounts: - name: mysql-persistent-storage mountPath: /var/lib/mysql
It is not working as it seems I need to set the passwords still with this kind of setup:
kubectl logs -f app-6b8877cdd7-b74hb mysql 2020-12-08 04:49:12+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.22-1debian10 started. 2020-12-08 04:49:12+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2020-12-08 04:49:12+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.22-1debian10 started. 2020-12-08 04:49:12+00:00 [ERROR] [Entrypoint]: Database is uninitialized and password option is not specified You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
The setup here does load env data however . So what am I missing here?