KubernetesモニタリングHelmチャートの使用
Kubernetesクラスタにエージェント・ソフトウェアおよびJava Management Serviceプラグインをデプロイして、アプリケーションを監視および管理します。
次のステップでは、ヘルム・チャートを構成およびインストールするプロセスの詳細を示します。
- Helmチャートを構成します: OCI Kubernetes Monitoring Helmチャートには、ユーザーが指定した値を必要とするテンプレートが含まれています。
values.yaml
ファイルは、Helmチャートをダウンロードしたときに作成したoci-onm
ディレクトリにあります。指定された指示に従ってoci-onm/values.yaml
ファイルを更新します。ノート
次のファイル・スニペットは、実際のファイルの一部のみです。[入力必須]とマークされたフィールドのみを変更してください。global: [...] kubernetesClusterID: # -- Provide a unique name for the cluster. This would help uniquely identifying the logs and metrics data at OCI Logging Analytics and OCI Monitoring respectively, when monitoring multiple clusters kubernetesClusterName: NameOfYourCluster # [INPUT REQUIRED] Enter a name for your cluster. This will be the host name for the managed instance in JMS Fleets. [...] oci-onm-logan: enabled: false # [INPUT REQUIRED] Add this line to disable logging analytics as JMS does not depend on it oci-onm-common: enabled: false [...] oci-onm-mgmt-agent: [...] kubernetesCluster: name: "< .Values.global.kubernetesClusterName >" mgmtagent: # Provide the base64 encoded content of the Management Agent Install Key file (e.g. cat input.rsp | base64 -w 0) installKeyFileContent: "" # [INPUT REQUIRED] Enter the base64 value copied from step 2 between the quotes # Follow steps documented at https://github.com/oracle/docker-images/tree/main/OracleManagementAgent to build docker image. image: [...]
oci-onm
フォルダの親ディレクトリから、次のコマンドを実行してHelmチャートを確認します:helm template oci-onm/
コンソール出力にエラーが表示されないことを確認します。
- デフォルトのネームスペースにHelmチャートをインストールします:
oci-onm
フォルダの親ディレクトリから、次のコマンドを実行して、デフォルトのネームスペースにHelmチャートをインストールします。helm install mgmtagent-monitoring oci-onm/ -n default
- 次のように、インストールを検証します。次のコマンドを使用して、管理エージェントの
StatefulSet
が準備完了で、実行中であることを確認します。kubectl get pods -n oci-onm