Behaviour of StatefulSet Without Service Name #5137
-
Is the current behaviour of https://github.com/Checkmarx/kics/tree/master/assets/queries/k8s/statefulset_without_service_name as it is expected to be? What if
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @adberger, hope you are doing great! |
Beta Was this translation helpful? Give feedback.
Hi @adberger, hope you are doing great!
Regarding the first question, according to the kubernetes documentation the statefulset requires a headless service that is done setting the clusterIP to None (https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#limitations), we do not verify if clusterIP is set due to it being required and not optional.
Regarding the second question, if only a fraction of the labels match the output will be false and the count not increased.
Let me know if I you have any other doubt!