karpenter version upgrade & deprecated Provisioner support #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Request if related to Karpenter version upgrade and removing of provisioner support.
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