-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Using DeploymentV1.Update() #50
Comments
Hi. It's unfortunate, but the K8s API makes it painful to do updates that aren't JSON-PATCH-based (which is why the update API looks like it does). I don't think we have a specific example, but I'll see if I can write one up. |
That would be great @tintoy. Below is some pseudo code of where I am headed currently. I have no idea what to do in the Action delegate...
|
Ah, I think I see the source of the confusion :) The idea is that you call await depClient.Update("my-deployment-name", patch =>
{
patch.Replace(deployment => deployment.Spec.Replicas, 2);
}); |
Perfect, exactly what I needed. Thanks! |
Hi - I'm going to close this issue, but feel free to reopen it if you need to :) |
Are there any sample snippets on how to update a deployment? Specifically I'm struggling to figure out how to start a pod scale-out by increasing the Replicas count. The syntax of the api is tripping me up quite thoroughly...
The text was updated successfully, but these errors were encountered: