k8s deployment报错Invalid value:found a tab character that violates indentation
# deployments.apps "view-lib-task-server" was not valid:# * : Invalid value: "The edited file failed validation": [yaml: line 44: found a tab character that violates indentation, invalid character 'a'
·
deployment编辑报错Invalid value
# deployments.apps "xxxxxx" was not valid:
# * : Invalid value: "The edited file failed validation":
[yaml: line 44: found a tab character that violates indentation,
invalid character 'a' looking for beginning of value]
报错原因
found a tab character that violates indentation
意思是:tab符违反了缩进。
yaml编辑支持空格索引。
解决方案
不要用tab缩进,要用空格缩进。
更多推荐
已为社区贡献4条内容
所有评论(0)