{"id":28480523,"url":"https://github.com/mukund-p/kubernetes-deployment-task","last_synced_at":"2026-04-12T11:45:06.953Z","repository":{"id":294280553,"uuid":"986477618","full_name":"mukund-p/kubernetes-deployment-task","owner":"mukund-p","description":"Task-5 Simple Kubernetes deployment with YAML for pods, services, and scaling.","archived":false,"fork":false,"pushed_at":"2025-05-19T17:47:38.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T19:06:40.794Z","etag":null,"topics":["deployment","devops","k8s","kubernetes","pods","services","yaml"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mukund-p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-05-19T17:07:12.000Z","updated_at":"2025-05-20T13:27:33.000Z","dependencies_parsed_at":"2025-05-19T18:35:10.395Z","dependency_job_id":"0ea5e385-8893-4866-9c93-be715878cf91","html_url":"https://github.com/mukund-p/kubernetes-deployment-task","commit_stats":null,"previous_names":["mukund-p/kubernetes-deployment-task"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mukund-p/kubernetes-deployment-task","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukund-p%2Fkubernetes-deployment-task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukund-p%2Fkubernetes-deployment-task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukund-p%2Fkubernetes-deployment-task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukund-p%2Fkubernetes-deployment-task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mukund-p","download_url":"https://codeload.github.com/mukund-p/kubernetes-deployment-task/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukund-p%2Fkubernetes-deployment-task/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263388667,"owners_count":23459247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["deployment","devops","k8s","kubernetes","pods","services","yaml"],"created_at":"2025-06-07T19:06:41.054Z","updated_at":"2025-10-24T07:32:00.917Z","avatar_url":"https://github.com/mukund-p.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Kubernetes Deployment with Minikube\n## Task-5\n---\n\nThis repository contains the deployment of a Python-based web application using **Kubernetes** on a local **Minikube** cluster. The app serves a static HTML page and demonstrates core Kubernetes concepts like **Deployments**, **Services**, and **Pod scaling**.\n\n---\n\n## Files Included\n\n├── screenshots/ \u003cbr\u003e\n├── Dockerfile \u003cbr\u003e\n├── index.html \u003cbr\u003e\n├── deployment.yaml \u003cbr\u003e\n├── service.yaml \u003cbr\u003e\n└── app.py \n\n---\n\n## Tools \u0026 Technologies\n\n-  Docker\n-  Kubernetes\n-  Minikube\n-  Python 3.9\n-  kubectl\n\n---\n\n## How to Run This Project\n\n### 1. Start Minikube\n\n```bash\nminikube start\n```\n\n### 2. Build the Docker Image\n\n```bash\ndocker build -t my-kube-app:v1 .\n```\n\n### 3. Deploy the Application to Kubernetes\n\n```bash\nkubectl apply -f deployment.yaml\n```\n\n### 4. Expose the Deployment using a LoadBalancer Service\n\n```bash\nkubectl apply -f service.yaml\n```\n\n### 5. Access the Web Application\n\n```bash\nminikube service my-kube-app-service\n```\n\n**Expected output in browser**:\n```\nHello, Kubernetes!\n```\n\n---\n\n## Kubernetes Commands Used\n\n```bash\nkubectl get pods\nkubectl get svc\nkubectl describe pod \u003cpod-name\u003e\nkubectl logs \u003cpod-name\u003e\nkubectl scale deployment my-kube-app --replicas=3\n```\n\n---\n\n## Screenshots\n\n### 1. Terminal Output :\n\n![Output](screenshots/terminal-output.png)\n\n### 2. Browser Output :\n\n![Output](screenshots/browser-output.png)\n\n---\n\n\n# 📘 Interview Questions \u0026 Answers – Kubernetes Basics\n\n### 1. What is Kubernetes?\n**Kubernetes** is an open-source container orchestration platform. It automates deployment, scaling, and management of containerized applications.\n\n---\n\n### 2. What is the role of kubelet?\nThe **kubelet** is an agent that runs on each node in the Kubernetes cluster. It ensures that containers described in PodSpecs are running and healthy.\n\n---\n\n### 3. Explain pods, deployments, and services.\n\n- **Pod**: The smallest deployable unit in Kubernetes. It can contain one or more containers.\n- **Deployment**: A controller that manages ReplicaSets and ensures the desired number of pods are running.\n- **Service**: An abstraction that defines a logical set of pods and a policy to access them.\n\n---\n\n### 4. How do you scale in Kubernetes?\nScaling is done by:\n- **Manual scaling**: `kubectl scale deployment \u003cname\u003e --replicas=\u003cnumber\u003e`\n- **Auto-scaling**: Using Horizontal Pod Autoscaler based on CPU or custom metrics.\n\n---\n\n### 5. What is a namespace?\nA **namespace** provides a scope for Kubernetes objects. It is useful for dividing cluster resources among multiple users or teams.\n\n---\n\n### 6. Difference between ClusterIP, NodePort, LoadBalancer.\n\n| Type         | Description |\n|--------------|-------------|\n| ClusterIP    | Default; accessible only within the cluster. |\n| NodePort     | Exposes the service on each Node’s IP at a static port. |\n| LoadBalancer | Exposes the service externally using a cloud provider's load balancer. |\n\n---\n\n### 7. What are config maps?\n**ConfigMaps** allow you to decouple configuration artifacts from image content. They are used to store non-confidential configuration data as key-value pairs.\n\n---\n\n### 8. How do you perform rolling updates?\n**Rolling updates** are done using Deployments. They gradually replace old pod versions with new ones using:\n```bash\nkubectl set image deployment/\u003cname\u003e \u003ccontainer\u003e=\u003cnew-image\u003e\n```\nThis ensures zero downtime during application updates.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmukund-p%2Fkubernetes-deployment-task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmukund-p%2Fkubernetes-deployment-task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmukund-p%2Fkubernetes-deployment-task/lists"}