SlideShare a Scribd company logo
1 of 21
Download to read offline
MongoDB OpsManager and Kubernetes
Andrey Belik, Senior Product Manager, MongoDB
Introduction to MongoDB in Kubernetes
Andrey Belik
Senior Product Manager, MongoDB
andrey.belik@mongodb.com
@theburione
Safe Harbor
This presentation contains “forward-looking statements” within the meaning of Section 27A of the Securities Act
of 1933, as amended, and Section 21E of the Securities Exchange Act of 1934, as amended. Such forward-
looking statements are subject to a number of risks, uncertainties, assumptions and other factors that could
cause actual results and the timing of certain events to differ materially from future results expressed or implied
by the forward-looking statements. Factors that could cause or contribute to such differences include, but are not
limited to, those identified our filings with the Securities and Exchange Commission. You should not rely upon
forward-looking statements as predictions of future events. Furthermore, such forward-looking statements speak
only as of the date of this presentation.
In particular, the development, release, and timing of any features or functionality described for MongoDB
products remains at MongoDB’s sole discretion. This information is merely intended to outline our general
product direction and it should not be relied on in making a purchasing decision nor is this a commitment,
promise or legal obligation to deliver any material, code, or functionality. Except as required by law, we undertake
no obligation to update any forward-looking statements to reflect events or circumstances after the date of such
statements.
2018 jump from 22% - 38%
End of container wars
Kubernetes – fastest growing
orchestration platform
ADOPTION Standard Interface
Kubernetes why?
5k Scale
• 5,000 nodes
• 150,000 pods
• 300,000 containers
IT Survey (2018)newStack.io
Kubernetes Persistence
Stateful sets
• Stable, unique network identifiers.
mdb-{0..N-1}.myproject.mongodb.svc.cluster.local
• Stable, persistent storage.
• Ordered, graceful deployment and scaling.
• Ordered, automated rolling updates.
Persistent volumes
volumes with lifecycle independent of the Pods
A PersistentVolume (PV) is a piece of that has been
provisioned by an administrator.
A PersistentVolumeClaim (PVC) is a request for storage by
a user
PVC
PV
Storage
Driver
File Storage
Kubernetes Operators
Service specific controller
High level abstraction for Kubernetes resource
New API layer for Service specific endpoint*
Just a single Pod
Observe
Analyse
Act
MongoDB Operator overview
Kubernetes Cluster
Enterprise Operator Pod
Configuration Resources
Secrets configs
MongoDB Deployment
Statefull Set-1
Statefull Set-2
Statefull Set-3
Operator MongoDB Ops
Manager
App DB
Oplog DB
Summer 2019
MongoDB Operator configuration
Stage 1 – Kube Prep
1. Deploy CRD at cluster
level
2. Deploy operator
Stage 2 – Ops Manager
1. Get Ops Manager
URL, User, Key
2. Create Config Map
3. Create Secrets
Stage 3 – Deploy MongoDB
1. Deploy mongoDB’s
ConfigMap
---
apiVersion: v1
kind: ConfigMap
metadata:
name: <my-config-project>
namespace: mongodb
data:
projectName: <my_project_demo>
orgId: <ops manager orgid>
baseUrl: <ops-manager url>
ConfigMap
---
apiVersion: v1
kind: ConfigMap
metadata:
name: <my-config-project>
namespace: mongodb
data:
projectName: <my_project_demo>
orgId: <ops manager orgid>
baseUrl: <ops-manager url>
Secrets
kubectl -n <metadata.namespace>
create secret generic <myCredentials>
--from-literal="user=<first.last@example.com>"
--from-literal="publicApiKey=<my-public-api-key>"
Demo
Prepare Operator
What is in MongoDB Operator
1. Runs on any upstream distribution 1.11 +
2. Deploys any MongoDB cluster type or size.
3. Automatic failure detection and recovery
4. Manual Scaling of Clusters: Pod sizes, PVC Size, ReplicaSets, sharded clusters
5. Modifies Cluster configuration: modify TLS spec, add MongoD configuration parameters (ie oplogSizeMB, …)
6. Configures fully secure MongoDB cluster: TLS, x509, RBAC
7. Ongoing observation of cluster health and re-configuration
8. OpenShift 3.11 certified
9. RHEL7 and Ubuntu 16.04 base images
10. MongoD and OpsManager Log pipeline integration with K8S
11. OpsManager as an additional control plane
* Features and release order may change. Roadmap shown is only for discussion purposes.
Single CRD to rule them all
apiVersion: mongodb.com/v1
kind: MongoDB
spec:
version: 4.0.0
…
members: 3
project: <my-project>
credentials: <credentials>
type: ReplicaSet
apiVersion: mongodb.com/v1
kind: MongoDB
spec:
version: 4.0.0
…
shardCount: 2
mongodsPerShardCount: 3
mongosCount: 2
configServerCount: 3
type: ShardedCluster
apiVersion: mongodb.com/v1
kind: MongoDB
spec:
version: 4.0.0
project: <my-project>
credentials: <credentials>
type: Standalone
High Level SSL implementation points
security:
tls: “enabled”
clusterAuthMode: x509
Operator will perform:
1. Certificate request to get right certs
2. Place certificates into secretes
3. Add required configuration parameters to Ops
Manager
4. Set-up cluster configuration with TLS
Sharded Cluster- Orchestrate
sequence of steps to get cluster
configured with TLS
RBAC and x509 with Operator
New CRD to define MongoDB users
Only x509 users are supported in GA
Fully automated x509 generation and
distribution
X509 internal authentication included
kind: MongoDBUser
spec:
userName: < Full name>
authMechanism: x509
db: "$external"
roles:
- db: admin
Demo
Deploy MongoDB
How to connect to MongDB
Use Statefull Set unique names:
Mongodb+srv://my-replica-demo-svc.mongodb.svc.cluster.local
MongoDB Operator Roadmap 2019 *
GA
Summer 2019
Ready for Prime Time
production ready.
Multistage Builds
Docs and webinars
GA activities
Post GA – 2019
Pivotal PKS and OpenShift 4.0
certification
Atlas Open Service Broker for
Kubernetes
Split Horizon support
Ops Manager CRD
2020
Prometheus
Support for Federation v2 –
multi region clusters
Scaling – Automatic Custom
Vertical scaling
* Features and release order may change. Roadmap shown is only for discussion purposes.
Thank You!

