欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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对齐

相关标签: K8S遇坑排错