1
0

RKE2で任意のマニフェストをNodeデプロイ時に適用する際の注意事項

Last updated at Posted at 2022-05-31

前提

RKE2: v1.23.6+rke2r2

TL;DR

  • /var/lib/rancher/rke2/server/manifests 以下配置したものをファイルソート順にapplayしてくれる
  • manifests/以下にディレクトリを作成して配置するのはNG

詳細

RKE2でServer Nodeをデプロイする際に任意のマニフェストをapplayする方法。

/var/lib/rancher/rke2/server/manifests 以下にマニフェストを配置するとファイルソート順に適用します。

つまり、以下の様にファイルを配置した場合は、hoge01.yaml → hoge02.yaml の順で適用します

  • /var/lib/rancher/rke2/server/manifests/hoge01.yaml
  • /var/lib/rancher/rke2/server/manifests/hoge02.yaml

ただし、manifests/ 以下にディレクトリを作成して配置した場合は対象外なので注意。
つまり、以下のように何かの意味単位でディレクトリを作成して配置するのはNG

NG例

  • /var/lib/rancher/rke2/server/manifests/hoge1/hoge01.yaml
  • /var/lib/rancher/rke2/server/manifests/hoge2/hoge01.yaml

参考

Auto-Deploying Manifests - Advanced Options and Configuration | RKE2

Helmの場合は以下が参考になります。
Helm Integration | RKE2

1
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
1
0