yaml文件执行后常见错误解决

  1. yaml文件中个别数值有大写,报错信息如下 :
The Deployment "my-nginx" is invalid: spec.template.spec.volumes[0].name: Invalid value: "myEmptyDir": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name',  or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?')

看报错提示,已经说的很清楚了,spec.template.spec.volumes[0].name: Invalid value: "myEmptyDir" 中有大写的,不符合要求(要求是:a-z0-9?)

posted @ 2021-04-25 17:42  哈喽哈喽111111  阅读(2915)  评论(0编辑  收藏  举报