Skip to content

Commit

Permalink
feat: make trivy-server replicas configurable (#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-rei committed Sep 3, 2023
1 parent 953dbd7 commit 35213ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions deploy/helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Keeps security report resources updated
| trivy.registry | object | `{"mirror":{}}` | Mirrored registries. There can be multiple registries with different keys. Make sure to quote registries containing dots |
| trivy.resources | object | `{"limits":{"cpu":"500m","memory":"500M"},"requests":{"cpu":"100m","memory":"100M"}}` | resources resource requests and limits |
| trivy.server.podSecurityContext | object | `{"fsGroup":65534,"runAsNonRoot":true,"runAsUser":65534}` | podSecurityContext set trivy-server podSecurityContext |
| trivy.server.replicas | int | `1` | the number of replicas of the trivy-server |
| trivy.server.resources | object | `{"limits":{"cpu":1,"memory":"1Gi"},"requests":{"cpu":"200m","memory":"512Mi"}}` | resources set trivy-server resource |
| trivy.server.securityContext | object | `{"privileged":false,"readOnlyRootFilesystem":true}` | securityContext set trivy-server securityContext |
| trivy.serverCustomHeaders | string | `nil` | serverCustomHeaders is a comma separated list of custom HTTP headers sent by Trivy client to Trivy server. Only applicable in ClientServer mode. |
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/templates/trivy-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ metadata:
spec:
podManagementPolicy: "Parallel"
serviceName: {{ .Values.trivy.serverServiceName }}
replicas: 1
replicas: {{ .Values.trivy.server.replicas }}
selector:
matchLabels:
app.kubernetes.io/name: trivy-server
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ trivy:
privileged: false
readOnlyRootFilesystem: true

# -- the number of replicas of the trivy-server
replicas: 1

compliance:
# -- failEntriesLimit the flag to limit the number of fail entries per control check in the cluster compliance detail report
failEntriesLimit: 10
Expand Down

0 comments on commit 35213ef

Please sign in to comment.