Skip to content

Commit

Permalink
fix: update migration doc
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <[email protected]>
  • Loading branch information
vishal-chdhry committed Jul 7, 2024
1 parent ab672c3 commit d873c19
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions docs/MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,14 @@ Clusters with policy reports CRDs have existing API services for policy reports

Follow the given methods to migrate to reports server on your existing cluster:

## YAML Manifest

YAML manifest can be installed directly using `kubectl apply` and this will overwrite the existing API services. Run the following command:
```bash
kubectl apply -f https://raw.githubusercontent.com/nirmata/reports-server/main/config/install.yaml
```

## Helm Chart

Helm cannot overwrite resources when they are not managed by helm. Thus we recommend installing the chart without the api services using the following command:
```bash
helm install reports-server --namespace reports-server reports-server/reports-server --devel --set apiServices.enabled=false
```bash
helm install reports-server --namespace reports-server --create-namespace --wait ./charts/reports-server \
--set image.tag=latest \
--set apiServices.enabled=false
```

Once the helm chart is installed, API services can be manually updated using `kubectl apply`. Update our [apiservices samples](./config/samples/apiservices.yaml) with the right reports-server name and namespace and apply that manifest.

0 comments on commit d873c19

Please sign in to comment.