Closed oshri22004 closed 1 month ago
By "weird stuff" are you only referring to the Schedule and Next Run values shown there? Or was there something else?
This may or may not be a Helm issue (ex., invalid values structure) so transferred to features-bugs. I confirmed the same behavior on 2.3.0-rc.5. An example values file looks like the below.
global:
grafana:
enabled: false
proxy: false
clusterController:
enabled: true
actionConfigs:
containerRightsize:
workloads:
- clusterID: cluster-one
controllerKind: deployment
# namespace: my-namespace
# controllerName: my-controller
# filterConfig:
# - filter: |
# namespace:"kyverno"+controllerKind:"deployment"
schedule:
start: "2024-06-17T15:04:05Z"
frequencyMinutes: 120
recommendationQueryWindow: "48h"
lastModified: ''
targetUtilizationCPU: 0.8
targetUtilizationMemory: 0.8
By "weird stuff" are you only referring to the Schedule and Next Run values shown there? Or was there something else?
Yes, I'm referring to the Schedule and Next Run values, I didn't check if it works.
@chipzoller In addition to the UI, it doesn't seem to work.
Is there a way I can inspect the code for debugging and contributing?
Thanks for the report. I've confirmed the same thing and have logged it internally.
Hi @chipzoller , is there any update on the fix for this bug?
Thanks!
Yes, this is being fixed in 2.3.3 which should be available in a few days.
Hi @chipzoller, Thank you for the fixed version! I get the next error
ERR Kubescaler setup failed error="creating a Kubescaler: failed to update schedules upon startup: getting deployment '' in namespace '': resource name may not be empty"
Im using this as the values:
This may or may not be a Helm issue (ex., invalid values structure) so transferred to features-bugs. I confirmed the same behavior on 2.3.0-rc.5. An example values file looks like the below.
global: grafana: enabled: false proxy: false clusterController: enabled: true actionConfigs: containerRightsize: workloads: - clusterID: cluster-one controllerKind: deployment # namespace: my-namespace # controllerName: my-controller # filterConfig: # - filter: | # namespace:"kyverno"+controllerKind:"deployment" schedule: start: "2024-06-17T15:04:05Z" frequencyMinutes: 120 recommendationQueryWindow: "48h" lastModified: '' targetUtilizationCPU: 0.8 targetUtilizationMemory: 0.8
I want the action to change the request and limit of every deployment in the cluster.
Thanks for the feedback. We're checking internally.
Hi @chipzoller, Is there any update?
Yes, we've found the issue and it should be fixed in the upcoming 2.3.5.
Hi @chipzoller, Thank you for the newer version and for your amazing tool! I want to know how to write in the values.yaml for Request Right Sizing action creation that will change every deployment in the cluster. Should I change something in the values file below?
This may or may not be a Helm issue (ex., invalid values structure) so transferred to features-bugs. I confirmed the same behavior on 2.3.0-rc.5. An example values file looks like the below.
global: grafana: enabled: false proxy: false clusterController: enabled: true actionConfigs: containerRightsize: workloads: - clusterID: cluster-one controllerKind: deployment # namespace: my-namespace # controllerName: my-controller # filterConfig: # - filter: | # namespace:"kyverno"+controllerKind:"deployment" schedule: start: "2024-06-17T15:04:05Z" frequencyMinutes: 120 recommendationQueryWindow: "48h" lastModified: '' targetUtilizationCPU: 0.8 targetUtilizationMemory: 0.8
This now works in Kubecost v2.3.5:
clusterController:
enabled: true
actionConfigs:
containerRightsize:
filterConfig:
- filter: |
controllerKind:"deployment"
schedule:
start: "2024-09-01T00:00:00Z"
frequencyMinutes: 120
recommendationQueryWindow: "48h"
targetUtilizationCPU: 0.8
targetUtilizationMemory: 0.8
Closing since this is now resolved.
Kubecost Helm Chart Version
2.2.5
Kubernetes Version
1.29
Kubernetes Platform
EKS
Description
I tried to create an action of "Automated Request Sizing" via values.yaml and I'm getting weird stuff...
Steps to reproduce
1. temp-values.yaml:
Expected behavior
having an action like it should be
Impact
No response
Screenshots
Logs
No response
Slack discussion
No response
Troubleshooting