https://github.com/ranjithdb/k8s-03
Scaling and Updating Applications in Kubernetes
https://github.com/ranjithdb/k8s-03
k8s kubernetes
Last synced: 4 days ago
JSON representation
Scaling and Updating Applications in Kubernetes
- Host: GitHub
- URL: https://github.com/ranjithdb/k8s-03
- Owner: ranjithdb
- Created: 2025-03-03T15:10:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-03T15:22:00.000Z (about 1 year ago)
- Last Synced: 2025-03-03T16:30:51.973Z (about 1 year ago)
- Topics: k8s, kubernetes
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# k8s-03
## Scaling and Updating Applications in Kubernetes
- Scale the application (run multiple copies for high availability).
- multiple copies (called replicas) to handle more users and provide fault tolerance.
```sh
kubectl scale deployment nginx --replicas=3
```
- Update the application change the version of Nginx
without downtime (this is called a rolling update).
```sh
kubectl set image deployment/nginx nginx=nginx:1.25
```
- Rolling Back Changes
If the update breaks something, we can rollback to the previous version.
```sh
kubectl rollout undo deployment nginx
```
