---
title: "Discussion on \"Connect to a MongoDB container with kubectl\" | Hashnode"
description: "Discussion on \"Connect to a MongoDB container with kubectl\". Goal: Connect your local computer to a Mongo database running in a kubernetes cluster. \nUse case: Use a hosted database for local development. I have used this workflow to connect to databases hosted in Rancher, a container orchestrating service.\nYou..."
url: "https://hashnode.com/posts/connect-to-a-mongodb-container-with-kubectl/60142e9ae54673573b57066b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Connect to a MongoDB container with kubectl](https://blog.kellenbaker.com/connect-to-a-mongodb-container-with-kubectl?utm_source=hashnode&utm_medium=feed)

Goal: Connect your local computer to a Mongo database running in a kubernetes cluster. Use case: Use a hosted database for local development. I have used this workflow to connect to databases hosted in Rancher, a container orchestrating service. You...

Jan 29, 2021 · 1 min read · blog.kellenbaker.com  
Read the article

-   [#kubernetes](https://hashnode.com/tag/kubernetes)
-   [#mongodb](https://hashnode.com/tag/mongodb)

## Written by

[Kellen](https://hashnode.com/@mkb)

@mkb

  
[View profile](https://hashnode.com/@mkb)

Fullstack developer, musician, CI/CD enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
