0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Karpenter の Bottlerocket で kubelet に引数を渡す方法

Posted at

今回は、Karpenter を使って Bottlerocket ノードをプロビジョニングする際に、kubelet に --housekeeping-interval=1s の引数を渡す方法をご紹介します。

手順

  1. EC2NodeClass の YAML マニフェストuserData セクションを追加します。
  2. userData 内で、TOML 形式の [settings.kubernetes] セクションにカスタム引数を記述します。

以下はサンプル YAML です:

apiVersion: karpenter.k8s.aws/v1
kind: EC2NodeClass
metadata:
  name: my-bottlerocket
spec:
  amiFamily: Bottlerocket
+ userData: |
+   [settings.kubernetes]
+   housekeeping-interval = "1s"

この設定により、Karpenter が生成する最終的な Bottlerocket のユーザーデータに
--housekeeping-interval=1s がマージされ、kubelet の起動時にその引数が渡されます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?