gpt4 book ai didi

kubernetes-helm - Helm 升级失败,出现错误: expects "or n,,但发现t

转载 作者:行者123 更新时间:2023-12-03 14:08:25 24 4
gpt4 key购买 nike

我正在尝试向掌 Helm chart 中添加一个新容器,它通过了验证( Helm Lint ),但是在部署的最后阶段失败了:

Mon Dec 16 10:01:58 2019 INFO Running helm install/upgrade for xyz-stg
UPGRADE FAILED Error: "" is invalid: patch: Invalid value: "{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\"
(...)
ReadString: expects " or n, but found t, error found in #10 byte of ...|,"value":true},{"nam|..., bigger context ...|"value":"stg"}, (...)
Error: UPGRADE FAILED: "" is invalid: patch: Invalid value: "{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\": (...)
ReadString: expects " or n, but found t, error found in #10 byte of ...|,"value":true},{"nam|..., bigger context ...|"value":"stg"}, (...) Mon Dec 16 10:02:09 2019 ERROR Upgrade/Installation of xyz-stg failed



我不知道这个错误是什么意思,甚至如何调试它。听起来有些语法缩进错误,但我所做的只是:从其他工作的Pod复制粘贴的Pod配置并更改所有名称。

最佳答案

添加双引号并通过以下更改更新Deployment.yaml
在deployment.yaml文件中

        value: {{ .Values.environment.TEMP }}
value: {{ quote .Values.environment.TEMP }}
在Values.yaml文件中
环境:TEMP:“真”

关于kubernetes-helm - Helm 升级失败,出现错误: expects "or n,,但发现t,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59354115/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com