istio / old_issues_repo

Deprecated issue-tracking repo, please post new issues or feature requests to istio/istio instead.
37 stars 9 forks source link

Use Alpine as base image for the proxy #129

Open sakibulhasan-wsib opened 6 years ago

sakibulhasan-wsib commented 6 years ago

Is this a BUG or FEATURE REQUEST?: Feature

Did you review existing epics or issues to identify if this already being worked on? (please try to add the correct labels and epics): Yes

Bug: N

What Version of Istio and Kubernetes are you using, where did you get Istio from, Installation details

istioctl version: 0.2.12

kubectl version: Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T05:28:34Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.9+coreos.0", GitCommit:"2ded8a1912d014561208d882cfcc12dfa5374f22", GitTreeState:"clean", BuildDate:"2017-10-24T13:07:42Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

Feature Request: Y

Describe the feature: Istio is currently using Xenial (Ubuntu) as the base image of the proxy which is much larger than 100+ MB. It would be great to have the option to use Alpine (Ubuntu) as it is lightweight (5-6 MB). The Envoy Proxy already has the Alpine option so Istio should have it as well.

ldemailly commented 6 years ago

there are libc differences we have to be careful about, but if the master envoy is using alpine and working well, that sounds like a good idea (at least for the non debug version of the image)

(for the record for go programs we'll use FROM scratch which is the smallest, smaller than alpine)

sakibulhasan commented 6 years ago

Any idea in which version you are planning to release this feature?

ldemailly commented 6 years ago

PR is welcome if you have a pressing need for it :-)

costinm commented 6 years ago

I have an experimental build of istio for alpine+musl (using CMake), it seems to work but will take quite a while to get it officially supported, I'm using cmake to build ( bazel doesn't seem to support musl or alpine - or I couldn't get it to work ).

A bit older version, will update with 0.3 once the release is ready:

https://github.com/costinm/istio-build/releases

(this is just the binary - docker image also needs to be created )

On Wed, Nov 29, 2017 at 1:34 PM, Laurent Demailly notifications@github.com wrote:

PR is welcome if you have a pressing need for it :-)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/istio/issues/issues/129#issuecomment-348003700, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFI6iVHO3TnTwrIzBiSPOjJhMOiJuljks5s7c3vgaJpZM4Qrxod .