diff --git a/helm/trivy/templates/statefulset.yaml b/helm/trivy/templates/statefulset.yaml index 4a931d2ac0b0..fef41a47da3c 100644 --- a/helm/trivy/templates/statefulset.yaml +++ b/helm/trivy/templates/statefulset.yaml @@ -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 diff --git a/helm/trivy/values.yaml b/helm/trivy/values.yaml index a969f10b7899..73d780d6a0b1 100644 --- a/helm/trivy/values.yaml +++ b/helm/trivy/values.yaml @@ -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