I'm running a soringboot application in minikube. But it's not able to connect to MongoDB cluster which is on atlas. Can someone help me with this issue? I'm able to connect from my local but not from minikube pod. I've minikube cluster with docker driver
Related
I'm trying to connect an already existing GKE cluster to a Mongo Cluster in mongo atlas.
I followed this tutorial, with the only difference that I didn't create the GKE cluster after creating the peering, but the other way around: I created the GKE Cluster, and then, when I saw I needed the peering, I peered the VPC in which the GKE Cluster was deployed, to mongo.
Then I tried the following
kubectl run -i --tty mongo-test --image=mongo --restart=Never -- sh
and then mongosh <<myconnectionurl>>, but it fails with a timeout.
I fear the peering needs to be done BEFORE creating the GKE cluster, which would be extremely undesirable for me. Note that VPC-native traffic routing is enabled in said GKE Clustter.
How can I connect from an application that runs inside a pod in a Kubernetes cluster (minikube) to a local database (installed locally, not running in docker)?
I've setup a kubernetes cluster in my network and a postgres database in same network. I am able to connect my java app to my postgres database if I run it over in a container or a VM. But some how when I deploy the same app in Kubernetes it is not able to connect to my database.
All my services are in my private network and my cluster is a bare metal setup in my home lab using calico network.
I also tried ping my database ip from a busybox pod but that also fails.
I tried to create a k8s cluster in my MacBook Pro M1, but fail because of M1. So I want to create the k8s in another windows and the MacBook will connect to the cluster with kubectl and telepresenc.
create a k8s cluster in the ubuntu server 20.04 which is in the vmware of windows 10.
in my MacBook, use kubectl and telepresence to access the k8s cluster.
I use microk8s to manage the k8s.
The problem is when I access k8s in windows, I fail and was tell that I can only access the k8s through 127.0.0.1 or 192.168.23.130 but not 192.168.10.11.
How can I solve the problem or achive this structure with another method.
Is it possible to connect Kubernetes google cloud cluster with RStudio/RStudio Server? How?