I am trying to use the chart stable/mcrouter
for memcache sharding, everything works, but this chart uses a memcache chat as dependencie.
I would like to know if I can pass parameters to memcache chart, this is the dependencies file: requirements.yaml
dependencies:
- name: memcached
version: 1.2.1
repository: https://kubernetes-charts.storage.googleapis.com/
condition: mcrouter.memcached.enabled
mcrouter chart url: https://github.com/helm/charts/tree/master/stable/mcrouter
In few words, I can give parameters to mcrouter, but I cannot give parameters to memcache chart.
Review this official article. It provide good example:
Other examples:
I solved the problem in this way, I downloaded
stable/mcrouter
with:Now under
/tmp/mcrouter/charts/memcached/templates
you have the memcached templates and you can check the accepted parametersI found if you use
helm install stable/mcrouter --name=mycache --set memcached.replicaCount=3
works, becausememcached.replicationCount
is part of the mcrouter chart.If you want to pass parameters to the subchart, you need to use:
Or you can edit the
values.yaml
of the subchart under/tmp/mcrouter/charts/memcached/values.yaml
Now you can install the chart with the news parameters: