The Red Hat Ecosystem Catalog is the official source for discovering and learning more about the Red Hat Ecosystem of both Red Hat and certified third-party products and services.
We’re the world’s leading provider of enterprise open source solutions—including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.
Kubernetes Operator for the Instana APM Agent
Instana is a fully automated Application Performance Monitoring (APM) tool for microservices.
This is the Kubernetes Operator for installing the Instana APM Agent on Kubernetes or OpenShift.
Configuration and Installation
First, install this operator from OperatorHub.io, OpenShift Container Platform, or OKD.
Second, create the target namespace where the Instana agent should be installed. The agent does not need to run in the same namespace as the operator. Most users create a new namespace instana-agent for running the agents.
Third, create a custom resource with the agent configuration in the target namespace. The operator will pick up the custom resource and install the Instana agent accordingly.
The following is a minimal template of the custom resource:apiVersion: instana.io/v1alpha1
kind: InstanaAgent
metadata:
name: instana-agent
namespace: instana-agent
spec:
agent.zone.name: '{{ (optional) name of the zone of the host }}'
agent.key: '{{ put your Instana agent key here }}'
agent.endpoint.host: '{{ the monitoring ingress endpoint }}'
agent.endpoint.port: '{{ the monitoring ingress endpoint port, wrapped in quotes }}'
config.files:
configuration.yaml: |
# You can leave this empty, or use this to configure your instana agent.
# See https://docs.instana.io/quick_start/agent_setup/container/kubernetes/
Save the template in a file instana-agent.yaml and edit the following values:
If your target namespace is not instana-agent, replace the namespace: accordingly.
agent.key must be set with your Instana agent key.
agent.endpoint must be set with the monitoring ingress endpoint, generally either saas-us-west-2.instana.io or saas-eu-west-1.instana.io.
agent.endpoint.port must be set with the monitoring ingress port, generally "443" (wrapped in quotes).
agent.zone.name should be set with the name of the Kubernetes cluster that is be displayed in Instana.
For advanced configuration, you can edit the contents of the configuration.yaml file. View documentation here: https://docs.instana.io/quickstart/agentsetup/container/kubernetes/.
Apply the custom resource with kubectl apply -f instana-agent.yaml. After some time, you should see instana-agent Pods being created on each node of your cluster, and your cluster should show on the infrastructure map on your Instana Web interface.
Uninstalling
In order to uninstall the Instana agent, simply remove the custom resource with kubectl delete -f instana-agent.yaml.
Source Code
The Instana agent operator is an open source project hosted on https://github.com/instana/instana-agent-operator.
Use the following instructions to get images from a Red Hat container registry using registry service account tokens. You will need to create a registry service account to use prior to completing any of the following tasks.
First, you will need to add a reference to the appropriate secret and repository to your Kubernetes pod configuration via an imagePullSecrets field.
Then, use the following from the command line or from the OpenShift Dashboard GUI interface.
Use the following command(s) from a system with podman installed
Use the following command(s) from a system with docker service installed and running
Use the following instructions to get images from a Red Hat container registry using your Red Hat login.
For best practices, it is recommended to use registry tokens when pulling content for OpenShift deployments.
Use the following command(s) from a system with podman installed
Use the following command(s) from a system with docker service installed and running