{"id":25975793,"url":"https://github.com/ranjithdb/k8s-03","last_synced_at":"2026-05-28T13:06:39.260Z","repository":{"id":280469137,"uuid":"942096379","full_name":"ranjithdb/k8s-03","owner":"ranjithdb","description":"Scaling and Updating Applications in Kubernetes","archived":false,"fork":false,"pushed_at":"2025-03-03T15:22:00.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T16:30:51.973Z","etag":null,"topics":["k8s","kubernetes"],"latest_commit_sha":null,"homepage":"","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/ranjithdb.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}},"created_at":"2025-03-03T15:10:20.000Z","updated_at":"2025-03-03T15:25:20.000Z","dependencies_parsed_at":"2025-03-03T16:31:13.252Z","dependency_job_id":"0c7157a3-f87d-4051-9f69-15dc998a8f69","html_url":"https://github.com/ranjithdb/k8s-03","commit_stats":null,"previous_names":["ranjithdb/k8s-03"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjithdb%2Fk8s-03","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjithdb%2Fk8s-03/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjithdb%2Fk8s-03/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranjithdb%2Fk8s-03/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranjithdb","download_url":"https://codeload.github.com/ranjithdb/k8s-03/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241956658,"owners_count":20048673,"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":["k8s","kubernetes"],"created_at":"2025-03-05T03:24:11.111Z","updated_at":"2026-05-28T13:06:34.238Z","avatar_url":"https://github.com/ranjithdb.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# k8s-03\n\n## Scaling and Updating Applications in Kubernetes\n\n- Scale the application (run multiple copies for high availability).\n  - multiple copies (called replicas) to handle more users and provide fault tolerance.\n\n```sh\nkubectl scale deployment nginx --replicas=3\n```\n\n- Update the application change the version of Nginx\nwithout downtime (this is called a rolling update).\n\n```sh\nkubectl set image deployment/nginx nginx=nginx:1.25\n```\n\n- Rolling Back Changes\nIf the update breaks something, we can rollback to the previous version.\n\n```sh\nkubectl rollout undo deployment nginx\n```\n\n![k8s scale](ss/01.png \"k8s scale commands\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franjithdb%2Fk8s-03","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franjithdb%2Fk8s-03","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franjithdb%2Fk8s-03/lists"}