More Related Content

What's hot

Architecture & Functionality for Learning Spaces Website
Architecture & Functionality for Learning Spaces WebsiteArchitecture & Functionality for Learning Spaces Website
Architecture & Functionality for Learning Spaces Website
Pragati Kunwer
 

What's hot (7)

Confluent Platform Security Components
Confluent Platform Security ComponentsConfluent Platform Security Components
Confluent Platform Security Components
 
WILD microSERVICES v2
WILD microSERVICES v2WILD microSERVICES v2
WILD microSERVICES v2
 
First8 java one review 2016
First8 java one review 2016First8 java one review 2016
First8 java one review 2016
 
WSO2Con USA 2014 - Identity Server Tutorial
WSO2Con USA 2014 - Identity Server TutorialWSO2Con USA 2014 - Identity Server Tutorial
WSO2Con USA 2014 - Identity Server Tutorial
 
Introduction to Blockchain and Hyperledger
Introduction to Blockchain and HyperledgerIntroduction to Blockchain and Hyperledger
Introduction to Blockchain and Hyperledger
 
[FOSDEM 2019] LemonLDAP::NG 2.0
[FOSDEM 2019] LemonLDAP::NG 2.0[FOSDEM 2019] LemonLDAP::NG 2.0
[FOSDEM 2019] LemonLDAP::NG 2.0
 
Architecture & Functionality for Learning Spaces Website
Architecture & Functionality for Learning Spaces WebsiteArchitecture & Functionality for Learning Spaces Website
Architecture & Functionality for Learning Spaces Website
 

Similar to MongoDB OpsManager and Kubernetes

Modern Data Backup and Recovery from On-Premises to the Public Cloud
Modern Data Backup and Recovery from On-Premises to the Public CloudModern Data Backup and Recovery from On-Premises to the Public Cloud
Modern Data Backup and Recovery from On-Premises to the Public Cloud
MongoDB
 
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
QAware GmbH
 

