我的pipeline是在aws上构建一个后端服务,然后用aws的nlb来进行负载均衡。
通过kubernetesDeploy来部署的时候,会有如下报错。但是通过执行kubectl apply是可以的。
求教是为啥呢?
“status”: “Failure”,
“message”: "Service \“frontend-child-aws\” is invalid: spec.healthCheckNodePort: Invalid value: 0: cannot change healthCheckNodePort on loadBalancer service with externalTraffic=Local during update",
“reason”: “Invalid”,
“details”: {
“name”: “frontend-child-aws”,
“kind”: “Service”,
“causes”: [
{
“reason”: “FieldValueInvalid”,
“message”: “Invalid value: 0: cannot change healthCheckNodePort on loadBalancer service with externalTraffic=Local during update”,
“field”: “spec.healthCheckNodePort”
}
]
},
“code”: 422
}
Kubernetes deployment ended with HasError