Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to reduce K3s shipped binary size #2904

Closed
brandond opened this issue Feb 6, 2021 · 1 comment
Closed

Need to reduce K3s shipped binary size #2904

brandond opened this issue Feb 6, 2021 · 1 comment
Assignees
Milestone

Comments

@brandond
Copy link
Member

brandond commented Feb 6, 2021

Is your feature request related to a problem? Please describe.
We're creeping up on 60MB K3s binaries again, and we're going to be adding more code soon for S3 backups/restore and etcdctl.

Describe the solution you'd like
Should take steps to reduce image size. If we can't eliminate anything we should try to compress things more efficiently.

Describe alternatives you've considered
Let the binaries keep growing

Additional context
From a recent PR build: k3s binary dist/artifacts/k3s size 58429440 is less than max acceptable size of 61000000 bytes

@ShylajaDevadiga
Copy link
Contributor

Validated using commit k3s version v1.20.2+k3s-5749f66a

Before compression 55M

$ k3s -v
k3s version v1.20.2+k3s1 (1d4adb03)
go version go1.15.5

$ ls -lh /usr/local/bin/k3s
-rwxr-xr-x 1 root root 55M Feb 17 00:32 /usr/local/bin/k3s

After compression 44M

$ k3s -v
k3s version v1.20.2+k3s-5749f66a (5749f66a)
go version go1.15.8

$ ls -lh /usr/local/bin/k3s
-rwxr-xr-x 1 root root 44M Feb 16 23:54 /usr/local/bin/k3s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants