Accessing local database from kubernetes cluster

59
June 21, 2022, at 4:10 PM

I have a database running in local machine which i can access it using 127.0.0.1 or localhost, I need to access this database from my spring boot application which is deployed in local minikube kubernetes cluster.

how can i do that.

Answer 1

Use the external IP of your machine (f.e. wifi or ethernet) and connect to that. Be aware that you need to expose your database externally in that case.

READ ALSO
Handler in addValueEventListener running continuously

Handler in addValueEventListener running continuously

Im making a Uber clone app and whenever the driver receives a request he can accept it or decline it, but I want to add a feature where if the driver doesn't accept or decline the request within 8 second I want to decline it automatically

57
create SP in sybase and call it from java by passing List<XModel> to it

create SP in sybase and call it from java by passing List<XModel> to it

I have a pojo class XModeljava with fields -> f1, f2, f3, f4, f5, f6 all string and

65
Is there any way to inject Interceptor from external library in Spring?

Is there any way to inject Interceptor from external library in Spring?

I'm developing a jar library and trying to inject an interceptor from external jar library to Application

52
Clear/unset a system property maven.compiler.release so that is is no longer present

Clear/unset a system property maven.compiler.release so that is is no longer present

I have a project with complicated build setup (parent POM's with parent POM's) and so it happens that my compiler plugin executes with mavencompiler

47