# This example provisioner will provision instances using an AMI that belongs to a custom AMIFamily # Keep in mind, that you're in charge of bootstrapping your worker nodes. apiVersion: karpenter.sh/v1alpha5 kind: Provisioner metadata: name: default spec: limits: resources: cpu: 20 providerRef: name: custom-family consolidation: enabled: true --- apiVersion: karpenter.k8s.aws/v1alpha1 kind: AWSNodeTemplate metadata: name: custom-family spec: amiFamily: Custom instanceProfile: myInstanceProfile subnetSelector: karpenter.sh/discovery: my-cluster securityGroupSelector: karpenter.sh/discovery: my-cluster amiSelector: aws-ids: ami-123,ami456 userData: | MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="BOUNDARY" --BOUNDARY Content-Type: text/x-shellscript; charset="us-ascii" #!/bin/bash echo "Running my custom set-up" /etc/eks/bootstrap.sh my-cluster --kubelet-extra-args='--node-labels=foo=bar' --BOUNDARY