criei um config map com os seguintes dados:
apiVersion: v1 kind: ConfigMap metadata: name: dbconfigmap data: dbconfig.properties: MYSQL_ROOT_PASSWORD= q1w2e3r4 MYSQL_DATABASE= empresa MYSQL_PASSWORD= q1w2e3r4
ao atualizar o POD, da seguinte forma:
apiVersion: v1 kind: Pod metadata: name: db-noticias labels: app: db-noticias spec: containers:
- name: db-noticias-container
image: aluracursos/mysql-db:1
ports:
- containerPort: 3306 envFrom:
- configMapRef: name: dbconfigmap
estou preso no loop de: Back-off restarting failed container db-noticias-container in pod db-noticias_default(f41f9786-bd6b-4468-a0c2-852e6c962170)
utilizei o kubectl log e obtive a seguinte mensagem:
2023-11-09 13:50:43+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.48-1debian9 started. 2023-11-09 13:50:44+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2023-11-09 13:50:44+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.48-1debian9 started. 2023-11-09 13:50:44+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
alguem consegue me dizer onde posso estar errando?