1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【instana×Openshift】OpenShift OperatorにInstanaエージェントを導入してみた

1
Last updated at Posted at 2026-01-18

はじめに

今回は、OpenshiftOperatorにInstanaを導入する手順をやってみました!
InstanaのUIでの説明に沿ってコマンドだけでインストールが終了します。

全体手順

前提作業: Openshiftにinstana-agentプロジェクトとサービスアカウントを作成
1: オペレーターを手動でインストールします。
2: クラスター名を入力し、オプションでクラスターを含めるエージェントゾーンを入力します。
3: カスタムリソースYAMLファイルを構成します。
4: 以下のコマンドを実行・選択して構成でInstanaエージェントをデプロイします。
5: インストール確認(Instana UI)

全体像

image.png
ローカルでoc / kubectlを実行すると、instana-agentプロジェクト内でOperatorとCustomResource(CR)が作成されます。
OperatorはCRをWatchしていて、変化があるとKubernetes APIに変更を呼びかけてpodが再配置されます。

参考
https://www.ibm.com/docs/en/instana-observability/1.0.311?topic=openshift-checking-agent-prerequisites-red-hat#setting-up-project-and-service-accounts__title__1
Instanaエージェントインストール手順
スクリーンショット 2026-01-18 8.33.19.png

作業全体イメージ

ローカルでyamlを作って、OpenshiftクラスターにInstanaエージェントをデプロイします。
スクリーンショット 2026-01-18 8.39.10.png

前提作業

Openshiftにinstanaエージェントをインストールする環境となる、instana-agentプロジェクトとサービスアカウントを作成します。

oc login https://api.itz-om63i2.hub01-lb.techzone.ibm.com:6443 \
  -u kubeadmin \
  -p 'Ph8ps-UjhhN-jg5Xm-UAC8n'
# usernameとpasswordを指定してログイン。
oc new-project instana-agent
oc adm policy add-scc-to-user privileged -z instana-agent -n instana-agent
oc adm policy add-scc-to-user anyuid -z instana-agent-remote -n instana-agent

スクリーンショット 2026-01-18 9.40.11.png

ステップ1:オペレーターを手動でインストール

Projectがinstana-agentになっていることを確認し、Instana UIのコピペコマンドを実行します。
すると、色々createdとなります。

kubectl apply -f https://github.com/instana/instana-agent-operator/releases/latest/download/instana-agent-operator.yaml

スクリーンショット 2026-01-18 9.42.27.png

ステップ2:クラスタ名を入力

任意のクラスタ名とゾーン名を入力します。
今回は、下記コマンドからクラスター名は環境名にしました。
スクリーンショット 2026-01-18 20.11.06.png

oc whoami --show-server

スクリーンショット 2026-01-18 19.53.53.png

ステップ3:カスタム・リソース YAML ファイルを構成

どの位置からでもOKなので、InstanaUIで作られたコードをコピーして、instana-agent.customresource.yamlという名前のファイルを作ります。
スクリーンショット 2026-01-18 20.18.16.png

ステップ4: Instana エージェントをデプロイ

ステップ3で作成したyamlをopenshift内のkubernetesに送ります。

kubectl apply -f instana-agent.customresource.yaml

無事インフラストラクチャでホストが確認できました!
スクリーンショット 2026-01-18 20.23.44.png

1
1
2

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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?