Giter Site home page Giter Site logo

helm-charts-1's Introduction

Community Project header

New Relic's Helm charts repository

This is the official Helm charts repository for New Relic. It is indexed at Helm Hub, where you can find the list of available charts and their documentation.

Prerequisites

Install

To install the New Relic Helm charts, add the official repository first:

helm repo add newrelic https://helm-charts.newrelic.com

You can list all the available charts from the newrelic repository using helm search:

helm search repo newrelic/

To install one of the charts, run helm install passing the name of the chart to install and the values you want to set as arguments. You can find a list of all the values and their defaults in the documentation of each chart.

Examples

The following example installs the nri-bundle chart, which groups multiple New Relic charts into one. nri-bundle contains:

Install nri-bundle using Helm 3

helm install newrelic-bundle newrelic/nri-bundle \
  --set global.licenseKey=YOUR_LICENSE_KEY \
  --set global.cluster=YOUR_CLUSTER_NAME \
  --set kubeEvents.enabled=true \
  --set webhook.enabled=true \
  --set prometheus.enabled=true \
  --set logging.enabled=true \
  --set ksm.enabled=true

Install nri-bundle using Helm 2

helm install newrelic/nri-bundle \
  --name newrelic-bundle \
  --set global.licenseKey=YOUR_LICENSE_KEY \
  --set global.cluster=YOUR_CLUSTER_NAME \
  --set kubeEvents.enabled=true \
  --set webhook.enabled=true \
  --set prometheus.enabled=true \
  --set logging.enabled=true \
  --set ksm.enabled=true

Development

You can use the Helm CLI to develop a chart and add it to this repository.

  1. Clone this repository on your local machine.
  2. Add or modify the files for the desired chart.
  3. To install the chart locally, run helm install dev-chart charts/<YOUR_CHART>
  4. Verify that the chart works as expected.
  5. Remove the installed chart with helm uninstall dev-chart.
  6. Create your pull request and follow the instructions below.

Feel free to add different values to the chart.

Automated version bumps

This repository is configured to accept webhook requests to bump chart versions. Upon receiving a version bump request, a GitHub Action generates a pull request with the requested changes. The pull request must still be merged manually.

Trigger an automated version bump

A GitHub Personal Access Token for this repository is required. If you have the token, execute the following POST request (tailor client_payload to your needs):

chart_name: (required) Name of the helm chart to be bumped. chart_version: (optional) If specified the chart version will be set with this value. If left empty the patch version of the chart will be bumped by 1, e.g: 1.2.19 -> 1.2.20 app_version: (required) Version of the application.

curl -H "Accept: application/vnd.github.everest-preview+json" \
     -H "Authorization: token <PERSONAL_ACCESS_TOKEN>" \
     --request POST \
     --data '{"event_type": "bump-chart-version", "client_payload": { "chart_name": "simple-nginx", "chart_version": "1.2.3", "app_version": "1.45.7"}}' \
     https://api.github.com/repos/newrelic/helm-charts/dispatches

Notice the sample client_payload object in the request body: the request generates a pull request for the simple-nginx chart to update app_version to 1.45.7 and chart_version to 1.2.3.

Testing

See chart testing

Contributing

See our Contributing docs and our review guidelines

Support

Issues / Enhancement Requests

Issues and enhancement requests can be submitted in the Issues tab of this repository. Please search for and review the existing open issues before submitting a new issue.

Troubleshoot

Getting "Couldn't load repositories file" (Helm 2)

You need to initialize Helm with:

helm init

Getting "namespaces 'default' is forbidden" (Helm 2)

If your cluster uses role-based access, create a service account for tiller (Helm's service which runs inside the Kubernetes cluster) using:

kubectl --namespace kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller-cluster-rule \
 --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl --namespace kube-system patch deploy tiller-deploy \
 -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'

License

The project is released under version 2.0 of the Apache license.

helm-charts-1's People

Contributors

adrienkuhn avatar alejandrodnm avatar ardias avatar avenging avatar clintguy avatar dependabot[bot] avatar douglascamata avatar drryu avatar erabug avatar gopisaba avatar gsanchezgavier avatar jeenx avatar jorik avatar jsubirat avatar kidk avatar marcusnoble avatar melissaklein24 avatar mr-smithers-excellent avatar paologallinaharbur avatar polfliet avatar theletterf avatar vrlo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.