Can’t connect the database throught the public network

Hi Qovery Team @Qovery_Team ,

I can’t connect the database throught the public network, please help me to solve this problem. Here are some config details:

My Cluster Settings:

  • Kubernetes: BETA -EC2 K3S (Single instance only dev purpose)
  • Instance type: t3.medium(2CPU-4GB RAM)

My Databases Settings:

  • Type: MYSQL
  • Mode: CONTAINER
  • Version: 5.7
  • Accessibility: PUBLIC

When i try to connect the mysql, it returns the error: 2003 - Can’t connect to MySQL server on ‘xxx-mysql.yyy.scsi.sh’ (61 “Connection refused”)

Thank you.

Hi, it’s a known limitation of EC2 K3S - it will be fixed in a future version, but there is no ETA yet. 2 solutions for you:

  1. Use an EKS cluster instead of an EC2 K3S.
  2. Use a Managed instance (RDS) instead of a container.

Let me know