{"id":51133706,"url":"https://github.com/lpsouza/docker-kubernetes-exercises","last_synced_at":"2026-06-25T15:30:21.859Z","repository":{"id":363437365,"uuid":"1262350292","full_name":"lpsouza/docker-kubernetes-exercises","owner":"lpsouza","description":"This repository contains a series of progressive, hands-on labs designed to teach the fundamentals of containerization and orchestration using Docker CLI, Docker Compose, and Kubernetes. It serves as a practical guide for students and developers seeking to master container architectures.","archived":false,"fork":false,"pushed_at":"2026-06-08T22:06:56.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-09T00:09:01.972Z","etag":null,"topics":["docker","docker-compose","educational","exercises","kubernetes","training"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/lpsouza.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-07T22:21:48.000Z","updated_at":"2026-06-08T22:07:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lpsouza/docker-kubernetes-exercises","commit_stats":null,"previous_names":["lpsouza/docker-kubernetes-exercises"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/lpsouza/docker-kubernetes-exercises","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpsouza%2Fdocker-kubernetes-exercises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpsouza%2Fdocker-kubernetes-exercises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpsouza%2Fdocker-kubernetes-exercises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpsouza%2Fdocker-kubernetes-exercises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lpsouza","download_url":"https://codeload.github.com/lpsouza/docker-kubernetes-exercises/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lpsouza%2Fdocker-kubernetes-exercises/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34781424,"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-25T02:00:05.521Z","response_time":101,"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","docker-compose","educational","exercises","kubernetes","training"],"created_at":"2026-06-25T15:30:19.997Z","updated_at":"2026-06-25T15:30:21.845Z","avatar_url":"https://github.com/lpsouza.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker and Kubernetes Training Exercises\n\nThis repository contains a series of progressive, hands-on labs designed to teach the fundamentals of containerization and orchestration using Docker CLI, Docker Compose, and Kubernetes. It serves as a practical guide for students and developers seeking to master container architectures.\n\n## Repository Structure\n\nThe exercises are organized into two primary sections: Docker and Kubernetes. Each folder represents a dedicated laboratory module with its own configuration files and detailed guides.\n\n```text\ndocker-kubernetes-exercises/\n├── docker/\n│   ├── README.md      # Docker Overview \u0026 Installation Guide\n│   ├── lab1/          # Docker CLI Basics (Nginx, Port mapping, Exec)\n│   ├── lab2/          # Node.js Web App Containerization (Dockerfile Sec)\n│   └── lab3/          # Service Orchestration (Compose, Redis, Scaling)\n├── kubernetes/\n│   ├── README.md      # Kubernetes Overview \u0026 Installation Guide\n│   ├── registry-setup/# Local Container Registry (Push/Pull Local Setup)\n│   ├── lab4/          # Kubernetes Deployments (Namespaces, Resource Limits)\n│   ├── lab5/          # Services and Troubleshooting (ClusterIP, Diagnostic Probes)\n│   ├── lab6/          # Package Management with Helm (Grafana/Prometheus)\n│   └── extra-lab/     # Storage, ConfigMaps, Secrets, Ingress (Dynamic Setup)\n└── cheatsheet.md      # Docker \u0026 Kubernetes Command Cheat Sheet\n```\n\n## Lab Overview\n\nBefore starting the labs, make sure to set up the necessary tools. Refer to the [Docker Installation Guide](docker/README.md) and [Kubernetes Installation Guide](kubernetes/README.md) for step-by-step instructions on setting up prerequisites for your operating system.\n\nA handy [Docker \u0026 Kubernetes Cheat Sheet](cheatsheet.md) is available at the root level to serve as a quick CLI reference while you work through the exercises.\n\n### Docker Labs\n\n- **[Lab 1: Docker CLI Basics](docker/lab1/README.md)**: Master basic command-line interactions. You will pull the official Nginx image, run containers in detached mode, map ports, pass environment variables, modify active containers through bash sessions, and analyze system logs/resource metrics.\n- **[Lab 2: Node.js App Containerization](docker/lab2/README.md)**: Build a secure, production-ready image for a Node.js web application. This lab emphasizes security best practices, including using lightweight alpine base images, implementing non-root user accounts inside the container, and optimizing layer caching.\n- **[Lab 3: Service Orchestration with Compose](docker/lab3/README.md)**: Transition from single container management to multi-container orchestration. You will configure Docker Compose to launch a Node.js web app linked to a Redis database, utilizing custom bridge networks, named volumes for data persistence, and port ranges to scale services without conflicts.\n\n### Kubernetes Labs\n\n- **[Registry Setup: Local Container Registry](kubernetes/registry-setup/README.md)**: Optional pre-setup. Run a local container registry to push your application image and configure Kubernetes to pull from it, simulating production pipelines.\n- **[Lab 4: Deployments in Multi-Tenant Environments](kubernetes/lab4/README.md)**: Deploy your containerized web application to a shared Kubernetes cluster. Learn how to work within isolated namespaces, set CPU/Memory limits to prevent resource starvation, configure readiness/liveness probes, and dynamically scale replica counts.\n- **[Lab 5: Service Routing and Troubleshooting](kubernetes/lab5/README.md)**: Explore Kubernetes networking and debug real-world issues. You will expose deployments internally using `ClusterIP` services, test pod-to-service connectivity, and diagnose an intentionally broken deployment using troubleshooting tools (`kubectl describe`, logs, and events).\n- **[Lab 6: Package Management with Helm](kubernetes/lab6/README.md)**: Install Helm on your system, deploy the `kube-prometheus-stack` monitoring system (Prometheus \u0026 Grafana) using Helm charts, and access the live cluster metrics dashboard.\n- **[Extra Lab: Persistent Storage, ConfigMaps, Secrets, and Ingress](kubernetes/extra-lab/README.md)**: Deploy the Node.js + Redis multi-container application on Kubernetes. Learn to decouple configuration (ConfigMaps \u0026 Secrets), configure data persistence via PVC, and route domain traffic using Ingress.\n\n## Getting Started\n\nTo begin any laboratory exercise, navigate to its respective subdirectory and follow the step-by-step instructions provided in its README file.\n\nFor example, to start Lab 1:\n\n```bash\ncd docker/lab1\ncat README.md\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpsouza%2Fdocker-kubernetes-exercises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flpsouza%2Fdocker-kubernetes-exercises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flpsouza%2Fdocker-kubernetes-exercises/lists"}