添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
发财的杨桃  ·  数组 · Java面试题·  6 月前    · 
飘逸的小刀  ·  GitHub - ...·  7 月前    · 
打酱油的椰子  ·  ComposedExportedValue ...·  7 月前    · 

If you had an older version of Portworx manifests installed, and you try to apply the latest manifests, you might see the following error during kubectl apply .

Service "portworx-service" is invalid: [spec.ports[0].nodePort: Forbidden: may not be used when `type` is 'ClusterIP', spec.ports[1].nodePort: Forbidden: may not be used when `type` is 'ClusterIP', spec.ports[2].nodePort: Forbidden: may not be used when `type` is 'ClusterIP', spec.ports[3].nodePort: Forbidden: may not be used when `type` is 'ClusterIP']
Error from server (Invalid): error when applying patch:

To fix this:

  • Change the type of the portworx-service service to type ClusterIP. If the type was NodePort, you will also have to remove the nodePort entries from the spec.
  • kubectl edit service portworx-service -n kube-system

  • Change the type of the portworx-api service to type ClusterIP. If the type was NodePort, you will also have to remove the nodePort entries from the spec.
  • kubectl edit service portworx-api -n kube-system

  • Reapply your specs
  •