Skip to content

build helm binary in tiller image - #1929

Merged
bacongobbler merged 1 commit into
helm:masterfrom
bacongobbler:helm-image
May 29, 2018
Merged

bacongobbler merged 1 commit into
helm:masterfrom
bacongobbler:helm-image

Conversation

@bacongobbler

Copy link
Copy Markdown
Member

This enhancement slows down make docker-binary since the helm client needs to be built, and the tiller image is slightly larger now that the helm client is present in the image, but this gives users a Docker image with both the helm and tiller binaries available in the image.

I'm not asking for this to be accepted, just proposing a solution to the problem.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 8, 2017
@technosophos

Copy link
Copy Markdown
Member

See the comment on #1930. Basically, we need to fix the CI/CD system, then we can come back and add this build. I'm asking to hold off until after the 2.2.0 release so we don't disrupt the release in the crucial closing days.

@technosophos technosophos added this to the 2.3.0 milestone Feb 10, 2017
@technosophos technosophos mentioned this pull request Feb 15, 2017
8 tasks done
@technosophos

Copy link
Copy Markdown
Member

Closes #1320

@mattymo

mattymo commented Mar 1, 2017

Copy link
Copy Markdown

Can socat be included since it's a hard requirement for helm client?

@nebril

nebril commented Mar 2, 2017

Copy link
Copy Markdown
Contributor

@bacongobbler check out if this works for you, my commit adds socat to helm docker image: https://github.com/bacongobbler/helm/pull/1

@bacongobbler

Copy link
Copy Markdown
Member Author

If socat is a hard requirement then I'd argue that this should not be included in the tiller image. It's probably best to maintain a separate image outside of tiller so that the two images can independently package their own dependencies.

Do you agree, @technosophos, or do you think that this is still the way we want to move forward and we should add socat to the list of dependencies in the image? One could argue that the tiller image could be just a scratch image instead of alpine; introducing socat would make that not possible.

@devth

devth commented Apr 25, 2017

Copy link
Copy Markdown
Contributor

Is this still blocked on fixing CI/CD?

@bacongobbler

Copy link
Copy Markdown
Member Author

Yes.

@Miouge1

Miouge1 commented Sep 20, 2017

Copy link
Copy Markdown
Contributor

A helm client Docker image would also be useful? Maybe an alternative to baking it into the tiller image?

@bacongobbler

Copy link
Copy Markdown
Member Author

@lachie83 maintains one over at https://hub.docker.com/r/lachlanevenson/k8s-helm/ based on alpine linux. That one has been working fine for us at this time.

@thomastaylor312

Copy link
Copy Markdown
Contributor

@bacongobbler Should we pop this off onto the Upcoming - Minor milestone until we have a path forward?

@bacongobbler

Copy link
Copy Markdown
Member Author

Agreed, let’s bump this similar to the ppc164 PR.

@bacongobbler

Copy link
Copy Markdown
Member Author

ok, so it appears that CI has gotten much more stable now that we've migrated to CircleCI 2.0 so I think it's time we started bringing this back onto the discussion table. There has been lots of demand from users for this feature, and so far @lachie83's helm image has been how others are using helm inside kubernetes, but it'd be awesome to roll the client into the image so others get new releases of helm when it's actually released rather than bugging Lachie every time. :)

Do we want to push this through, or should we close it out and say this is up to the community to solve?

@thomastaylor312

Copy link
Copy Markdown
Contributor

@bacongobbler Sorry for the late response, but I personally think we should push this through because plenty of people seem to ask for this.

@arbourd

arbourd commented Mar 8, 2018 •

Copy link
Copy Markdown

I'd like to see an "official" image with Helm (although @lachie83's works fine), only so I don't have to explain why I'm not using an official image.

My company is uneasy with things not coming directly from kubernetes so we have our own.

@lachie83

lachie83 commented Mar 8, 2018

Copy link
Copy Markdown
Contributor

I'd be happy see what I can do to get this upstream.

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/small labels Apr 25, 2018
@bacongobbler

Copy link
Copy Markdown
Member Author

rebased.

@thomastaylor312 thomastaylor312 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excited to get this in

@bacongobbler
bacongobbler merged commit 1c25929 into helm:master May 29, 2018
@bacongobbler
bacongobbler deleted the helm-image branch May 29, 2018 17:12
@rhibiscusc

Copy link
Copy Markdown

is this image not in docker hub? Thanks

@bacongobbler

Copy link
Copy Markdown
Member Author

It's not in dockerhub, but it's available on GCR.

><> docker run --entrypoint=/bin/helm gcr.io/kubernetes-helm/tiller:canary version --client
Client: &version.Version{SemVer:"canary+unreleased", GitCommit:"01da56f956329bbfcef14ac164f9ab49081ad108", GitTreeState:"clean"}

@technosophos

Copy link
Copy Markdown
Member

I think we should probably start moving all our stuff to Docker Hub. The findability alone is worth it. And with the move out of Kubernetes, we really need to not be using their resources.

@rhibiscusc

Copy link
Copy Markdown

Thanks @bacongobbler for the info
Thanks @technosophos, it would be great if it can be upload to docker hub.

@danbeaulieu

Copy link
Copy Markdown

@bacongobbler I just tried that command and it errored out:

$ docker run --entrypoint=/bin/helm gcr.io/kubernetes-helm/tiller:canary version --client
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/bin/helm\": stat /bin/helm: no such file or directory": unknown.
ERRO[0004] error waiting for container: context canceled

Did the helm binary get moved back out of the image?

@bacongobbler

Copy link
Copy Markdown
Member Author

It just got moved to /helm instead of /bin/helm. Try that as the entrypoint :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. feature size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.