Service“xxx“ invalid: [spec.ports[0].nodePort: Forbidden: may not be used when `type` is ‘ClusterIP‘

Issue

helm upgrade 时候报错

Service "xxx" 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']

查看对应的 service,发现不知什么时候变成 NodePort,导致更新失败。╭(°A°`)╮
尝试手动更改为 ClusterIP,还是不行,看来不支持改变

Solved

嘿嘿,那就删除拜拜了(ˉ︶ˉ) ,删除对应的 service,再 helm upgrade 一下就行了

你可能感兴趣的:(开发bug修复,云原生)