Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
遇到此错误请提供解决方案并请参阅随附的屏幕截图[错误] [1]
这意味着 kubernetes 期望将 yaml 中的属性值设置为映射对象。您的 yaml 当前将值设置为字符串。
对于标签属性,地图对象将如下所示。
"metadata": { "labels": { "key1" : "value1", "key2" : "value2" } }
请在此处查看预期的属性类型:https://cloud.google.com/run/docs/reference/rpc/k8s.io.apimachinery.pkg.apis.meta.v1#k8s.io.apimachinery.pkg。 apis.meta.v1.ObjectMeta