feat(kaniko): Optimize kaniko build by 50% using compression and add progress#9476
Merged
ericzzzzzzz merged 4 commits intoAug 30, 2024
Merged
Conversation
1d1597c to
166adfd
Compare
Contributor
Author
7309250 to
c5a33c0
Compare
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
c5a33c0 to
41cda11
Compare
Contributor
Author
|
@ericzzzzzzz what do you think about this PR? it reduced kaniko build time by 50% and data transfer by 70%(from 610M to 167M) |
Contributor
|
Hi @idsulik , Thank you so much for the contribution, this is a great improvement. It's gonna take me some time to review this as I'm not very familiar with kaniko. |
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
ericzzzzzzz
approved these changes
Aug 30, 2024
Closed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Merge current PR after 9464: #9464
Description
We have a large code base(over 96k files) and it's painful to deploy the service because it takes a lot of time. I've spent a lot of time trying to fix this and finally, I did it, now it takes less than 50% time to deploy and it transfers 3x less data.
I also added progress output so it'll be convenient to see what's going on.
User facing changes
.
New kaniko config option
BuildContextCompressionLevel.New default output
Start building with kaniko for artifact.New progress
Sending build context to Kaniko pod {amount}before optimization:

3 minutes and 40 seconds to create a tar file and 613M transfer
after optimization:

1 minute and 24 seconds to create a tar file and 167M transfer