Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Karpenter controller error: invalid disruption budgets in nodepool default #7562

Open
prem-pdmi opened this issue Jan 2, 2025 · 0 comments

Comments

@prem-pdmi
Copy link

Error:

"error":"invalid disruption budgets in nodepool default, invariant
violated, invalid cron %!s(); invariant violated, invalid cron
%!s()"

Controller version: 1.0.5

Nodepool configuration:

apiVersion: karpenter.sh/v1
kind: NodePool
metadata:
  name: default
  annotations:
    meta.helm.sh/release-namespace: kube-system
spec:  
  template:
    metadata:
      labels:
        intent: apps
    spec:
      requirements:
      - key: karpenter.k8s.aws/instance-family
        operator: In
        values:
        - m5
      - key: kubernetes.io/os
        operator: In
        values:
        - linux
      - key: kubernetes.io/arch
        operator: In
        values:
        - amd64
      - key: karpenter.sh/capacity-type
        operator: In
        values:
        - on-demand
      nodeClassRef:
        name: default
        group: karpenter.k8s.aws
        kind: EC2NodeClass
      kubelet:
        containerRuntime: containerd
        systemReserved:
          cpu: 100m
          memory: 100Mi
  disruption:
    consolidationPolicy: WhenEmptyOrUnderutilized
    consolidateAfter: 1m
    budgets:
      - nodes: "0"
        schedule: "30 10 * * 1-7"
        duration: 22h
      - nodes: "10%"
        schedule: "30 8 * * 1-7"
        duration: 2h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant