{"id":51038942,"url":"https://github.com/swapnilmali101/full-stack-chatapp","last_synced_at":"2026-06-22T09:01:24.986Z","repository":{"id":349680059,"uuid":"1203413802","full_name":"swapnilmali101/full-stack-chatapp","owner":"swapnilmali101","description":"Kubernetes manifests for deploying a full-stack chat application on a local Docker Desktop (Windows) environment with Kubernetes enabled on a single-node cluster.","archived":false,"fork":false,"pushed_at":"2026-05-12T02:02:13.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-12T04:08:30.410Z","etag":null,"topics":["docker","dockerdesktop","k8s","k8s-cluster","k8s-deployment","kubernetes","kubernetes-cluster","kubernetes-deployment","kubernetes-manifests","kubernetes-setup"],"latest_commit_sha":null,"homepage":"https://github.com/swapnilmali101/full-stack-chatapp","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swapnilmali101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-07T02:44:47.000Z","updated_at":"2026-05-12T02:03:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/swapnilmali101/full-stack-chatapp","commit_stats":null,"previous_names":["swapnilmali101/k8s-manifests-local-chatapp","swapnilmali101/full-stack-chatapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/swapnilmali101/full-stack-chatapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilmali101%2Ffull-stack-chatapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilmali101%2Ffull-stack-chatapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilmali101%2Ffull-stack-chatapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilmali101%2Ffull-stack-chatapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swapnilmali101","download_url":"https://codeload.github.com/swapnilmali101/full-stack-chatapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swapnilmali101%2Ffull-stack-chatapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34641636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","dockerdesktop","k8s","k8s-cluster","k8s-deployment","kubernetes","kubernetes-cluster","kubernetes-deployment","kubernetes-manifests","kubernetes-setup"],"created_at":"2026-06-22T09:01:24.238Z","updated_at":"2026-06-22T09:01:24.970Z","avatar_url":"https://github.com/swapnilmali101.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Full Stack Chat Application\n\nKubernetes manifests for deploying a **Full Stack Chat Application** on a local Docker Desktop (Windows) environment with Kubernetes enabled on a single-node cluster.\n\n-----\n\n## 📋 Table of Contents\n\n- [Overview](#overview)\n- [Architecture](#architecture)\n- [Prerequisites](#prerequisites)\n- [Project Structure](#project-structure)\n- [Getting Started](#getting-started)\n- [Deployment](#deployment)\n- [Accessing the Application](#accessing-the-application)\n- [Teardown](#teardown)\n- [Troubleshoots](#troubleshoots)\n- [License](#license)\n\n-----\n\n## 🚀 Overview\n\nThis repository contains all the Kubernetes manifest files needed to spin up a full-stack chat application locally. The stack includes:\n\n- **Frontend** – Web UI served via a dedicated deployment and service\n- **Backend** – REST/WebSocket API server\n- **MongoDB** – Persistent database with a PersistentVolume and PersistentVolumeClaim\n- **Ingress** – NGINX Ingress Controller to route external traffic to services\n- **Secrets** – Kubernetes secrets for sensitive configuration (e.g. DB credentials)\n\nAll resources are scoped to the `k8s-chatapp` namespace.\n\n-----\n\n## 🏗️ Architecture\n\n```\n                        ┌─────────────────────────────────────────┐\n                        │           k8s-chatapp Namespace         │\n                        │                                         │\n  Browser ──► Ingress ──►  Frontend Pod  ──►  Backend Pod         │\n                        │                        │                │\n                        │               MongoDB Service           │\n                        │                    │                    │\n                        │               MongoDB Pod               │\n                        │            (PV + PVC mounted)           │\n                        └─────────────────────────────────────────┘\n```\n\n-----\n\n## ⚙️ Prerequisites\n\nEnsure the following are installed and running before deploying:\n\n|Tool                                                             |Version|Notes                        |\n|-----------------------------------------------------------------|-------|-----------------------------|\n|[Docker Desktop](https://www.docker.com/products/docker-desktop/)|Latest |Enable Kubernetes in settings|\n|[kubectl](https://kubernetes.io/docs/tasks/tools/)               |v1.25+ |Kubernetes CLI               |\n|NGINX Ingress Controller                                         |Latest |Required for ingress routing |\n\n### Enable Kubernetes on Docker Desktop\n\n1. Open Docker Desktop → **Settings** → **Kubernetes**\n1. Check **Enable Kubernetes**\n1. Click **Apply \u0026 Restart**\n\n### Install NGINX Ingress Controller\n\n```bash\nkubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.10.0/deploy/static/provider/cloud/deploy.yaml\n```\n\n-----\n\n## 📂 Project Structure\n\n```\nfull-stack-chatapp/\n├── k8s-manifests/\n│   ├── namespace.yaml            # Namespace: k8s-chatapp\n│   ├── secrets.yaml              # Kubernetes Secrets (DB credentials, etc.)\n│   ├── mongodb-pv.yaml           # PersistentVolume for MongoDB\n│   ├── mongodb-pvc.yaml          # PersistentVolumeClaim for MongoDB\n│   ├── mongodb-deployment.yaml   # MongoDB Deployment\n│   ├── mongodb-service.yaml      # MongoDB ClusterIP Service\n│   ├── backend-deployment.yaml   # Backend API Deployment\n│   ├── backend-service.yaml      # Backend ClusterIP Service\n│   ├── frontend-deployment.yaml  # Frontend Deployment\n│   ├── frontend-service.yaml     # Frontend ClusterIP Service\n│   └── ingress.yaml              # NGINX Ingress rules\n├── .env                          # Environment variables (local use only)\n├── .gitignore\n├── LICENSE\n└── README.md\n```\n\n-----\n\n## ⚡Getting Started\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/swapnilmali101/full-stack-chatapp.git\ncd full-stack-chatapp\n```\n\n### 2. Configure Environment Variables\n\nCopy or review the `.env` file and update any values as needed. Sensitive values should be base64-encoded and placed in `secrets.yaml`.\n\n```bash\n# Example: base64 encode a secret value\necho -n \"your-password\" | base64\n```\n\n-----\n\n## 👷‍♂️ Deployment\n\nApply all manifests in the following order from the `k8s-manifests/` directory:\n\n```bash\ncd k8s-manifests\n```\n\n### Step 1 – Create Namespace\n\n```bash\nkubectl create -f namespace.yaml\nkubectl get ns\n```\n\n### Step 2 – Create Persistent Storage for MongoDB\n\n```bash\nkubectl apply -f mongodb-pv.yaml\nkubectl apply -f mongodb-pvc.yaml\nkubectl get pvc,pv -n k8s-chatapp\n```\n\n### Step 3 – Deploy MongoDB\n\n```bash\nkubectl apply -f mongodb-deployment.yaml\nkubectl apply -f mongodb-service.yaml\n```\n\n### Step 4 – Apply Secrets\n\n```bash\nkubectl apply -f secrets.yaml\n```\n\n### Step 5 – Deploy Backend\n\n```bash\nkubectl apply -f backend-deployment.yaml\nkubectl apply -f backend-service.yaml\n```\n\n### Step 6 – Deploy Frontend\n\n```bash\nkubectl apply -f frontend-deployment.yaml\nkubectl apply -f frontend-service.yaml\n```\n\n### Step 7 – Apply Ingress\n\n```bash\nkubectl apply -f ingress.yaml\n```\n\n### Verify Everything Is Running\n\n```bash\nkubectl get pods -n k8s-chatapp\nkubectl get svc -n k8s-chatapp\nkubectl get ingress -n k8s-chatapp\nkubectl get pods -n ingress-nginx\nkubectl get svc -n ingress-nginx\n```\n\nAll pods should show `Running` status before proceeding.\n\n-----\n\n## 🌐 Accessing the Application\n\n### Via Ingress (Recommended)\n\nForward traffic from the NGINX Ingress Controller to your local machine:\n\n```bash\nkubectl port-forward svc/ingress-nginx-controller -n ingress-nginx 80:80\n```\n\nThen open your browser at: \u003chttp://localhost:80\u003e\n\n### Direct Backend Port-Forward (for debugging)\n\n```bash\nkubectl port-forward svc/backend 5001:5001 -n k8s-chatapp\n```\n\nBackend API available at: \u003chttp://localhost:5001\u003e\n\n-----\n\n## ⛓️‍💥 Teardown\n\nTo remove all deployed resources and clean up the namespace:\n\n```bash\nkubectl delete namespace k8s-chatapp\nkubectl get ns\n```\n\n\u003e ⚠️ This will delete **all** resources in the `k8s-chatapp` namespace, including PersistentVolumeClaims and their data.\n\n-----\n\n## 📟 Troubleshoots\n\n___[refer repo ⇒ troubleshooting-plunges](https://github.com/swapnilmali101/troubleshooting-plunges)___\n\n---\n\n## 📄 License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n-----\n\n## ✍️ Author\n\n\u003c!-- Start author box --\u003e\n\u003ctable align=\"center\" width=\"100%\"\u003e\n    \u003ctr\u003e\n        \u003ctd align=\"center\" valign=\"middle\" width=\"30%\"\u003e\n            \u003cimg src=\"https://github.com/swapnilmali101/swapnilmali101/blob/master/assets/swapnilmali-profile-pic.png\" alt=\"Swapnil Mali\" width=\"150\" style=\"border-radius: 50%; max-width=\"100%;\"\u003e\n        \u003c/td\u003e\n        \u003ctd align=\"left\" valign=\"top\" width=\"70%\"\u003e\n            \u003ch2\u003eSWAPNIL MALI.\u003c/h2\u003e\n            \u003cp\u003e\n                \u003ca href=\"https://github.com/swapnilmali101\" target=\"_blank\" align=\"center\"\u003e\n                   \u003cimg src=\"https://img.shields.io/badge/GitHub-Profile-181717?style=for-the-badge\u0026logo=github\u0026logoColor=yellow\" alt=\"GitHub Profile\"\u003e\n                \u003c/a\u003e\n            \u003c/p\u003e\n            \u003cp\u003e\u003cem\u003e👨🏻‍💻CS Engineer | AWS \u0026 DevOps Specialist -🎯focused on building reliable, observable, and scalable systems.\u003c/em\u003e\u003c/p\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\u003c!-- End author box --\u003e\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswapnilmali101%2Ffull-stack-chatapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswapnilmali101%2Ffull-stack-chatapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswapnilmali101%2Ffull-stack-chatapp/lists"}