Game of PODs Bravo mysql error

Hello all, the SQL deployment in the Bravo part of Game of PODs is giving me trouble.
I check the solutions video but I did do the correct steps. Though just to make sure I copied the sql-deployment yaml but still got same error in the event.

“already present on machine” any idea how to fix?

Events:
  Type     Reason     Age               From               Message
  ----     ------     ----              ----               -------
  Normal   Scheduled  57s               default-scheduler  Successfully assigned default/drupal-mysql-77d6988c7b-v4skk to node01
  Normal   Pulled     6s (x4 over 54s)  kubelet, node01    Container image "mysql:5.7" already present on machine
  Normal   Created    6s (x4 over 53s)  kubelet, node01    Created container mysql
  Normal   Started    5s (x4 over 52s)  kubelet, node01    Started container mysql
  Warning  BackOff    5s (x5 over 50s)  kubelet, node01    Back-off restarting failed container

Image mysql:5.7 has been updated recently and now it do not accepting MYSQL_USER=root environment variable. To fix this you need use “mysql:5.7.32” image version (which is violating lab requirements), or Lab should be updated.

As a temporary workaround you can do the next before creating Deployment resources:

  • login to worker node: “ssh node01”
  • pull 5.7.32 image: “docker pull mysql:5.7.32”
  • tag it as 5.7: “docker tag mysql:5.7.32 mysql:5.7”

Now you will be able to create resources as it required by Lab. But definitely it should be fixed.

2 Likes