Git Product home page Git Product logo

rajatmjain / k8smongo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

K8sMongo simplifies the deployment and management of MongoDB and mongo-express in Kubernetes. It provides streamlined deployment files, secrets integration, and configuration flexibility, allowing easy setup and efficient management of these applications in a Kubernetes environment.

devops kubernetes mongodb mongoexpress

k8smongo's Introduction

K8sMongo

K8sMongo is a repository that simplifies the deployment and management of MongoDB and mongo-express in a Kubernetes environment. It provides a streamlined approach for running MongoDB and mongo-express as containerized applications, leveraging the power and flexibility of Kubernetes orchestration.

Features

  • Easy Deployment: Deploy MongoDB and mongo-express in a Kubernetes cluster using the provided deployment files.
  • Secrets Integration: Securely manage sensitive information, such as usernames and passwords, with Kubernetes secrets.
  • Configuration Flexibility: Fine-tune MongoDB and mongo-express configurations using Kubernetes ConfigMaps.
  • External Service Access: Expose the MongoDB and mongo-express services externally using LoadBalancer service types.

Getting Started

To get started with K8sMongo, follow these steps:

  1. Clone this repository: git clone https://github.com/rajatmjain/K8sMongo.git
  2. Customize the MongoDB deployment by modifying the deployment file (mongodb-deployment.yaml) and adjusting the configuration as needed.
  3. Configure the necessary secrets for MongoDB authentication in the mongodb-secret.yaml file.
  4. If required, update the MongoDB configuration using the provided ConfigMap file (mongodb-configmap.yaml).
  5. Deploy MongoDB in your Kubernetes cluster using the deployment file: kubectl apply -f mongodb-deployment.yaml
  6. (Optional) Expose the MongoDB service externally: kubectl apply -f mongodb-service.yaml
  7. Customize the mongo-express deployment by modifying the deployment file (mongoexpress-deployment.yaml) and adjusting the configuration as needed.
  8. Configure the necessary secrets for mongo-express authentication in the mongodb-secret.yaml file (if not already configured).
  9. If required, update the MongoDB server URL configuration for mongo-express using the provided ConfigMap file (mongodb-configmap.yaml).
  10. Deploy mongo-express in your Kubernetes cluster using the deployment file: kubectl apply -f mongoexpress-deployment.yaml
  11. (Optional) Expose the mongo-express service externally: kubectl apply -f mongoexpress-service.yaml
  12. (Optional) Expose the mongo-express ingress externally: kubectl apply -f mongoexpress-ingress.yaml
  13. (Optional) Create a mapping between the host and IP through sudo vim /etc/hosts, example: 192.168.64.5 mongoexpressk8s.com
  14. (Optional) Access mongoexpress-service by going to http://mongoexpressk8s.com in the browser.

Contributing

Contributions to K8sMongo are always welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgments

K8sMongo was created and is maintained by Rajat Jain. I would like to express my gratitude to the open-source community for their valuable contributions.

k8smongo's People

Contributors

rajatmjain avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.