deployment of mysql not intaking root password set in secret

I’ve googled and googled and not sure what I’m doing wrong. it seems how ever way i try to set the root password for mysql, it doesn’t seem to work. I’m currently testing out the below(which i’ve seen plastered over the internet) and this too doesn’t work. I’m not getting any errors, logs do not show any errors, and honestly at this point, I’m kind of lost and would appreciate some help.

Kubernetes – How to use statefulsets for my Stateful database?

I have a cluster on gke with apache, mysql and keyrock and i would like to scale it up with horizontal pod autoscaler. For mysql i am using statefulset and the code is here: apiVersion: apps/v1 kind: StatefulSet metadata: name: mysql spec: selector: matchLabels: app: mysql serviceName: mysql replicas: 1 template: metadata: labels: app: mysql … Read more

Docker Mysql official image not creating user in kubernetes

I’m trying to deploy a mysql instance in k8s through a StatefulSet using the official Mysql image from DockerHub. I’m following the image documentation from DockerHub and providing MYSQL_ROOT_PASSWORD, MYSQL_USER and MYSQL_PASSWORD env vars, so the user should be automatically created, but it is not. The error I can see in container’s logs is that root user is not able to connect at the point the user provided in MYSQL_USER is being created.