Open shooit opened 1 year ago
Timescaledb-single helm chart doesn't do any manipulation to resources
value and passes it directly to the StatefulSet (as seen here). This helm chart is also not setting any default values which could conflict or potentially cause issue described here.
Either way I run helm template
with the suggested values.yaml
. Below is the result of this test:
As seen in the above, resources are set properly. I also tried to reproduce it with setting just limits as seen below. This also resulted in correct behavior of setting only limits:
Irrelevant to the issue, but may by generally relevant to you:
If resources.requests IS NOT set and resources.limits IS set, the pod has its requests set to the value of limits
Keep in mind that not setting resources.requests while setting resources.limits will be treated by vanilla kubernetes as if requests == limits as per documentation - https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits
we would expect that the value of requests would be the default from the cluster.
Since kubernetes by default doesn't set any resource requests nor limits, this statement gives me a hint that you may be using some sort of admission controller to set resource limits/requests (most likely part of GKE autopilot). Judging by the correct output of helm template
, it looks to me that this controller (if used) might be misbehaving.
What happened? Resource requests and limits are always the same value.
Did you expect to see something different? (3) is the most troublesome for us, as we would expect the pod to have both requests and limits determined by the values.
(2) we would expect that the value of requests would be the default from the cluster.
How to reproduce it (as minimally and precisely as possible): deploy (1) (2) and (3) with the following settings
values.yaml
and inspect the resulting podsEnvironment
Which helm chart and what version are you using? timescaledb-single v27.4
Kubernetes version information:
kubectl version
Client Version: v1.26.0 Kustomize Version: v4.5.7 Server Version: v1.24.5-gke.600
GKE autopilot cluster
cdktf v14.3 helm-provider v4.0.0