LM コンテナ チャートのアップグレード
最終更新日: 06 年 2024 月 XNUMX 日重要: これは、LM Container Helm Chart 1.0.0 以降を使用する LM Container サービスに適用されます。
Requirements for Upgrading LM Container Charts
- すでに LM Container Chart がシステムにインストールされています。 詳細については、「」を参照してください。 CLI を使用した LM Container Chart のインストール.
- Kubernetes クラスターに対して必要な権限があることを確認してください。 詳細については、「」を参照してください。 Kubernetes モニタリングの考慮事項と必要な権限.
注: 古い構成を LM Container Charts に移行できます。 詳細については、次を参照してください。 LM Container Helm チャートを使用した既存の Kubernetes クラスターの移行.
Methods of LM Container Charts Upgrade
You can upgrade LM Container Charts as follows:
- Upgrading LM Container Charts using the Upgrade Wizard (recommended)
- Upgrading LM Containers Charts using Command-Line Interface (CLI)
Upgrading LM Container Charts using Upgrade Wizard
推奨事項: LogicMonitor recommends upgrading the LM Containers using the upgrade wizard.
- LogicMonitor で、次の場所に移動します。 Resource Tree> select Kubernetes Cluster group.
- 選択 (管理) > Upgrade.
Note: You need to run theaddCategory_LMContainerConfig
PropertySource, if you use LM Container Charts 6.1.0 version or lower. - に step of the wizard, select the required version from the LM Container Helm Chart Version dropdown menu.
- 選択 Next:Modules.
- に モジュール step of the wizard, upgrade the required modules from the 応募者と ページで見やすくするために変数を解析したりすることができます。
This step only shows the list of the modules and their current status (For example, which modules are awaiting installation or degradation). - 選択 次:パーミッション.
- に 権限 step of the wizard, the options display the user details used during initial installation.
You can change them if required. - 選択 Next: Update LM Container.
- に Update LM Container ウィザードの手順で、次の手順を実行します。
- 生成された LM コンテナー構成ファイルをコピーまたはダウンロードします。
- に表示される Helm コマンドを実行します。 インストール コマンドの実行 Helm がインストールされ、Kubernetes クラスターにアクセスできるシェルから LM コンテナーをインストールするセクション。
- コマンドを正常に実行したら、すべてのポッドが LogicMonitor namespace(or where the LM Container has installed them) are up and running with healthy status. (For example, x / y – x は、予想される y の実行から正常に実行されています。)
- に戻る LMコンテナのインストール ページを選択し、 接続を確認します。
- 選択 次へ:サービス.
- に サービス step of the wizard, add Kubernetes label key-value pairs.
詳細については、を参照してください。 サービスの追加. - 選択 次へ: 終了.
Kubernetes Cluster is updated.
Upgrading LM Container Charts using Command-Line Interface
- のバックアップを作成します
lm-container-configuration.yaml
次の手順を実行してファイルを作成します。- 創造する
lm-container-configuration.yaml
ファイルにソフトウェアを指定する必要があります。 - 次のコマンドを実行します。
helm get values lm-container -n logicmonitor
- コンテンツをコピーして保存します lm-container-configuration.yaml ファイルにソフトウェアを指定する必要があります。
- 創造する
- コマンドラインインターフェースウィンドウを開きます。
- ターミナルで、次のコマンドを使用して、最新の Helm チャートでリポジトリを更新します。
helm repo update logicmonitor
- 次のコマンドを実行して、既存のカスタム リソース定義 (CRD) を更新します。
kubectl apply -f https://raw.githubusercontent.com/logicmonitor/helm-charts/main/charts/collectorset-controller/crds/collectorset.yaml
- 次の Helm アップグレード コマンドを実行します。
helm upgrade \
--reuse-values \
--namespace=<namespace> \
-f lm-container-configuration.yaml \
lm-container --version <Latest LM Container Chart Version Number> logicmonitor/lm-container
val のリストの詳細については、ues and their descriptions used in the lm-container-configuration.yaml
ファイル、参照 値スキーマのリファレンス ArtifactHUBより。
注: Latest LM Container Chart Version Number
は、アップグレード先の LM Container Chart のバージョン番号を指します。
LM Container チャートのインストールの詳細については、インストールを参照してください。 CLI を使用した LM コンテナー チャート & LM Container Helm チャートのインストール。