instana-agent

by joaquinito2051

Helm chartv1.0.7App 1

Instana Agent for Kubernetes

About this chart

Instana

Instana is a Dynamic APM for Microservice Applications

Introduction

This chart adds the Instana Agent to all schedulable nodes (e.g. by default, not masters) in your cluster via a DaemonSet.

Prerequisites

Kubernetes 1.8.x - 1.13.x

Working helm and tiller.

Note: Tiller may need a service account and role binding if RBAC is enabled in your cluster.

Installing the Chart

To configure the installation you can either specify the options on the command line using the --set switch, or you can edit values.yaml. Either way you should ensure that you set values for:

  • agent.key
  • zone.name

If you're in the EU, you'll probably also want to set the regional equivalent values for:

  • agent.endpointHost
  • agent.endpointPort

Optionally, if your infrastructure uses a proxy, you should ensure that you set values for:

  • agent.pod.proxyHost
  • agent.pod.proxyPort
  • agent.pod.proxyProtocol
  • agent.pod.proxyUser
  • agent.pod.proxyPassword
  • agent.pod.proxyUseDNS

Optionally, if your infrastructure has multiple networks defined, you might need to allow the agent to listen on all addresses (typically with value set to '*'):

  • agent.listenAddress

If your agent requires download key, you should ensure that you set values for it:

  • agent.downloadKey

Agent can have APM, INFRASTRUCTURE or AWS mode. Default is APM and if you want to override that, ensure you set value:

  • agent.mode

Note: Check the values for the endpoint entries in the agent backend configuration.

To install the chart with the release name instana-agent and set the values on the command line run:

$ helm install --name instana-agent --namespace instana-agent \
--set agent.key=INSTANA_AGENT_KEY \
--set agent.endpointHost=HOST \
$ helm install --name instana-agent --namespace instana-agent \
--set agent.endpointPort=PORT \
--set zone.name=CLUSTER_NAME \
--set agent.downloadKey=INSTANA_DOWNLOAD_KEY \
--set agent.proxyHost=INSTANA_AGENT_PROXY_HOST \
--set agent.proxyPort=INSTANA_AGENT_PROXY_PORT \
--set agent.proxyProtocol=INSTANA_AGENT_PROXY_PROTOCOL \
--set agent.proxyUser=INSTANA_AGENT_PROXY_USER \
--set agent.proxyPassword=INSTANA_AGENT_PROXY_PASSWORD \
--set agent.proxyUseDNS=INSTANA_AGENT_PROXY_USE_DNS \
--set agent.listenAddress=INSTANA_AGENT_HTTP_LISTEN \
stable/instana-agent

To install the chart with the release name instana-agent after editing the values.yaml file, run:

$ helm install --name instana-agent --namespace instana-agent <helm-repo>/instana-agent

$ helm install --name instana-agent --namespace instana-agent stable/instana-agent

Uninstalling the Chart

To uninstall/delete the instana-agent daemon set:

$ helm del --purge instana-agent

Configuration

Helm Chart

The following table lists the configurable parameters of the Instana chart and their default values.

ParameterDescriptionDefault
agent.keyYour Instana Agent keynil You must provide your own key
zone.nameInstana zone/cluster namenil You must provide your own zone name
agent.image.nameThe image name to pullinstana/agent
agent.image.tagThe image tag to pull1.0.17
agent.image.pullPolicyImage pull policyIfNotPresent
agent.leaderElectorPortInstana leader elector sidecar port42655
agent.endpointHostInstana agent backend endpoint hostsaas-us-west-2.instana.io
agent.endpointPortInstana agent backend endpoint port443
agent.downloadKeyYour Instana Download keynil You must provide your own download key
agent.modeAgent mode (Supported values are APM, INFRASTRUCTURE, AWS)APM
agent.pod.annotationsAdditional annotations to apply to the pod{}
agent.pod.tolerationsTolerations for pod assignment[]
agent.pod.proxyHostHostname/address of a proxynil
agent.pod.proxyPortPort of a proxynil
agent.pod.proxyProtocolProxy protocol (Supported proxy types are "http", "socks4", "socks5")nil
agent.pod.proxyUserUsername of the proxy authnil
agent.pod.proxyPasswordPassword of the proxy authnil
agent.pod.proxyUseDNSBoolean if proxy also does DNSnil
agent.listenAddressList of addresses to listen on, or "*" for all interfacesnil
agent.pod.requests.memoryContainer memory requests in MiB512
agent.pod.requests.cpuContainer cpu requests in cpu cores0.5
agent.pod.limits.memoryContainer memory limits in MiB512
agent.pod.limits.cpuContainer cpu limits in cpu cores1.5
rbac.createWhether RBAC resources should be createdtrue
serviceAccount.createWhether a ServiceAccount should be createdtrue
serviceAccount.nameName of the ServiceAccount to useinstana-agent

Agent

There is a config map which you can edit to configure the agent. This configuration will be used for all instana agents on all nodes.

Deploy instana-agent with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has instana-agent on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartinstana-agent is pinned at v1.0.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply