helmsman icon indicating copy to clipboard operation
helmsman copied to clipboard

Change Tiller Url tiller-image

Open mhobotpplnet opened this issue 3 years ago • 12 comments

Got bit of dilemma with CD regards to installing charts with helmsman, basically it calls the helm2.16 init .1 which by default installs tiller 'installTiller=true'.

Issue is that tiller image thats getting it from is on old google cloud infrastructure. Is there a way to make it in template so it uses different location for same image ?

Say: --tiller-image=ghcr.io/helm/tiller:v2.16.1

currently runs:

2021/08/17 17:05:44 VERBOSE: helm init --force-upgrade --tiller-namespace mynamespace --history-max 5 --service-account tiller --override 'spec.template.spec.containers[0].resources.limits.memory'='2Gi' --override 'spec.template.spec.containers[0].resources.limits.cpu'='1' --override 'spec.template.spec.containers[0].resources.requests.memory'='768Mi' --override 'spec.template.spec.containers[0].resources.requests.cpu'='300m'

Settings:

namespaces:
  mynamespace:
    installTiller: true
    quotas:
      limits:
        cpu: '100'
        memory: 300Gi
      pods: '100'
      requests:
        cpu: '40'
        memory: 200Gi
    tillerMaxHistory: 5
    tillerResources:
      limits:
        cpu: 1
        memory: 2Gi
      requests:
        cpu: 300m
        memory: 768Mi

I can force out script to add --tiller-image=blablabla , but I want to really have it in template , almost done with going with helm3 so am going to be glad when this is over.

mhobotpplnet avatar Aug 17 '21 19:08 mhobotpplnet

It looks like you're using a very old version of helmsman any particular reason not to upgrade and use helm v3?

luisdavim avatar Aug 26 '21 08:08 luisdavim

I have the same requirement as @mhobotpplnet. Any pointers on how to achieve this would really help. Thanks

visheshruparelia avatar Aug 26 '21 12:08 visheshruparelia

It looks like you're using a very old version of helmsman any particular reason not to upgrade and use helm v3?

We have some apps that still are on helm2 v we on is 2.12.0, trying 2.17.0 soon. I mean it would be easy to do just -tiller-image but that also requires version to be same as what helm2 is on.

mhobotpplnet avatar Aug 26 '21 12:08 mhobotpplnet

I'll see if I can still make changes and release the old version.

luisdavim avatar Aug 26 '21 12:08 luisdavim

BTW, have you tried the tillerless approach? I think you should be able to pick the tiller version that way.

luisdavim avatar Aug 26 '21 12:08 luisdavim

I'll see if I can still make changes and release the old version.

Thank you, so the only diff really is that older versions changed the url. Its here now: ghcr.io/helm/tiller:v2.16.1 I'll see if tillerless would work, thing is we scripted whole CD pipeline. Push is for helm3 but so far with spot nodes going down tiller goes down with it, so when tiller tries to grab an image you get imagepullback with old version of helm2

mhobotpplnet avatar Aug 26 '21 12:08 mhobotpplnet

also if you install tiller separately you should be able to use it https://github.com/Praqma/helmsman/blob/1.x/docs/how_to/tiller/existing.md I think there's also a flag to skip tiller installation but it's been a long time since I used helm with tiller.

luisdavim avatar Aug 26 '21 12:08 luisdavim

check https://github.com/Praqma/helmsman/blob/1.x/docs/desired_state_specification.md

luisdavim avatar Aug 26 '21 12:08 luisdavim

I tried tillerless , btw I noticed that doc has 'tilerless' should be 'tillerless' ERROR: tillerless operation is specified and helm tiller plugin is not installed/configured correctly. Aborting!

I mean its not super bad, just annoying to edit deployment and point to right tiller.

mhobotpplnet avatar Aug 26 '21 13:08 mhobotpplnet

you need to install the tillerless plugin to use the tillerless mode...

luisdavim avatar Aug 26 '21 14:08 luisdavim

this one https://github.com/rimusz/helm-tiller

luisdavim avatar Aug 26 '21 14:08 luisdavim

This issue has been marked stale due to an inactivity.

github-actions[bot] avatar Aug 04 '22 05:08 github-actions[bot]