Skip to content

Commit

Permalink
Update kubectl.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lwindolf authored Oct 11, 2024
1 parent d325daa commit ec14314
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cheat Sheets/kubernetes/kubectl.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,16 @@ Either limit the history via optional spec fields:
.spec.successfulJobsHistoryLimit
.spec.failedJobsHistoryLimit

## Modifying STS without downtime

Many fields in an STS cannot be changed. Sometimes you need to update an STS in production
and want no downtime. In this case remove it like this:

kubectl delete sts <name> --cascade=false

This will ensure all pods stay up. Next create the STS with your new configuration and restart
the pods sequentially.

## Shorter CLI

With those two bash lines
Expand Down

0 comments on commit ec14314

Please sign in to comment.