Closed giulio-chillipharm closed 3 weeks ago
@AjayTripathy @kwombach12 this looks potentially related to the issue you were just investigating...
yes it does - @giulio-chillipharm we are actively looking into this issue now.
Hello, in an effort to consolidate our bug and feature request tracking, we are deprecating using GitHub to track tickets. If this issue is still outstanding and you have not done so already, please raise a request at https://support.kubecost.com/.
Kubecost Version
2.2.5
Kubernetes Version
1.29
Kubernetes Platform
EKS
Description
Whenever I deploy a new cluster turndown schedule, it gets deployed for a few seconds, but then gets deleted soon after.
Steps to reproduce
kubectl create ns kubecost
kubectl create secret generic cluster-controller-service-key -n kubecost --from-file=service-key.json
helm install kubecost cost-analyzer \ --repo https://kubecost.github.io/cost-analyzer/ \ --namespace kubecost \ --set kubecostToken="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ -f cost-analyzer/values-eks-cost-monitoring.yaml
kubectl create ns turndown
kubectl create secret generic cluster-turndown-service-key -n turndown --from-file=service-key.json
kubectl apply -f https://github.com/kubecost/cluster-turndown/releases/latest/download/cluster-turndown-full.yaml
kubectl apply -f turndown-schedule.yaml
service-key.json
{ "aws_access_key_id": "XXXXXXXXXXXXXXXXXXXX", "aws_secret_access_key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX" }
turndown-schedule.yaml `apiVersion: kubecost.com/v1alpha1 kind: TurndownSchedule metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"kubecost.com/v1alpha1","kind":"TurndownSchedule","metadata":{"annotations":{},"finalizers":["finalizer.kubecost.com"],"name":"turndown-schedule"},"spec":{"end":"2024-05-21T12:00:00Z","repeat":"daily","start":"2024-05-21T10:00:00Z"}} creationTimestamp: "2024-05-20T17:45:33Z" finalizers:
Expected behavior
The turndown schedule once deployed should trigger the cluster turndown according to the start and end time.
Impact
We cannot turndown clusters during idle times, which prevents us from saving on cloud costs.
Screenshots
No response
Logs
Slack discussion
No response
Troubleshooting