-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bitnami/mongodb] Can't figure out configuration to access the mongo container outside the k8s cluster #23776
Comments
Hi @rekaburmeister, Thanks for reaching out. It seems that needs some additional configurations related to EKS which I am not an expert. I would recommend reaching out to the appropriate forum where the community can provide you with more specific guidance related to configuring EKS. Additionally, I suggest exploring the Get Started With Bitnami Charts Using The Amazon Elastic Container Service For Kubernetes (EKS). There, you will find an example of configuring EKS with a helm chart example. I hope this information is helpful to you. |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
How I've handled this is by port-forwarding the mongodb service and from there access it with Compass. It's even more secure as it can be accessed with credentials only if port-forwarded. |
Name and Version
bitnami/mongodb 13.16.3
What architecture are you using?
None
What steps will reproduce the bug?
I would like to deploy mongo (standalone or replicaset - I just want to get this working for now) into our EKS cluster, using Helm.
Assuming I cloned https://github.com/bitnami/charts/tree/main/bitnami/mongodb, which values should be set to simply be able to do
helm install mongo .
, to have a container running that I can connect to, outside the k8s cluster?For simplicity, I tried switching TLS off and changed the
architecture
toreplicaset
but made no other major changes (e.g. set root password etc)Installation produced the following output:
kubectl run --namespace gayr mongo-gayr-client ...
allowed me to connect to the deployed container within the client container, but only to the service deployed asmongo-gayr-0-external
get svc --namespace gayr -l "app.kubernetes.io/name=gayr,app.kubernetes.io/instance=mongo,app.kubernetes.io/component=mongodb,pod" -w
command did provide the external IPs (host names) to the load balancers formongo-gayr-0-external
andmongo-gayr-1-external
echo "$(kubectl get svc --namespace gayr -l "app.kubernetes.io/name=gayr,app.kubernetes.io/instance=mongo,app.kubernetes.io/component=mongodb,pod" -o jsonpath='{.items[*].status.loadBalancer.ingress[0].ip}' | tr ' ' '\n')"
returned emptymongosh admin --host "host-name-for-mongo-gayr-0-external" --authenticationDatabase admin -u admin_user_name -p admin_password
would result inMongoServerSelectionError: Server selection timed out after 30000 ms
(running the same command in themongo-gayr-client
container worked fine)I don't think this is a bug in the product - but given I'm trying the simplest of use cases (i.e. gimme a working mongo!) I would say the documentation would need updating with some "getting started" steps.
Are you using any custom parameters or values?
What is the expected behavior?
I should be able to produce a basic cluster deployment
What do you see instead?
I can't connect to the deployed container unless I use the provided client
The text was updated successfully, but these errors were encountered: