问题原文
原帖链接 · c4f4t0r · CC BY-SA 4.0
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.
已采纳解答
原帖链接 · Vit · CC BY-SA 4.0
Review this official article. It provide good example:
helm install stable/mcrouter --name=mycache --set memcached.replicaCount=3
Other examples:
helm install stable/mcrouter --name=mycache --set memcached.replicaCount=3 --set memcached.resources.requests.memory=512Mi
helm install stable/mcrouter --name=mycache --set memcached.replicaCount=15 --set memcached.resources.requests.memory=10Gi --set memcached.resources.requests.cpu=2 --set memcached.memcached.maxItemMemory=8432
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
