newrelic-infrastructure

by joaquinito2051

Helm chartv0.11.0App 1.8.0

A Helm chart to deploy the New Relic Infrastructure Agent as a DaemonSet

About this chart

newrelic-infrastructure

Chart Details

This chart will deploy the New Relic Infrastructure agent as a Daemonset.

Configuration

ParameterDescriptionDefault
clusterThe cluster name for the Kubernetes cluster.
licenseKeyThe license key for your New Relic Account.
configA newrelic.yml file if you wish to provide.
kubeStateMetricsUrlIf provided, the discovery process for kube-state-metrics endpoint won't be triggered. Example: http://172.17.0.3:8080
kubeStateMetricsTimeoutTimeout for accessing kube-state-metrics in milliseconds. If not set the newrelic default is 5000
rbac.createEnable Role-based authenticationtrue
rbac.pspEnabledEnable pod security policy supportfalse
image.nameThe container to pull.newrelic/infrastructure
image.pullPolicyThe pull policy.IfNotPresent
image.tagThe version of the container to pull.1.8.0
resourcesAny resources you wish to assign to the pod.See Resources below
verboseLogShould the agent log verbosely. (Boolean)false
nodeSelectorNode label to use for schedulingnil
tolerationsList of node taints to tolerate (requires Kubernetes >= 1.6)nil
updateStrategyStrategy for DaemonSet updates (requires Kubernetes >= 1.6)RollingUpdate

Example

helm install <helm-repo>/newrelic-infrastructure \
--set licenseKey=<enter_new_relic_license_key> \
--set cluster=my-k8s-cluster
helm install stable/newrelic-infrastructure \

Resources

The default set of resources assigned to the pods is shown below:

resources:
  limits:
    cpu: 100m
    memory: 128Mi
  requests:
    cpu: 100m
    memory: 128Mi

Config file

If you wish to provide your own newrelic.yml you may do so under config. There are a few notable exceptions you should be aware of. Three options have been omitted because they are handled either by variables, or a secret. They are license_key, log_file and verbose.

Deploy newrelic-infrastructure with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has newrelic-infrastructure 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 chartnewrelic-infrastructure is pinned at v0.11.0 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