Access MySQL database outside the cluster

Cluster information:

Kubernetes version:

kubectl version
Client Version: v1.29.14
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.14

Cloud being used: linode server
Installation method:
Host OS: AlmaLinux 8
CNI and version:
CRI and version:

Hello,
How may I access an external MySQL database from a container inside the K8s cluster?

Thanks.

1 Like

I could connect to the MySQL DB.