Open travisghansen opened 2 years ago
yes, you can propose a new image with better wget
than busybox
and submit a PR.
There is no particular reason to use busybox
. It is just every small image.
The busybox
does not have curl so wget is using.
I've ran into the same issue, and what I did was create a small image based on Alpine, and (apk) add wget and curl:
FROM alpine
RUN apk add --update --no-cache curl ca-certificates wget && \
rm -rf linux-amd64 && \
rm -f /var/cache/apk/*
Then refer to this image in the values.yaml:
init:
image:
repository: "myrepo/alpine-extended:latest"
env:
http_proxy: http://webproxy.my.corp:8080
https_proxy: http://webproxy.my.corp:8080
Describe the bug
When in an environment that requires an http/s proxy
wget
from the init container fails to downloadkubectl
binary.https://gitlab.alpinelinux.org/alpine/aports/-/issues/10446
I've temporarily hacked another image which includes a 'real' version of
wget
but it's less than ideal for several reasons.Any chance we can switch the default to another image that has a real version of
wget
already installed? Or usecurl
?