You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case of liveness and readiness probe, there is an issue with policy JSON and rego file as well
{
"name": "nolivenessProbe",
"file": "probeCheck.rego",
"template_args": {
"argument": "livenessProbe",
"argumentTF": "liveness_probe",
"name": "nolivenessProbe",
"prefix": "",
"suffix": ""
},
"severity": "LOW",
"description": "No liveness probe will ensure there is no recovery in case of unexpected errors",
"reference_id": "AC-K8-OE-PO-L-0129",
"category": "Security Best Practices",
"version": 1
}
Here both the fields argument and argumentTF are verified against the pod YAML file, and there is nothing as liveness_probe or readiness_probe in k8s. The valid fields are livenessProbe and readinessProbe
Description
I was scanning my k8s yaml file of kind Job.
What I Did
My yaml file already have setting for liveness, readiness probe and resources request still I am getting violations for them.
My yaml file for refernce
The text was updated successfully, but these errors were encountered: