Skip to content

Instantly share code, notes, and snippets.

@lucj
Created January 16, 2026 13:59
Show Gist options
  • Select an option

  • Save lucj/6e158e0924dfc97fffcce74767cabbb2 to your computer and use it in GitHub Desktop.

Select an option

Save lucj/6e158e0924dfc97fffcce74767cabbb2 to your computer and use it in GitHub Desktop.
karpenter.yaml
apiVersion: karpenter.exoscale.com/v1
kind: ExoscaleNodeClass
metadata:
name: standard
spec:
imageTemplateSelector:
version: "1.34.3"
securityGroups:
- "bb3515e0-a878-403b-a0de-5ae19b2620fd"
---
apiVersion: karpenter.sh/v1
kind: NodePool
metadata:
name: standard
spec:
template:
metadata:
labels:
nodepool: standard
spec:
nodeClassRef:
group: karpenter.exoscale.com
kind: ExoscaleNodeClass
name: standard
startupTaints:
- key: karpenter.sh/unregistered
effect: NoExecute
requirements:
- key: "node.kubernetes.io/instance-type"
operator: In
values:
- "standard.small"
- "standard.medium"
- "standard.large"
expireAfter: 30m
disruption:
consolidationPolicy: WhenEmptyOrUnderutilized
consolidateAfter: 30m
budgets:
- nodes: "10%" # Disrupt at most 10% of nodes at once
weight: 50
limits:
cpu: 100
memory: 80Gi
@PhilippeChepy
Copy link

apiVersion: karpenter.sh/v1
kind: NodePool
metadata:
  name: standard
spec:
  template:
    metadata:
      labels:
        nodepool: standard
    spec:
      labels:
        test: test
      nodeClassRef:
        group: karpenter.exoscale.com
        kind: ExoscaleNodeClass
        name: standard
      requirements:
        - key: "node.kubernetes.io/instance-type"
          operator: In
          values:
            - "standard.small"
            - "standard.medium"
            - "standard.large"
      expireAfter: 30m
  disruption:
    consolidationPolicy: WhenEmptyOrUnderutilized
    consolidateAfter: 30m
    budgets:
    - nodes: "10%"  # Disrupt at most 10% of nodes at once
  weight: 50
  limits:
    cpu: 100
    memory: 80Gi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment