Learn Kubernetes: Deploy a MongoDB Pod

In this story, we will install a Pod to run a MongoDB Docker container on Kubernetes.

Creating the service

Create a service.yaml file for the service for MongoDB:

apiVersion: v1
kind: Service
name: mongo
name: mongo
- port: 27017
targetPort: 27017
name: mongo

Create the Service:

kubectl apply -f service.yaml




The Open DevOps Academy shares practices, experiences, and ideas about many domains of DevOps.

Recommended from Medium

CSP DAO Project Review: Chingari

New Release 1.3.0–2017–06–08

Creating a Mail Server Using Serverless Framework Lambda on AWS

The Web Developers Essential Guide of Terminal Commands

ERC-1155 NFT Smart Contract Deployment — using Hardhat

Run Korea App guide

Congratulations, Distinguished Contributors!

Learning through the Celebration Grid

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bruno Delb

Bruno Delb

Blockchains, DevOps, Agile Coaching, development, testing, Cloud, Management 3.0, ITIL. It defines me.

More from Medium

How to set up and run your first Kubernetes application

Learn Docker: Advanced topics about containers (3/6)

Ansible AWS Dynamic Inventory Explained With Examples

Setting up a Prometheus monitoring stack in Kubernetes