Similar to MongoDB OpsManager and Kubernetes (20)

MongoDB.local Atlanta: Modern Data Backup and Recovery from On-Premises to th...
MongoDB.local Atlanta: Modern Data Backup and Recovery from On-Premises to th...MongoDB.local Atlanta: Modern Data Backup and Recovery from On-Premises to th...
MongoDB.local Atlanta: Modern Data Backup and Recovery from On-Premises to th...
 
Mastering MongoDB on Kubernetes, the power of operators
Mastering MongoDB on Kubernetes, the power of operators Mastering MongoDB on Kubernetes, the power of operators
Mastering MongoDB on Kubernetes, the power of operators
 
MongoDB World 2019: Modern Data Backup and Recovery from On-premises to the P...
MongoDB World 2019: Modern Data Backup and Recovery from On-premises to the P...MongoDB World 2019: Modern Data Backup and Recovery from On-premises to the P...
MongoDB World 2019: Modern Data Backup and Recovery from On-premises to the P...
 
Powering Microservices with MongoDB, Docker, Kubernetes & Kafka – MongoDB Eur...
Powering Microservices with MongoDB, Docker, Kubernetes & Kafka – MongoDB Eur...Powering Microservices with MongoDB, Docker, Kubernetes & Kafka – MongoDB Eur...
Powering Microservices with MongoDB, Docker, Kubernetes & Kafka – MongoDB Eur...
 
MongoDB .local Bengaluru 2019: Using MongoDB Services in Kubernetes: Any Plat...
MongoDB .local Bengaluru 2019: Using MongoDB Services in Kubernetes: Any Plat...MongoDB .local Bengaluru 2019: Using MongoDB Services in Kubernetes: Any Plat...
MongoDB .local Bengaluru 2019: Using MongoDB Services in Kubernetes: Any Plat...
 
MongoDB - General Purpose Database
MongoDB - General Purpose DatabaseMongoDB - General Purpose Database
MongoDB - General Purpose Database
 
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: MongoDB Atlas JumpstartMongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
 
MongoDB World 2018: Building a New Transactional Model
MongoDB World 2018: Building a New Transactional ModelMongoDB World 2018: Building a New Transactional Model
MongoDB World 2018: Building a New Transactional Model
 
MongoDB Europe 2016 - Powering Microservices with Docker, Kubernetes, and Kafka
MongoDB Europe 2016 - Powering Microservices with Docker, Kubernetes, and KafkaMongoDB Europe 2016 - Powering Microservices with Docker, Kubernetes, and Kafka
MongoDB Europe 2016 - Powering Microservices with Docker, Kubernetes, and Kafka
 
Doag 2018 eine_reise_durch_die_blockchain_applikationsentwicklung_final
Doag 2018 eine_reise_durch_die_blockchain_applikationsentwicklung_finalDoag 2018 eine_reise_durch_die_blockchain_applikationsentwicklung_final
Doag 2018 eine_reise_durch_die_blockchain_applikationsentwicklung_final
 
Coinbase Node
Coinbase NodeCoinbase Node
Coinbase Node
 
Get Ready for Coinbase Node
Get Ready for Coinbase NodeGet Ready for Coinbase Node
Get Ready for Coinbase Node
 
Modern Data Backup and Recovery from On-Premises to the Public Cloud
Modern Data Backup and Recovery from On-Premises to the Public CloudModern Data Backup and Recovery from On-Premises to the Public Cloud
Modern Data Backup and Recovery from On-Premises to the Public Cloud
 
Powering Microservices with Docker, Kubernetes, Kafka, and MongoDB
Powering Microservices with Docker, Kubernetes, Kafka, and MongoDBPowering Microservices with Docker, Kubernetes, Kafka, and MongoDB
Powering Microservices with Docker, Kubernetes, Kafka, and MongoDB
 
MongoDB .local London 2019: Modern Data Backup and Recovery from On-premises ...
MongoDB .local London 2019: Modern Data Backup and Recovery from On-premises ...MongoDB .local London 2019: Modern Data Backup and Recovery from On-premises ...
MongoDB .local London 2019: Modern Data Backup and Recovery from On-premises ...
 
