Skip to content

Commit fd91c08

Browse files
committed
changes to the resources
Signed-off-by: AnaisUrlichs <[email protected]>
1 parent 8fd8cea commit fd91c08

File tree

4 files changed

+21
-12
lines changed

4 files changed

+21
-12
lines changed

README.md

+15-12
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@ Install the helm prometheus stack chart:
2121
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
2222
```
2323

24+
```
25+
helm repo update
26+
```
27+
2428
```
2529
helm upgrade --install prom prometheus-community/kube-prometheus-stack -n monitoring --values observability-conf/prom-values.yaml
2630
```
2731

28-
Install promtail to colelct logs from every node:
32+
Install promtail to collect logs from every node:
2933

3034
```
3135
helm repo add grafana https://grafana.github.io/helm-charts
@@ -50,26 +54,24 @@ helm repo update
5054
And finally, the Helm chart can be installed with the following command:
5155

5256
```
53-
helm install trivy-operator aqua/trivy-operator \
57+
helm upgrade --install trivy-operator aqua/trivy-operator \
5458
--namespace trivy-system \
5559
--create-namespace \
5660
--set="trivy.ignoreUnfixed=true" \
5761
--set="serviceMonitor.enabled=true" \
58-
--version 0.3.0
62+
--version 0.18.0
5963
```
60-
Make sure to cross-check the updated installation incl. the latest versio of the operator in the docs: https://aquasecurity.github.io/trivy-operator/latest/operator/installation/helm/
61-
62-
Install tracee to monitor your cluster:
6364

65+
Alternatively, it's also possible to set a custom values.yaml manifest that overrides the default values in the Helm Chart. We have set up the following [values.yaml](./observability-conf/trivy-values.yaml) manifest for the Trivy Operator. To provide the file upon installing the operator, use the following command:
6466
```
65-
kubectl apply -f observability-conf/tracee.yaml
67+
helm upgrade --install trivy-operator aqua/trivy-operator \
68+
--namespace trivy-system \
69+
--create-namespace \
70+
--values ./observability-conf/trivy-values.yaml \
71+
--version 0.18.0
6672
```
6773

68-
Create application:
69-
```
70-
kubectl create ns app
71-
kubectl apply -f app-manifests -n app
72-
```
74+
Make sure to cross-check the updated installation incl. the latest versio of the operator in the docs: https://aquasecurity.github.io/trivy-operator/latest/operator/installation/helm/
7375

7476
## Open the dashboards in Grafana
7577

@@ -83,6 +85,7 @@ The login is:
8385
Password: prom-operator
8486

8587
And provide Grafana with the dashboards in the [observability-conf](./observability-conf/) folder.
88+
Note that Trivy also has a custom Dashboard -- [the ID: 17813 ]
8689

8790
![Vulnerability stats](./assets/vulnerabilities.png)
8891

observability-conf/trivy-service-monitor.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ spec:
1010
selector:
1111
matchLabels:
1212
app.kubernetes.io/instance: trivy-operator # target trivy service
13+
app.kubernetes.io/name: trivy-operator
1314
endpoints:
1415
- port: metrics
1516
interval: 15s

observability-conf/trivy-values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
trivy:
2+
ignoreUnfixed: true
3+
serviceMonitor:
4+
# enabled determines whether a serviceMonitor should be deployed
5+
enabled: true
File renamed without changes.

0 commit comments

Comments
 (0)