Skip to content

Commit

Permalink
feat: update the install docs for testing
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <[email protected]>
  • Loading branch information
vishal-chdhry committed Jun 7, 2024
1 parent 7c37982 commit 2ea12e1
Showing 1 changed file with 52 additions and 49 deletions.
101 changes: 52 additions & 49 deletions docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,28 @@ There are three configuration to install reports server:

Reports server can be configured to work with any postgres instance in an out of the cluster. You can install reports server with a postgres instance outside of the cluster with helm as follows.

In order to install reports-server with Helm, first add the Reports-server Helm repository:
```bash
helm repo add reports-server https://kyverno.github.io/reports-server
```

Scan the new repository for charts:
```bash
helm repo update
```

Optionally, show all available chart versions for reports-server.

```bash
helm search repo reports-server --l
```
<!-- In order to install reports-server with Helm, first add the Reports-server Helm repository: -->
<!-- ```bash -->
<!-- helm repo add reports-server https://kyverno.github.io/reports-server -->
<!-- ``` -->
<!---->
<!-- Scan the new repository for charts: -->
<!-- ```bash -->
<!-- helm repo update -->
<!-- ``` -->
<!---->
<!-- Optionally, show all available chart versions for reports-server. -->
<!---->
<!-- ```bash -->
<!-- helm search repo reports-server --l -->
<!-- ``` -->
Get the values for hostname, dbname, postgres username and postgres password from managed postgres and fill the values in helm values

Create a namespace and install the reports-server chart:

```bash
helm install reports-server -n reports-server --create-namespace --wait reports-server/reports-server \
helm install reports-server -n reports-server --create-namespace --wait ./charts/reports-server/ \
--set image.tag=latest \
--set postgresql.enabled=false \
--set config.db.host=<HOST_NAME> \
--set config.db.name=<DB_NAME> \
Expand Down Expand Up @@ -67,25 +68,26 @@ Create a CloudNativePG postgres cluster:
kubectl create -f config/samples/cnpg-cluster.yaml
```

In order to install reports-server with Helm, first add the Reports-server Helm repository:
```bash
helm repo add reports-server https://kyverno.github.io/reports-server
```

Scan the new repository for charts:
```bash
helm repo update
```

Optionally, show all available chart versions for reports-server.

```bash
helm search repo reports-server --l
```
Create a namespace and install the reports-server chart:
<!-- In order to install reports-server with Helm, first add the Reports-server Helm repository: -->
<!-- ```bash -->
<!-- helm repo add reports-server https://kyverno.github.io/reports-server -->
<!-- ``` -->
<!---->
<!-- Scan the new repository for charts: -->
<!-- ```bash -->
<!-- helm repo update -->
<!-- ``` -->
<!---->
<!-- Optionally, show all available chart versions for reports-server. -->
<!---->
<!-- ```bash -->
<!-- helm search repo reports-server --l -->
<!-- ``` -->
Install the reports-server chart:

```bash
helm install reports-server -n reports-server --create-namespace --wait reports-server/reports-server \
helm install reports-server -n reports-server --create-namespace --wait ./charts/reports-server \
--set image.tag=latest \
--set postgresql.enabled=false \
--set config.db.host=reports-server-cluster-rw.reports-server \
--set config.db.name=reportsdb \
Expand All @@ -96,26 +98,27 @@ helm install reports-server -n reports-server --create-namespace --wait reports-
## With inmemory storage
Reports server can be installed without any database as well. In this case, reports will be stored in the memory of reports-server pod. You can install reports-server with inmemory configuration as follows:

In order to install reports-server with Helm, first add the Reports-server Helm repository:
```bash
helm repo add reports-server https://kyverno.github.io/reports-server
```

Scan the new repository for charts:
```bash
helm repo update
```

Optionally, show all available chart versions for reports-server.

```bash
helm search repo reports-server --l
```
<!-- In order to install reports-server with Helm, first add the Reports-server Helm repository: -->
<!-- ```bash -->
<!-- helm repo add reports-server https://kyverno.github.io/reports-server -->
<!-- ``` -->
<!---->
<!-- Scan the new repository for charts: -->
<!-- ```bash -->
<!-- helm repo update -->
<!-- ``` -->
<!---->
<!-- Optionally, show all available chart versions for reports-server. -->
<!---->
<!-- ```bash -->
<!-- helm search repo reports-server --l -->
<!-- ``` -->

Install the reports-server chart:

```bash
helm install reports-server --namespace reports-server --create-namespace --wait reports-server/reports-server \
helm install reports-server --namespace reports-server --create-namespace --wait ./charts/reports-server \
--set image.tag=latest \
--set config.debug=true \
--set postgresql.enabled=false
```
Expand Down

0 comments on commit 2ea12e1

Please sign in to comment.