分类:
容器编排
Yaml文件编写的小毛病
kubenetes yaml
随在编写yaml文件中难免会出现一些磕磕碰碰的问题
建议大家去这个网站编写 yaml 文件 https://www.toolfk.com/tool-format-yaml 或 https://www.bejson.com/validators/yaml_editor/
当我们点击验证按钮出现
Error : A YAML file cannot contain tabs as indentation Line : 8 app: nginx1. 你就需要注意第八行格式是否有对齐
2. 在第八行的开头是否有按过 Tab键 ,建议大家尽量用 空格
欢迎加群讨论技术,1群:677373950(满了,可以加,但通过不了),2群:656732739
评价