0

We use fabric8-maven-plugin to manage the full lifecycle of all of our kubernetes services. We are having a problem upgrading statefulsets (similar to this post but we dont use the kubernetes-client). The version of the maven plugin is 4.3.1. We have no issues with daemonsets but I just cant find a way to update statefulsets. We get the same error as the afore mentioned post.

Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden.. 

I have tried to set the updateStrategy to rolling but that doesn't seem to do anything.

Thanks Paul

Paul B
  • 51
  • 4
  • Hi, Are you able to reproduce this with 4.4.0 also? – Rohan Kumar Mar 01 '20 at 15:35
  • Hi Rohan, I just had a go using 4.4.0 and the outcome is the same. – Paul B Mar 02 '20 at 14:57
  • ah, Could you please file an issue on our repo? I far as I remember there was some bug in kubernetes client which was causing this. https://github.com/fabric8io/kubernetes-client/issues/1880 – Rohan Kumar Mar 03 '20 at 09:21
  • we upgraded k8s-client in January, so I think it should solve this issue : https://github.com/fabric8io/fabric8-maven-plugin/pull/1774 – Rohan Kumar Mar 03 '20 at 09:23
  • Could you please file an issue with reproducible sample? We will fix this before next release. – Rohan Kumar Mar 03 '20 at 09:23
  • Thanks Rohan, I will raise an issue asap. – Paul B Mar 04 '20 at 08:44
  • Much appreciated, Thanks! Bdw, We are working towards rebranding FMP to https://github.com/eclipse/jkube . Would appreciate if you could try this out and share some feedback. – Rohan Kumar Mar 05 '20 at 09:07
  • Hi Rohan, I raised an issue in the fabric8-maven-plugin [repo](https://github.com/fabric8io/fabric8-maven-plugin/issues/1795) – Paul B Mar 05 '20 at 09:51

0 Answers0