使用helm命令安装包时报错
helm install chartName --dry-run -f "values.yaml" --set noProxy="127.0.0.1,localhost" myChart
Error: failed parsing --set data: key "localhost" has no value
helm在设置参数时, 符号,需要利用\进行转义,即
helm install chartName --set noProxy="127.0.0.1\,localhost" myChart
参见文档https://helm.sh/docs/intro/using_helm/#the-format-and-limitations-of-set
Sometimes you need to use special characters in your
--set
lines. You can use a backslash to escape the characters;--set name=value1\,value2
will become:name: "value1,value2"