{"id":22260946,"url":"https://github.com/piyushsachdeva/10weeksofcloudops_week7","last_synced_at":"2026-03-19T22:13:10.736Z","repository":{"id":187984058,"uuid":"677915829","full_name":"piyushsachdeva/10WeeksOfCloudOps_Week7","owner":"piyushsachdeva","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-13T16:31:32.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T12:25:45.331Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/piyushsachdeva.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}},"created_at":"2023-08-13T04:23:48.000Z","updated_at":"2023-11-17T16:07:36.000Z","dependencies_parsed_at":"2023-08-13T05:45:57.369Z","dependency_job_id":null,"html_url":"https://github.com/piyushsachdeva/10WeeksOfCloudOps_Week7","commit_stats":null,"previous_names":["piyushsachdeva/10weeksofcloudops_week7"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyushsachdeva%2F10WeeksOfCloudOps_Week7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyushsachdeva%2F10WeeksOfCloudOps_Week7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyushsachdeva%2F10WeeksOfCloudOps_Week7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piyushsachdeva%2F10WeeksOfCloudOps_Week7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piyushsachdeva","download_url":"https://codeload.github.com/piyushsachdeva/10WeeksOfCloudOps_Week7/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245469641,"owners_count":20620620,"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":[],"created_at":"2024-12-03T09:10:55.219Z","updated_at":"2026-01-06T07:10:38.528Z","avatar_url":"https://github.com/piyushsachdeva.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 10WeeksOfCloudOps_Week7\n## Below are the task details:\n\nYour organization is evolving, and your CTO wants to streamline the build and deployment process. As a DevOps engineer, you have been tasked to deploy a local docker images registry on Kubernetes to store the docker images in the namespace called “democloudops”  and should meet the following requirements:\n\n**Cluster Provisioning:**\n*  Provision a Kubernetes regional cluster with at least three worker nodes.\n*  Ensure that the nodes are distributed across different availability zones.\n\n**Sample Deployment:**\n*  The Docker registry should be deployed with three replicas, and each replica should be scheduled on a separate node.\n*  Pod runs in a container with image `registry:2.8.2` and name as `registry-cloudops`\n*  The application container should store images under `/var/lib/10weeksofcloudops`.\n\n**Storage:**\n*  Configure a Persistent Volume (PV) to store data for the application.\n*  The PV should request at least 50Gi of storage space.\n*  Ensure the data stored in the PV survives pod restarts.\n\n**Container Configuration:**\n*  The application container should expose itself on port 5000.\n*  Kubelet should perform health checks on the registry-cloudops and restart the pod if it doesn't respond on TCP port 5000 for 30 seconds. Kubelet should wait for 15 seconds before performing its first health check\n*  The container should request 1Gi Memory, and the limit should be 2Gi\n\n**Init Container:**\n*  Implement an init container within the registry-cloudops deployment to ensure the presence of the data directory required by the Docker registry.\n*  The init container should use an Alpine-based image and create the data directory \"/var/lib/10weeksofcloudops\" if it doesn't exist.\n\n\n**Service Exposure:**\n*  Create a Kubernetes load balancer service to expose the application externally.\n*  The service should map an external port to port 5000 on the pods.\n\n**Network Policies:**\n*  Implement Network Policies to restrict incoming and outgoing network traffic for the Docker registry pods.\n*  Allow necessary communication while enforcing security practices.\n\n\n**Secrets and ConfigMap:**\n*  Store sensitive information in Kubernetes Secrets, such as authentication credentials for the Docker registry.\n*  Utilize a ConfigMap to manage configuration settings for the Docker registry deployment.\n\n**Backup and Recovery:**\n*  Define a backup strategy for the data stored in the Persistent Volume.\n*  Explore options for restoring the registry in case of data loss or pod failures.\n\n**Perform cluster upgrade to 1 major version**\n*  After the upgrade, make sure that your cluster is healthy, including the workload\n\n**Deliverables:**\n*  Your solution should be well-structured, documented in a blog including the GitHub repo, and optimized for the best Kubernetes architecture, resource utilization, and security practices.\n*  Please also tag me(piyush-sachdeva) and `#10weeksofcloudops` in the Linkedin/Twitter post so that we can track all the submissions.\n\n*  Please provide a detailed YAML manifest or command set that demonstrates how you would achieve the above requirements.\n*  Also, include any necessary explanations or considerations related to your implementation.\n\nNote: Feel free to use any appropriate resources, such as Kubernetes documentation, to assist in your implementation. Good luck!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyushsachdeva%2F10weeksofcloudops_week7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiyushsachdeva%2F10weeksofcloudops_week7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyushsachdeva%2F10weeksofcloudops_week7/lists"}