https://github.com/codefeedr/mongo-kubernetes
MongoDB manifests for Kubernetes.
https://github.com/codefeedr/mongo-kubernetes
Last synced: 8 months ago
JSON representation
MongoDB manifests for Kubernetes.
- Host: GitHub
- URL: https://github.com/codefeedr/mongo-kubernetes
- Owner: codefeedr
- Created: 2019-06-03T08:17:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-04T11:50:56.000Z (about 7 years ago)
- Last Synced: 2025-03-15T11:12:12.915Z (over 1 year ago)
- Language: Shell
- Size: 107 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🍃 MongoDB manifests for Kubernetes
This repository stores manifests to run a 3-node replicated MongoDB
cluster on Kubernetes.
## Prerequisites
- Kubernetes cluster with at least 3 worker nodes.
- Each node has a [ZFS
dataset](https://www.thegeekdiary.com/zfs-tutorials-creating-zfs-pools-and-file-systems/) mounted on `/mnt/mongo`.
- The nodes are named: `node_one`, `node_two`, `node_three`. To change
this in the manifests see the [pv-mongo
file](01-storage/01-pv-mongo.yaml).
## How To Run
```sh
git clone https://github.com/codefeedr/mongo-kubernetes
./run.sh
```
## Architecture

The mongo instances are deployed on the three worker nodes behind a
(headless) service. The (internal) addresses of these instances:
```bash
mongo-0.mongo-hs.ghtorrent:27017
mongo-1.mongo-hs.ghtorrent:27017
mongo-2.mongo-hs.ghtorrent:27017
```
The login credentials:
**username:** ghtorrent
**password:** ghtorrent
---
### Resources
1.[https://pauldone.blogspot.com/2017/06/deploying-mongodb-on-kubernetes-gke25.html](https://pauldone.blogspot.com/2017/06/deploying-mongodb-on-kubernetes-gke25.html)
2.[https://stackoverflow.com/questions/51815216/authentication-mongo-deployed-on-kubernetes](https://stackoverflow.com/questions/51815216/authentication-mongo-deployed-on-kubernetes)
3.[https://github.com/pkdone/gke-mongodb-demo](https://github.com/pkdone/gke-mongodb-demo)