Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/behnambm/k8s-simple-app
https://github.com/behnambm/k8s-simple-app
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/behnambm/k8s-simple-app
- Owner: behnambm
- License: mit
- Created: 2024-06-11T14:03:52.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-11T20:38:19.000Z (5 months ago)
- Last Synced: 2024-06-12T03:18:43.376Z (5 months ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# k8s-simple-app
A simple web app with MongoDB deployed on Kubernetes.
---
### Key Learnings and Achievements:
- **Persistent Storage Management:**
- Created a **local persistent volume** on the node.
- Developed persistent volume **claims** to manage storage.- **Deployment and Service Creation:**
- Set up deployments and services for both the web app and MongoDB.
- Mounted the volume to the MongoDB container to ensure data persistence.- **Service Communication:**
- Utilized Kubernetes services to enable communication between the web app and MongoDB pods within the cluster.- **Secure Configuration Management:**
- Implemented Kubernetes secrets to securely store and manage credentials.
- Used config maps to manage and store required configuration data.- **Deployment Strategies and Optimization:**
- Worked with deployment strategies, setting `maxSurge` to address MongoDB persistent data locking issues during pod restarts.### Run
```bash
kubectl apply -f .
```