'Cannot access my Local mysql server from Minikube Cluster
I'm running a service called Keycloak in Minikube for Development purposes and want to connect MySQL Database which is running on my Local Computer.
I can able to access my database by local - localhost:3306 with user details but not from minikube.
Using this to my keylock YAML service - jdbc:mysql://mysqldb/database
But can't access it from minikube
I have created one service also for connection.
apiVersion: v1
metadata:
name: mysqldb
spec:
ports:
- port: 3306
targetPort: 3306
---
kind: Endpoints
apiVersion: v1
metadata:
name: mysqldb
subsets:
- addresses:
- ip: <What should i Place here>
ports:
- port: 3306
~
~
~
~ ```
In Ip: I have tried to place my local system IP, localhost, etc.. but none worked
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
