PatchNamespacedDeploymentScaleAsync returns "Forbidden" error #1250
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the C# client to scale down a deployment using the following method:
await _client.AppsV1.PatchNamespacedDeploymentScaleAsync(scalePatch, name, @namespace);
I have associated the deployment of this C# code in the cluster with a custom service account with the following permissions, but I am still receiving the Forbidden error.
If I use this different method to scale the deployment, then it works fine with the same account permissions:
await _client.AppsV1.PatchNamespacedDeploymentAsync
Can you please help me identify the permissions required to make the
PatchNamespacedDeploymentScaleAsync
method work?Also, between the two options, which one is a recommended option to scale the deployment size?
Beta Was this translation helpful? Give feedback.
All reactions