Rolling Restart? #868
Replies: 3 comments
-
This package is mostly just a C# library for interacting with the Kubernetes API. So anything you can do in the API you can do with this library. I'm not sure what you mean by "rolling restart" but if you just want to terminate a bunch of Pods so that the ReplicaSet controller will restart them, then yes, you can do that, effectively by calling (pseudo-code)
|
Beta Was this translation helpful? Give feedback.
-
hi, thank you for your answer! |
Beta Was this translation helpful? Give feedback.
-
Oh, in that case all you need to do is update the image in the There's a patch example here: https://github.com/kubernetes-client/csharp/tree/master/examples/patch It shows how to patch a V1Pod, but you could adapt it to patch a V1Deployment. If you change the image for the Deployment from See the docs here: for more details on how deployments work. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am pretty new to c# and kb8s and I was wondering if I could perform a rolling restart using this package.
I wanted to try it running locally but I had some issues running the examples.
Let me add that I cannot modify any metadata and fluxCD will prevent changes to the deployment.
Thank you for your help!
Jorge
Beta Was this translation helpful? Give feedback.
All reactions