How to Install MongoDB on Kubernetes? (External Access | Prometheus | TLS | Kubernetes Operator)

How to Install MongoDB on Kubernetes? (External Access | Prometheus | TLS | Kubernetes Operator)

Source: YouTube · Anton Putra · published Jan 24, 2022 · 17:59

Cloud Security
No ratings yet Log in to rate
Transcript Available
Description

The video demonstrates how to deploy MongoDB to Kubernetes using an open-source operator and configure it with scaling, TLS security, external access, and monitoring 0:03. The presenter shows a complete workflow from basic deployment to production-ready configuration with Prometheus monitoring 0:48.

Key Takeaways:
• The tutorial begins with deploying a single MongoDB instance using the Kubernetes operator and connecting locally via port forwarding 0:08 3:53
• MongoDB is scaled to three replicas (one primary and two secondaries) by simply changing a configuration value and applying the changes 0:18 5:34
• The cluster is secured using TLS through cert-manager to bootstrap PKI infrastructure in Kubernetes and create certificates 0:28 9:03
• External access is configured with load balancers and proper DNS records (CNAME and SRV) to securely connect from outside the cluster 0:33 11:33
• Prometheus, Grafana, and MongoDB exporter are deployed for comprehensive monitoring of the cluster and database metrics 13:57

This tutorial provides a complete production-ready MongoDB deployment on Kubernetes with all the essential components for security, scalability, and observability 17:53.

Sources:

Generate CPE Credits

Generate a professional CPE document from this video's transcript.

Estimated credit: 0.5 CPE hours

Estimate uses the video runtime (1 hour ≈ 1 CPE, rounded to the nearest 0.5, minimum 0.5, maximum 2.0). The final amount can be lower after review, never higher.

Topic: Cloud Security. Commonly maps to: Security Architecture and Engineering, Communication and Network Security. Exact CISSP domains are assigned during generation.

CISSP Domain Mapping
Learning Objectives
Self-Assessment Questions
PDF Export Ready

Free account. One generation at a time, with a daily limit.

CPEBuddy is independent and not affiliated with or endorsed by ISC2, ISACA, or any certification body. Exports are formatted for common CPE submissions; acceptance is at your certification body's discretion.

Watch on YouTube

Transcript Preview

First 800 characters of the transcript

Today we will deploy MongoDB database 
to Kubernetes using the open-source Kubernetes operator. First of all, we are 
going to deploy a single MongoDB instance. We will use port forward and connect to it 
with MongoDB Shell from the local computer. Then we will scale it up to 3 replicas. One of 
them will be primary and two secondary replicas. After that, we will bootstrap out Private Key 
Infrastructure (PKI) in Kubernetes using the cert-manager and secure our MongoDB cluster with 
TLS. For the final example, we will configure external access and secure connections with TLS 
as well. And of course, we will monitor every single component in Kubernetes with Prometheus, 
including MongoDB. To monitor the database, we will deploy Prometheus exporter and cadvior 
to collect basic metrics such …