2021 Fillmore Street #1128

}

24/7 solutions

Top 10 Cloud Providers

How to connect to an AWS DocumentDB from a Kubernetes Pod

If you’re using AWS DocumentDB with Kubernetes and you want to connect to your DocumentDB cluster, you’ll first need to configure your AWS and Kubectl command line interfaces. You can learn how to use the AWS CLI and Kubectl here. After you’re able to connect to your Kubernetes cluster via the AWS command line, you’ll […]
AllCode AWS DocumentDB

If you’re using AWS DocumentDB with Kubernetes and you want to connect to your DocumentDB cluster, you’ll first need to configure your AWS and Kubectl command line interfaces. You can learn how to use the AWS CLI and Kubectl here.

After you’re able to connect to your Kubernetes cluster via the AWS command line, you’ll need to spin up a new pod to enable you to connect to your Document DB instance. To spin up a new pod, use the following kubectl command

kubectl run -i --rm --tty mongo-client --image=mvertes/alpine-mongo --restart=Never --command -- /bin/bash

The run command will create and run a particular image,. The –image will be the docker container from http://github.com/mvertes/docker-alpine-mongo. This will create the mongo client pod. We’ll set the pod to never restart, and we will want to enter into the new pod with bash.

Joel Garcia
Joel Garcia

Joel Garcia has been building AllCode since 2015. He’s an innovative, hands-on executive with a proven record of designing, developing, and operating Software-as-a-Service (SaaS), mobile, and desktop solutions. Joel has expertise in HealthTech, VoIP, and cloud-based solutions. Joel has experience scaling multiple start-ups for successful exits to IMS Health and Golden Gate Capital, as well as working at mature, industry-leading software companies. He’s held executive engineering positions in San Francisco at TidalWave, LittleCast, Self Health Network, LiveVox acquired by Golden Gate Capital, and Med-Vantage acquired by IMS Health.

Related Articles

What is Tigera?

What is Tigera?

An AWS Advanced Technology Partner, Tigera delivers Calico and Calico Enterprise for security and networking on EKS, both of which are AWS Containers Competency certified.

AllCode AWS Analytics Services

AllCode AWS Analytics Services

AWS Analytics ServicesAWS AthenaS3-based query data using SQLAWS CloudsearchManaged Search ServiceAWS ElasticsearchStreamline Elasticsearch...

Free AWS Services List

Download this FREE list of all 200+ AWS services and ensure that you're using the optimal services for your use case to enhance efficiency and save money!

Free AWS Business Continuity Plan Template

Make sure you have the proper business continuity plan explicitly for you AWS infrastructure. our professionals built this template using AWS best practices so you can ensure it's built to scale! 

Free Cloud Migration Checklist

Without the proper cloud migration strategy, you risk losing time and money. Ensure that your migration process is running smoothly with our FREE cloud migration checklist.

Free AWS Services List

You might be optimizing with the wrong AWS services. Download this FREE list of all 200+ AWS services and ensure that you're using the optimal services for your use case to enhance efficiency and save money!

Download your FREE AWS Business Continuity Plan Template
Download Free 200+ AWS Services Checklist
Download our 10-Step Cloud Migration ChecklistYou'll get direct access to our full-length guide on Google Docs. From here, you will be able to make a copy, download the content, and share it with your team.