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 version upgrade & deprecated Provisioner support #55

Open
wants to merge 2 commits into
base: release-3.0.1
Choose a base branch
from

Conversation

jshre898
Copy link

@jshre898 jshre898 commented Sep 5, 2024

This Request if related to Karpenter version upgrade and removing of provisioner support.

  1. karpenter is upgraded to v1.0.0 from v0.32.10.
  2. New version don't support CRD for provisioner and awsnodetemplate.
  3. We have used the below yaml file to launch the node, using nodepool and nodeclass.

apiVersion: karpenter.sh/v1beta1
kind: NodePool
metadata:
name: pool-1 # Change name for every Different labels
spec:
template:
metadata:
labels:
Addons-Services: "true" # Enter your Labels here
managedBy: karpenter
nodepool: pool-1 # Change name as NodePool name
eks.amazonaws.com/nodegroup: "Mgt-ng"
spec:
requirements:
- key: karpenter.sh/capacity-type
operator: In
values: ["spot"]
- key: karpenter.k8s.aws/instance-family
operator: In
values: ["t3"]
- key: node.kubernetes.io/instance-type
operator: In
values: ["t3.large"]
- key: karpenter.k8s.aws/instance-size
operator: NotIn
values: ["nono","micro","small"]
- key: kubernetes.io/os
operator: In
values: ["linux"]
- key: kubernetes.io/arch
operator: In
values: ["amd64"]
nodeClassRef:
name: class-1 # Enter Node class name

apiVersion: karpenter.k8s.aws/v1beta1
kind: EC2NodeClass
metadata:
name: class-1
spec:
amiFamily: AL2
role: stage-sh-node-role # Enter Worker IAM role
blockDeviceMappings:
- deviceName: /dev/xvda
ebs:
volumeSize: 20Gi
volumeType: gp3
encrypted: true
kmsKeyID: f71d751c-e9d2-4680-a596-3c21a5fb56a1 # Enter your KMS Key ID from EKS cluster console
deleteOnTermination: true
subnetSelectorTerms:
- id: subnet-0e67e8568d6ca1d0f # replace with your subnet id
securityGroupSelectorTerms:
- id: sg-031bc90f79e3a6e61 # replace with your security group id
tags:
managed-by: karpenter
Name: Karpenter-pool-1-stage-sh #Follow naming convention Karpenenter-nodepoolname-clustername

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

Successfully merging this pull request may close these issues.

1 participant