[Global logic] container runtimes and kubernetes
[Global logic] container runtimes and kubernetes[Global logic] container runtimes and kubernetes
[Global logic] container runtimes and kubernetes
 
MongoDB SoCal 2020: MongoDB Atlas Jump Start
 MongoDB SoCal 2020: MongoDB Atlas Jump Start MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB SoCal 2020: MongoDB Atlas Jump Start
 
MongoDB .local Chicago 2019: Modern Data Backup and Recovery from On-premises...
MongoDB .local Chicago 2019: Modern Data Backup and Recovery from On-premises...MongoDB .local Chicago 2019: Modern Data Backup and Recovery from On-premises...
MongoDB .local Chicago 2019: Modern Data Backup and Recovery from On-premises...
 
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
 
.NET Fest 2017. Андрей Антиликаторов. Проектирование и разработка приложений ...
.NET Fest 2017. Андрей Антиликаторов. Проектирование и разработка приложений ....NET Fest 2017. Андрей Антиликаторов. Проектирование и разработка приложений ...
.NET Fest 2017. Андрей Антиликаторов. Проектирование и разработка приложений ...
 

More from MongoDB

More from MongoDB (20)

MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB AtlasMongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
 
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
 
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
 
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDBMongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
 
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
 
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series DataMongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
 
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
 
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
 
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
 
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
 
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your MindsetMongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
 
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
 
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
 
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
 
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep DiveMongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
 
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & GolangMongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
 
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
 
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
 
MongoDB .local Paris 2020: Les bonnes pratiques pour sécuriser MongoDB
MongoDB .local Paris 2020: Les bonnes pratiques pour sécuriser MongoDBMongoDB .local Paris 2020: Les bonnes pratiques pour sécuriser MongoDB
MongoDB .local Paris 2020: Les bonnes pratiques pour sécuriser MongoDB
 
MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...
MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...
MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

MongoDB OpsManager and Kubernetes

  • 1.
  • 2. MongoDB OpsManager and Kubernetes Andrey Belik, Senior Product Manager, MongoDB Introduction to MongoDB in Kubernetes
  • 3. Andrey Belik Senior Product Manager, MongoDB andrey.belik@mongodb.com @theburione
  • 4. Safe Harbor This presentation contains “forward-looking statements” within the meaning of Section 27A of the Securities Act of 1933, as amended, and Section 21E of the Securities Exchange Act of 1934, as amended. Such forward- looking statements are subject to a number of risks, uncertainties, assumptions and other factors that could cause actual results and the timing of certain events to differ materially from future results expressed or implied by the forward-looking statements. Factors that could cause or contribute to such differences include, but are not limited to, those identified our filings with the Securities and Exchange Commission. You should not rely upon forward-looking statements as predictions of future events. Furthermore, such forward-looking statements speak only as of the date of this presentation. In particular, the development, release, and timing of any features or functionality described for MongoDB products remains at MongoDB’s sole discretion. This information is merely intended to outline our general product direction and it should not be relied on in making a purchasing decision nor is this a commitment, promise or legal obligation to deliver any material, code, or functionality. Except as required by law, we undertake no obligation to update any forward-looking statements to reflect events or circumstances after the date of such statements.
  • 5. 2018 jump from 22% - 38% End of container wars Kubernetes – fastest growing orchestration platform ADOPTION Standard Interface Kubernetes why? 5k Scale • 5,000 nodes • 150,000 pods • 300,000 containers IT Survey (2018)newStack.io
  • 6. Kubernetes Persistence Stateful sets • Stable, unique network identifiers. mdb-{0..N-1}.myproject.mongodb.svc.cluster.local • Stable, persistent storage. • Ordered, graceful deployment and scaling. • Ordered, automated rolling updates. Persistent volumes volumes with lifecycle independent of the Pods A PersistentVolume (PV) is a piece of that has been provisioned by an administrator. A PersistentVolumeClaim (PVC) is a request for storage by a user PVC PV Storage Driver File Storage
  • 7. Kubernetes Operators Service specific controller High level abstraction for Kubernetes resource New API layer for Service specific endpoint* Just a single Pod Observe Analyse Act
  • 8. MongoDB Operator overview Kubernetes Cluster Enterprise Operator Pod Configuration Resources Secrets configs MongoDB Deployment Statefull Set-1 Statefull Set-2 Statefull Set-3 Operator MongoDB Ops Manager App DB Oplog DB Summer 2019
  • 9. MongoDB Operator configuration Stage 1 – Kube Prep 1. Deploy CRD at cluster level 2. Deploy operator Stage 2 – Ops Manager 1. Get Ops Manager URL, User, Key 2. Create Config Map 3. Create Secrets Stage 3 – Deploy MongoDB 1. Deploy mongoDB’s
  • 10. ConfigMap --- apiVersion: v1 kind: ConfigMap metadata: name: <my-config-project> namespace: mongodb data: projectName: <my_project_demo> orgId: <ops manager orgid> baseUrl: <ops-manager url>
  • 11. ConfigMap --- apiVersion: v1 kind: ConfigMap metadata: name: <my-config-project> namespace: mongodb data: projectName: <my_project_demo> orgId: <ops manager orgid> baseUrl: <ops-manager url>
  • 12. Secrets kubectl -n <metadata.namespace> create secret generic <myCredentials> --from-literal="user=<first.last@example.com>" --from-literal="publicApiKey=<my-public-api-key>"
  • 14. What is in MongoDB Operator 1. Runs on any upstream distribution 1.11 + 2. Deploys any MongoDB cluster type or size. 3. Automatic failure detection and recovery 4. Manual Scaling of Clusters: Pod sizes, PVC Size, ReplicaSets, sharded clusters 5. Modifies Cluster configuration: modify TLS spec, add MongoD configuration parameters (ie oplogSizeMB, …) 6. Configures fully secure MongoDB cluster: TLS, x509, RBAC 7. Ongoing observation of cluster health and re-configuration 8. OpenShift 3.11 certified 9. RHEL7 and Ubuntu 16.04 base images 10. MongoD and OpsManager Log pipeline integration with K8S 11. OpsManager as an additional control plane * Features and release order may change. Roadmap shown is only for discussion purposes.
  • 15. Single CRD to rule them all apiVersion: mongodb.com/v1 kind: MongoDB spec: version: 4.0.0 … members: 3 project: <my-project> credentials: <credentials> type: ReplicaSet apiVersion: mongodb.com/v1 kind: MongoDB spec: version: 4.0.0 … shardCount: 2 mongodsPerShardCount: 3 mongosCount: 2 configServerCount: 3 type: ShardedCluster apiVersion: mongodb.com/v1 kind: MongoDB spec: version: 4.0.0 project: <my-project> credentials: <credentials> type: Standalone
  • 16. High Level SSL implementation points security: tls: “enabled” clusterAuthMode: x509 Operator will perform: 1. Certificate request to get right certs 2. Place certificates into secretes 3. Add required configuration parameters to Ops Manager 4. Set-up cluster configuration with TLS Sharded Cluster- Orchestrate sequence of steps to get cluster configured with TLS
  • 17. RBAC and x509 with Operator New CRD to define MongoDB users Only x509 users are supported in GA Fully automated x509 generation and distribution X509 internal authentication included kind: MongoDBUser spec: userName: < Full name> authMechanism: x509 db: "$external" roles: - db: admin
  • 19. How to connect to MongDB Use Statefull Set unique names: Mongodb+srv://my-replica-demo-svc.mongodb.svc.cluster.local
  • 20. MongoDB Operator Roadmap 2019 * GA Summer 2019 Ready for Prime Time production ready. Multistage Builds Docs and webinars GA activities Post GA – 2019 Pivotal PKS and OpenShift 4.0 certification Atlas Open Service Broker for Kubernetes Split Horizon support Ops Manager CRD 2020 Prometheus Support for Federation v2 – multi region clusters Scaling – Automatic Custom Vertical scaling * Features and release order may change. Roadmap shown is only for discussion purposes.