yaml文件执行后常见错误解决
- 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?)