improbable-eng / etcd-cluster-operator

A controller to deploy and manage etcd clusters inside of Kubernetes
MIT License
128 stars 35 forks source link

Reduce the size of Go binaries by stripping and compressing #167

Closed wallrj closed 4 years ago

wallrj commented 4 years ago

See: https://blog.filippo.io/shrink-your-go-binaries-with-this-one-weird-trick/

It does slow down the build by a few seconds, but it reduces the sizes quite significantly which helps when doing regular docker-push to GCR.

Not sure it's worth it, but it's been an interesting experiment.