Skip to content

Instantly share code, notes, and snippets.

@VishDev12
Created October 16, 2022 05:26
Show Gist options
  • Select an option

  • Save VishDev12/d6812b94d8f4c2c75880e7e2e9286215 to your computer and use it in GitHub Desktop.

Select an option

Save VishDev12/d6812b94d8f4c2c75880e7e2e9286215 to your computer and use it in GitHub Desktop.
An AWSNodeTemplate to configure the general-cpu provisioner.
apiVersion: karpenter.k8s.aws/v1alpha1
kind: AWSNodeTemplate
metadata:
name: general-cpu
spec:
subnetSelector:
karpenter.sh/discovery: cluster-name
securityGroupSelector:
karpenter.sh/discovery: cluster-name
# Tags attached to the launched EC2 instances.
tags:
Name: cluster-name-general-cpu
environment: staging
purpose: general-cpu
# Configure the attach EBS Volumes.
blockDeviceMappings:
- deviceName: /dev/xvda
ebs:
volumeSize: 50Gi
volumeType: gp3
deleteOnTermination: true
# Select the AMI backing the EC2 instance.
# For more, visit bit.ly/3s1pXCE.
amiSelector:
aws-ids: ami-1234567abcde890fg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment