apm-server

by KubeGems

Helm chartv7.13.2App 7.13.2

Official Elastic helm chart for Elastic APM Server

About this chart

APM Server Helm Chart

This Helm chart is a lightweight way to configure and run our official APM Server Docker image.

Warning: This functionality is in alpha and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Alpha features are not subject to the support SLA of official GA features (see [supported configurations][] for more details).

  • Requirements
  • Installing
    • Install released version using Helm repository
    • Install development version from a branch
  • Upgrading
  • Usage notes
  • Configuration
  • FAQ
    • How to use APM Server with Elasticsearch with security (authentication and TLS) enabled?
    • How to install OSS version of APM Server?
  • Contributing

Requirements

  • Kubernetes >= 1.14
  • Helm >= 2.17.0

See [supported configurations][] for more details.

Installing

This chart is tested with the latest 7.13.2 version.

Install released version using Helm repository

  • Add the Elastic Helm charts repo: helm repo add elastic https://helm.elastic.co

  • Install it:

    • with Helm 3: helm install apm-server --version <version> elastic/apm-server
    • with Helm 2 (deprecated): helm install --name apm-server --version <version> elastic/apm-server

Install development version from a branch

  • Clone the git repo: git clone [email protected]:elastic/helm-charts.git

  • Checkout the branch : git checkout 7.13

  • Install it:

    • with Helm 3: helm install apm-server ./helm-charts/apm-server --set imageTag=7.13.2
    • with Helm 2 (deprecated): helm install --name apm-server ./helm-charts/apm-server --set imageTag=7.13.2

Upgrading

Please always check CHANGELOG.md and BREAKING_CHANGES.md before upgrading to a new chart version.

Usage notes

  • The default APM Server configuration file for this chart is configured to use an Elasticsearch endpoint as configured by the rest of these Helm charts. This can easily be overridden in the config value apmConfig.apm-server.yml.

  • Automated testing of this chart is currently only run against GKE (Google Kubernetes Engine).

  • This repo includes a number of examples configurations which can be used as a reference. They are also used in the automated testing of this chart.

Configuration

ParameterDescriptionDefault
affinityConfigurable affinity{}
apmConfigAllows you to add any config files in /usr/share/apm-server/config such as apm-server.ymlsee [values.yaml][]
autoscalingEnable the horizontal pod autoscalersee [values.yaml][]
envFromTemplatable string to be passed to the environment from variables which will be appended to the envFrom: definition for the container[]
extraContainersTemplatable string of additional containers to be passed to the tpl function""
extraEnvsExtra environment variables which will be appended to the env: definition for the container[]
extraInitContainersTemplatable string of additional containers to be passed to the tpl function""
extraVolumeMountsList of additional volumeMounts[]
extraVolumesList of additional volumes[]
fullnameOverrideOverrides the full name of the resources. If not set the name will default to .Release.Name - .Values.nameOverride or .Chart.Name""
hostAliasesConfigurable [hostAliases][][]
imagePullPolicyThe Kubernetes [imagePullPolicy][] valueIfNotPresent
imagePullSecretsConfiguration for [imagePullSecrets][] so that you can use a private registry for your image[]
imageTagThe APM Server Docker image tag7.13.2
imageThe APM Server Docker imagedocker.elastic.co/apm/apm-server
ingressConfigurable [ingress][] to expose the APM Server servicesee [values.yaml][]
labelsConfigurable [labels][] applied to all APM server pods{}
lifecycleConfigurable [lifecycle hooks][]false
livenessProbeParameters to pass to liveness [probe][] checks for values such as timeouts and thresholdssee [values.yaml][]
managedServiceAccountWhether the serviceAccount should be managed by this Helm chart. Set this to false in order to manage your own service account and related rolestrue
nameOverrideOverrides the chart name for resources. If not set the name will default to .Chart.Name""
nodeSelectorConfigurable [nodeSelector][]{}
podAnnotationsConfigurable annotations applied to all APM Server pods{}
podSecurityContextConfigurable [podSecurityContext][] for APM Server pod execution environmentsee [values.yaml][]
priorityClassNameThe name of the [PriorityClass][]. No default is supplied as the PriorityClass must be created first""
readinessProbeParameters to pass to readiness [probe][] checks for values such as timeouts and thresholdssee [values.yaml][]
replicasNumber of APM servers to run1
resourcesAllows you to set the [resources][] for the Deploymentsee [values.yaml][]
secretMountsAllows you easily mount a secret as a file inside the Deployment. Useful for mounting certificates and other secrets. See [values.yaml][] for an example[]
serviceAccountCustom [serviceAccount][] that APM Server will use during execution. By default will use the serviceAccount created by this chart""
serviceAccountAnnotationsAnnotations to be added to the ServiceAccount that is created by this chart.{}
serviceConfigurable [service][] to expose the APM Server service. See [values.yaml][] for an examplesee [values.yaml][]
terminationGracePeriodTermination period (in seconds) to wait before killing APM Server pod process on pod shutdown30
tolerationsConfigurable [tolerations][][]
updateStrategyAllows you to change the default [updateStrategy][] for the deploymentsee [values.yaml][]

FAQ

How to use APM Server with Elasticsearch with security (authentication and TLS) enabled?

This Helm chart can use existing [Kubernetes secrets][] to setup credentials or certificates for examples. These secrets should be created outside of this chart and accessed using environment variables and volumes.

An example can be found in examples/security.

How to install OSS version of APM Server?

Deploying OSS version of APM Server can be done by setting image value to APM Server OSS Docker image

An example of APM Server deployment using OSS version can be found in examples/oss.

Contributing

Please check CONTRIBUTING.md before any contribution or for any questions about our development and testing process.

Deploy apm-server with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has apm-server 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 chartapm-server is pinned at v7.13.2 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