Fix rolling upgrades on k18s #32
No Reviewers
Labels
Clear labels
bug
dev environment
docs
duplicate
enhancement
feature
idea
invalid
kredits-1
kredits-2
kredits-3
ops
question
security
ui/ux
wontfix
bug
design
dev environment
docs
duplicate
enhancement
feature
good first issue
idea
invalid
kredits-1
kredits-2
kredits-3
on hold
ops
question
security
ui/ux
wontfix
Something is not working
Config, builds, CI, deployment, etc.
Documentation
This issue or pull request already exists
Improving existing functionality
New functionality
Something to consider
Not a bug
Small contribution
Medium contribution
Large contribution
Looking for an answer
All your base are belong to us
User interface, process design, etc.
This won't be fixed
Something is not working
Graphic/visual design
Config, builds, CI, deployment, etc.
Documentation
This issue or pull request already exists
Improving existing functionality
New functionality
Dive in, and start contributing
Something to consider
Not a bug
Small contribution
Medium contribution
Large contribution
Currently not actionable
Manual IT ops activities
Looking for an answer
release
major
release
minor
release
patch
All your base are belong to us
User interface, process design, etc.
This won't be fixed
Milestone
No items
No Milestone
No due date set.
Dependencies
No dependencies set.
Reference: kosmos/gitea.kosmos.org#32
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
It was previously set to extensions/v1beta1. I have discovered that when the Deployment is created as a extensions/v1beta1, it causes the existing pod to be killed immediately when doing a rolling update. When the Deployment was created as apps/v1, a rolling update behaves as expected: a new pod is created, and the old one is only terminated once the new pod is ready to serve traffic.
The existing Deployment resource will need to be deleted and recreated:
Applying the file without deleting it first will not fix the issue with
rolling updates. It will cause a short downtime
@raucao What is a good time for you to pair on this migration?
The title here should be "Fix rolling upgrades on k18s" imo.
Please coordinate times and such on chat. This is not a chat platform. Thanks.
Bump the api version for the Deployment resource to apps/v1to Fix rolling upgrades on k18sWe have performed the migration, downtime was only a few seconds. We have also tried a running update for a non existing Docker image tag. The new pod kept running, a new one was created and failed to pull the image; I reverted the Docker image to the 1.9.0 tag and the failed pod was deleting, leaving the previous one.
While we were at it I removed one of the worker nodes (see #29 (comment)), first setting an unused node as cordoned, and then downsizing the pool. We are running on two smalls now