Skip to content

Commit

Permalink
Update install-kubernetes-integration-using-helm.mdx
Browse files Browse the repository at this point in the history
Removed the Helm 2 section, since Helm 2 is not supported anymore.
  • Loading branch information
jsubirat committed Jun 2, 2023
1 parent 362792a commit 3513437
Showing 1 changed file with 0 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,92 +159,6 @@ You should see:
6. One `prometheus-agent` pod, if you enabled the [Prometheus agent](/docs/infrastructure/prometheus-integrations/install-configure-prometheus-agent/install-prometheus-agent) integration.
7. One `newrelic-newrelic-logging` pod for each node in your cluster, if you enabled the Logging integration.

### Install with Helm 2 and nri-bundle (legacy, deprecated)

<CollapserGroup>
<Collapser
className="freq-link"
id="install-helm2"
title="Installation instructions for Helm 2"
>
<Callout variant="important">
The last version the `nri-bundle` chart supporting Helm 2 is `3.2.11`. Please, upgrade to Helm 3 to install the latest version. We will be removing support for Helm 2 installations soon.
</Callout>

To install using Helm 2:

1. Add the New Relic Helm charts repo:

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

2. Create a namespace for newrelic:

```shell
kubectl create namespace newrelic
```

3. Make sure everything is configured properly in the chart by running the following command. This step uses the `--dry-run` and `--debug` switches and therefore the agent is not installed.

```shell
helm upgrade --install newrelic-bundle newrelic/nri-bundle \
--version 3.2.11 \
--dry-run \
--debug \
--namespace newrelic \
--set global.licenseKey=_YOUR_NEW_RELIC_LICENSE_KEY_ \
--set global.cluster=_K8S_CLUSTER_NAME_ \
--set ksm.enabled=true \
--set newrelic-infrastructure.privileged=true \
--set prometheus.enabled=true \
--set webhook.enabled=true \
--set kubeEvents.enabled=true \
--set logging.enabled=true
```

4. Install the New Relic Kubernetes integration by running the same command without `--dry-run` and `--debug`

```shell
helm upgrade --install newrelic-bundle newrelic/nri-bundle \
--version 3.2.11 \
--namespace newrelic \
--set global.licenseKey=_YOUR_NEW_RELIC_LICENSE_KEY_ \
--set global.cluster=_K8S_CLUSTER_NAME_ \
--set ksm.enabled=true \
--set newrelic-infrastructure.privileged=true \
--set prometheus.enabled=true \
--set webhook.enabled=true \
--set kubeEvents.enabled=true \
--set logging.enabled=true
```

5. Wait a few seconds, then check that the `DaemonSet` and pods have been created:

6. Check that pods are being deployed and reach a stable state:

```shell
kubectl -n newrelic get pods -w
```

7. Make sure you see a `DaemonSet`, and one pod per node.

### Helm configuration options [#config-options]

When you install or upgrade the Kubernetes integration with Helm using the command line, you can pass your
configuration variables with the `--set` flag.

```shell
helm install newrelic/newrelic-infrastructure \
--set licenseKey=_YOUR_NEW_RELIC_LICENSE_KEY_ \
--set cluster=_YOUR_CLUSTER_NAME_
```

A full list of the configuration parameters can be found in the [`newrelic-infrastructure` chart
README](https://github.com/newrelic/helm-charts/tree/master/charts/newrelic-infrastructure)
</Collapser>
</CollapserGroup>

<InstallFeedback />

## Configure the integration [#configure]
Expand Down

0 comments on commit 3513437

Please sign in to comment.