[英]Spinnaker pipeline failing when deployment strategy is Recreate
When the deployment strategy is changed from "Rolling update" to "Recreate", I am facing the below error 当部署策略从“滚动更新”更改为“重新创建”时,我面临以下错误
Failure executing: PATCH at: https://3x.xxx.2x1.xxx/apis/extensions/v1beta1/namespaces/default/deployments/xxxxxx. Message: Deployment.apps "xxxxxx" is invalid: spec.strategy.rollingUpdate: Forbidden: may not be specified when strategy type is 'Recreate'. Received status: Status(apiVersion=v1, code=422, details=StatusDetails(causes=[StatusCause(field=spec.strategy.rollingUpdate, message=Forbidden: may not be specified when strategy type is 'Recreate', reason=FieldValueForbidden, additionalProperties={})], group=apps, kind=Deployment, name=xxxxxx, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Deployment.apps "xxxxxx" is invalid: spec.strategy.rollingUpdate: Forbidden: may not be specified when strategy type is 'Recreate', metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, status=Failure, additionalProperties={}).
Any help on this? 有什么帮助吗? I am using Spinnaker 1.6.0
我正在使用Spinnaker 1.6.0
There are many tickets on GitHub related to that problem: Kubernetes , Cert-manager , Spinnaker . GitHub上有很多与此问题相关的票证: Kubernetes , Cert-manager , Spinnaker 。 And in each one you can find the same answer - it is not possible to switch the update strategy of already created resources.
并且在每个答案中您都可以找到相同的答案-无法切换已经创建的资源的更新策略。
So, the only way is to create a new deployment with a new strategy due to the implementation of the updating process in Kubernetes. 因此,由于Kubernetes中实施了更新过程,因此唯一的方法是使用新策略创建新部署。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.