---
title: Upgrade from version 2
source: https://docs.newrelic.com/docs/kubernetes-pixie/kubernetes-integration/advanced-configuration/k8s-version2/upgrade-v2
---

In order to upgrade the Kubernetes integration from version 2 (included in [`nri-bundle`](https://github.com/newrelic/helm-charts/tree/master/charts/nri-bundle) chart versions 3.x), we strongly encourage you to create a `values-newrelic.yaml` file with your desired license key and configuration. If you had previously installed our chart from the CLI directly, such as this command:

```shell
helm install newrelic/nri-bundle \
  --set global.licenseKey=<New Relic License key> \
  --set global.cluster=<Cluster name> \
  --set infrastructure.enabled=true \
  --set prometheus.enabled=true \
  --set webhook.enabled=true \
  --set ksm.enabled=true \
  --set kubeEvents.enabled=true \
  --set logging.enabled=true
```

You can take the provided `--set` arguments and put them in a `yaml` file like the following:

```yaml
# values-newrelic.yaml
global:
  licenseKey: <New Relic License key>
  cluster: <Cluster name>
infrastructure:
  enabled: true
prometheus:
  enabled: true
webhook:
  enabled: true
ksm:
  enabled: true
kubeEvents:
  enabled: true
logging:
  enabled: true
```

After doing this, and adapting any other setting you might have changed according to the [migration guide](https://docs.newrelic.com/docs/kubernetes-pixie/kubernetes-integration/advanced-configuration/k8s-version2/changes-since-v3/#migration-guide), upgrade your `nri-bundle` by running this command:

```shell
helm upgrade newrelic newrelic/nri-bundle \
  --namespace newrelic --create-namespace \
  -f values-newrelic.yaml
```

> #### ⚠️ IMPORTANT
>
> The `--reuse-values` flag is not supported if you upgrade from v2 to v3.
