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

helm --tls option is not supported #577

Closed
teruz opened this issue Apr 5, 2018 · 17 comments
Closed

helm --tls option is not supported #577

teruz opened this issue Apr 5, 2018 · 17 comments
Labels
area/helm kind/bug Issue is a bug lifecycle/rotten priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@teruz
Copy link

teruz commented Apr 5, 2018

Hi, I've found that when jx install into existing Kubernetes cluster, though some Kubernetes implementation such as IBM Cloud Private forces helm install with --tls option, jx install cannot pass --tls option to helm install command.

$ jx install --provider=kubernetes
...
...Successfully got an update from the "stable" chart repository
...Successfully got an update from the "jenkins-x" chart repository
Update Complete. ? Happy Helming!?
helm install jenkins-x/jenkins-x-platform --name jenkins-x -f ./myvalues.yaml -f ./secrets.yaml --version 0.0.507 --values=/home/teru/.jx/gitSecrets.yaml --values=/home/teru/.jx/adminSecrets.yaml --values=/home/teru/.jx/extraValues.yaml --namespace=jx --timeout=6000
Error: transport is closing

I'd like to set --tls option with helm command, but there is no resort to tell jx command to set any helm options.

@teruz
Copy link
Author

teruz commented Apr 5, 2018

Some Kubernetes forces --tls option.
ex)

$ helm version
Client: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}
Error: cannot connect to Tiller

$ helm version --tls
Client: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.7.2+icp", GitCommit:"d41a5c2da480efc555ddca57d3972bcad3351801", GitTreeState:"dirty"}

@jstrachan
Copy link
Member

@teruz ah thanks for the heads up! Lets try add that flag ASAP.

BTW will you be able to upgrade tiller to 2.8.2? Have had issues with client + server differences in the past. (Can't wait for the CRD based helm 3! :)

jstrachan added a commit to jstrachan/jx that referenced this issue Apr 5, 2018
jenkins-x#577

more work is require to update the makefiles in cloud-environemnts to allow TLS
@teruz
Copy link
Author

teruz commented Apr 5, 2018

@jstrachan thank you for your quick response. I've looked your commit.
it seems that --helm-tls option is actually added to jx install command, but maybe there is no logic appending --tls flag to "helm install", while added in "helm version" code. we also need --tls with "helm install".

@jstrachan
Copy link
Member

@teruz yeah - I was hoping it was a super quick fix; but we're gonna have to tinker with our Makefile to allow a tls option to be passed in. At least the first commit can handle jx version --tls ;)

@jstrachan
Copy link
Member

@teruz its a huge shame you can't just configure helm to always use TLS - via an env var or something

@teruz
Copy link
Author

teruz commented Apr 5, 2018

@jstrachan yeah, I've also be looking for some workaround with env or config file.. but i cannot find it out.

@jstrachan
Copy link
Member

@teruz I spotted TILLER_TLS_ENABLE environment variable in the source, I wonder if that helps enable TLS on the helm CLI?

@teruz
Copy link
Author

teruz commented Apr 6, 2018

@jstrachan thank you for your suggestion. I've checked helm source and unfortunately I've found TILLER_TLS_ENABLE env var is defined but not used in helm source...

defined but not used?:

image

@jstrachan
Copy link
Member

I've raised this to see if anyone in the helm community has any better ideas helm/helm#3841

@teruz
Copy link
Author

teruz commented Apr 7, 2018

@jstrachan thanks a lot. it seems some pull requests are raised and not merged on helm repo.
I'll wait patiently it to be merged :-)

maniankara pushed a commit to maniankara/jx that referenced this issue Apr 10, 2018
jenkins-x#577

more work is require to update the makefiles in cloud-environemnts to allow TLS
@khell
Copy link

khell commented Jan 2, 2019

This is still an issue. Running jx install --helm-tls I thought would work, but it fails on installing Jenkins X chart because it does not pass --tls flag to helm upgrade. Fortunately TILLER_TLS_ENABLE environment variable does work... as does --no-tiller.

@jstrachan
Copy link
Member

here is a workaround for now (just avoid tiller completely which is way more secure and avoids side-stepping k8s RBAC completely): https://jenkins-x.io/news/helm-without-tiller/

@jstrachan
Copy link
Member

I'd actually say avoiding tiller completely is a much better solution than enabling TLS on it https://jenkins-x.io/news/helm-without-tiller/ - as tiller basically disables fine grained RBAC - anyone who can access the tiller endpoint has effectively cluster-admin

@ccojocar ccojocar added area/helm kind/bug Issue is a bug priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Jan 14, 2019
@jenkins-x-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale

@jenkins-x-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle rotten

@jenkins-x-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://jenkins-x.io/community.
/close

@jenkins-x-bot
Copy link
Contributor

@jenkins-x-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://jenkins-x.io/community.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm kind/bug Issue is a bug lifecycle/rotten priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

5 participants