Problem
I'm trying to forward an Oracle database connection to a pod on minikube. I'm using a kubectl port-forward
command to connect from my local machine to Oracle successfully, and I'm trying to use the host.minikube.internal
as I would use localhost
on my local machine to try to connect to the database.
Essentially, pod
-> host.minikube.internal:1526
-> localhost:1526
-> Oracle DB: 1526
. However, when I try to run a query on the pod using this connection information, I receive the error: ORA-12541: TNS:no listener
.
What should I do to connect?
Context
It previously worked using Docker Desktop. All the connection information and forwarding information worked the same, except I changed host.docker.internal
to host.minikube.internal
following some advice in the second answer to this question that pointed to this documentation in minikube. I don't know why this simple swap would not work.
I'm on MacOS, Ventura 13.0 (22A380), using Kubernetes 1.26.1 and Minikube v1.28.0.