Unable to set Kubernetes Stateful Set CPU Request

We are running cockroach DB on Kubernetes via a stateful set. We were running into some performance issues so we began to review https://www.cockroachlabs.com/docs/stable/kubernetes-performance.html

Upon working through the doc we discovered that each pod was only requesting 100m of CPU.
Following the instructions, I attempted to increase the CPU request. While the yaml saves properly it does not take. IE, when the yaml is reopened the cpu request, has not saved.

I have attempted to add

            cpu: "3500m"

via the cmd line and GKE’s website.

We are using the free tier of Cockroackdb.

Any feedback would be very helpful!

Thank you!

Hey @varick

The changes made in the YAML file do not take effect unless either a kubectl apply is run on the YAML file where the configuration is made, or if the StatefulSet is restarted. Have you tried either?

Let me know if there is any other questions.


We have restarted the stateful set with no effect. Is there a one line terminal cmd we can run to update and apply the yaml?

We have updated deployments previously without issue.

Hello @varick

The YAML can be edited in any text editor, however a kubectl apply -f yourfile.yaml can be run on the k8s StatefulSet to apply a YAML file to your cluster. Let me know if there are any other questions.