Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.09 KB

kubescape-c-0077-deny-resources-without-configured-list-of-k8s-common-labels-not-set.md

File metadata and controls

24 lines (18 loc) · 1.09 KB

Kubescape C-0077: Deny resources without configured list of k8s common labels not set.

Why this policy is required:

Kubernetes common labels help manage and monitor Kubernetes cluster using different tools such as kubectl, dashboard and others in an interoperable way. Refer to this link for more information.

Severity Level: Low

Configuration Parameters:

Resources this policy could be applied to:

  • CronJob
  • DaemonSet
  • Deployment
  • Job
  • Pod
  • ReplicaSet
  • StatefulSet

What does this policy do:

This Policy checks if resource sets the labels defined in the configurable k8sRecommendedLabels. If not set, the resource is denied from being deployed in the cluster.

Implementing this policy in the Cluster:

Refer here for using the policy in the cluster