K8S报错
程序员文章站
2024-03-13 22:26:34
...
...
...
imagePullSecrets:
- name: docker-images
nodeSelector:
- node: go
restartPolicy: Always
volumes:
- configMap:
name: queen-team-golang-config
....
....
error: error validating “merchant_cloud_grpc_role_server.yml”: error
validating data:
ValidationError(Deployment.spec.template.spec.nodeSelector): invalid
type for io.k8s.api.core.v1.PodSpec.nodeSelector: got “array”,
expected “map”; if you choose to ignore these errors, turn validation
off with --validate=false
解决:将 " - node: go" 的 " -" 删除,并缩进2个空格与厦门的name对齐
下一篇: MYSQL常用命令