Ensure Object Have An Owner Label
In Kubernetes, some objects are owners of other objects. These owned objects are dependent on their owner. Ownership differs from the labels and selectors mechanism that some resources use. Owner references help different parts of Kubernetes avoid interfering with objects they don't control.
Risk Level: informational
Cloud Entity: Kubernetes
Spectral Rule ID: K8S296
REMEDIATION
set lable.owner
metadata:
labels:
+ owner: "example"
References:
Pod Security Policies
A Pod Security Policy is a cluster-level resource that controls security sensitive aspects of the pod specification. The PodSecurityPolicy objects define a set of conditions that a pod must run with in order to be accepted into the system, as well as defaults for the related fields.
Updated over 1 year ago