I’m trying to follow the instructions in this blog post, Connecting to your Databases using Port Forwarding but am running into issues getting the connection established. My situation is as follows:
- I’ve got a MySQL instance running in a Preview Environment on Okteto Cloud
- On the CLI, I ran
kubectl port-forward service/<SERVICE_NAME> 3306:3306
However, I still get this error and am not sure where I am going wrong:
error: timed out waiting for the condition
kubectl get svc and am able to see the running service listed, so I believe the connection is working.
Does anybody have any idea what could be going wrong? Any advice would be much appreciated, thanks!