大网数据广告活动
服务器运维问答

helm install a chart and give parameters to the depencie chart

· 52CE 我爱测

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 f…

问题原文

原帖链接 · 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

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-11-14)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。