Skip to content

Commit

Permalink
Make liveness probe configurable (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhielpos committed Dec 20, 2024
1 parent f2252c8 commit cf3c724
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/trivy/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ spec:
scheme: HTTP
path: /healthz
port: trivy-http
initialDelaySeconds: 5
initialDelaySeconds: {{ default 5 .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: 10
successThreshold: 1
failureThreshold: 10
Expand Down
5 changes: 5 additions & 0 deletions helm/trivy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ tolerations: []
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podAnnotations: {}

# Allow Trivy to download the database before being killed. In some cases the conection to gsoci can be slow and take longer than the default
# Maybe we can remove this once we have Zot
livenessProbe:
initialDelaySeconds: 300

trivy:
# debugMode the flag to enable Trivy debug mode
debugMode: false
Expand Down

0 comments on commit cf3c724

Please sign in to comment.