Update deployment code and dependencies#351
Conversation
- Update deployments to use Werf 1.2 which brings various improvements and simplifies some things. - This upgrade to the underlying deployment image also brings a newer version of kubectl which I think is why some recent deployments have been failing against upgraded kubernetes clusters (since the old deployment code wasn't using a new enough version of kubectl tor rancher's cli). - Store the deployed images in ECR so that we can also implement a new image cleanup job. This helps cleanup unused images from old deploys from the image repository so the storage needs don't grow indefinitely. - Address some issues with ingress version and annotations needing to be upgraded for new versions of kubernetes. But note that we currently need slightly different approaches for dev and staging/prod due to different Kubernetes versions these clusters are running. But once staging/prod are on the same version of Kubernetes as dev, then this will need to be updated so they all use the same approach.
|
|
Bill-Becker
left a comment
There was a problem hiding this comment.
@GUI @adfarth I scrolled through all the code changes, but it's outside of my understanding in general. I'm trusting Nick on those. The one thing I tried to do was undeploy the PR 351 (should be equivalent to werf-1-2, I think) because werf-1-2 was already deployed to development. The undeploy failed with "Error: unable to load werf config: template: werfConfig:8:26: executing "werfConfig" at : error calling env: the environment variable "XPRESS_LICENSE_HOST" "
I'm not sure how to debug from here, but seems like XPRESS_LICENSE_HOST env var is not getting set, or something like that.
|
@Bill-Becker, @GUI made changes in the |
- Add resource requests and limits to try and better guard against resource exhaustion and deal with potential memory growth over time. - Add a topology spread constraint to try and make sure pods are deployed more evenly across available nodes for better redundancy.
I think these changes will need to be merged into any branches you want to fix the deploys on. So not totally sure how you're branching strategy is working and whether you want this in
developerormasteror how that might propagate to other branches.