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缩进,要用空格缩进。

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