Is it possible to provision nodes with instance store on EKS with Karpenter?

0

Is it possible to provision nodes with instance store on EKS with Karpenter? If not is it recorded as a feature request or on a roadmap?

1回答
0
承認された回答

It's absolutely possible, as long as there is a Provisioner that does not restrict the instance types to those without instance storage.

There are a couple of ways to go about provisioning nodes with instance storage. One is to have Karpenter always launch nodes with instance storage, by specifying that instance types in the Provisioner, such as:

apiVersion: karpenter.sh/v1alpha5
kind: Provisioner
metadata:
  name: instance-store
spec:
  requirements:
  - key: karpenter.k8s.aws/instance-family
    operator: In
    values: ["c6gd", "c7gd"]

The other is to create a Provisioner that has no requirements (or at least does not exclude instance families with an instance store) and to specify the instance type or family in the Pod spec:

apiVersion: v1
kind: Pod
metadata:
  name: with-instance-store
spec:
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: karpenter.k8s.aws/instance-family
            operator: In
            values: ["c6gd", "c7gd"]
AWS
エキスパート
回答済み 6ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