-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete autoscalers when rolling out new versions (#147)
In the current implementation, when a new version of the app is fully rolled out, we delete the kubernetes resources associated with the old app (except the autoscalers). This is because we're not setting the app and the version labels in the kubernetes manifest for the multi dimensional autoscaler. However, this is not easy. Somehow if we manually set the labels in the template, the labels are completely ignored once the template is converted to an unstructured object. In this PR we add the app and the version labels to the kubernetes manifest for the multi pod autoscaler. Also, we delete the autoscaler resources for old deployments. Note that we also have a kill command that has the same issue. This PR should fix it.
- Loading branch information
Showing
2 changed files
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters