Kube-prometheus-stack Helm Chart

Kube-prometheus-stack
Analyzed version: 35.0.3

By Prometheus

kube-prometheus-stack collects Kubernetes manifests, Grafana dashboards, and Prometheus rules combined with documentation and scripts to provide easy to operate end-to-end Kubernetes cluster monitoring with Prometheus using the Prometheus Operator.

Prometheus, a CNCF project, is a systems and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts if some condition is observed to be true.

This chart bootstraps a Prometheus deployment on a Kubernetes cluster using the Helm package manager.

Latest version: 15.5.3
View GitHub

How to Install the Kube-prometheus-stack Helm Chart

Add Chart Repository to Helm

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts

Install Chart

helm install my-kube-prometheus-stack prometheus-community/kube-prometheus-stack --version 35.0.3

Does the Kube-prometheus-stack chart contain security gaps?

The chart meets the best practices recommended by the industry.

The chart contains 10 misconfigurations.

The chart meets the best practices recommended by the industry. Find the full list of best practices here.

❌ Ensure each container has a configured CPU limit

9 occurrences:

  • metadata.name: release-name-prometheus-node-exporter (kind: DaemonSet)
  • metadata.name: release-name-grafana (kind: Deployment)
  • metadata.name: release-name-kube-state-metrics (kind: Deployment)
  • metadata.name: release-name-kube-promethe-operator (kind: Deployment)
  • metadata.name: release-name-grafana-test (kind: Pod)
  • metadata.name: release-name-kube-promethe-admission-create (kind: Job)
  • metadata.name: release-name-kube-promethe-admission-patch (kind: Job)

💡 Missing property object `limits.cpu` - value should be within the accepted boundaries recommended by the organization

Learn how to fix the issue here

❌ Ensure each container has a configured liveness probe

6 occurrences:

  • metadata.name: release-name-grafana (kind: Deployment)
  • metadata.name: release-name-kube-promethe-operator (kind: Deployment)
  • metadata.name: release-name-grafana-test (kind: Pod)
  • metadata.name: release-name-kube-promethe-admission-create (kind: Job)
  • metadata.name: release-name-kube-promethe-admission-patch (kind: Job)

💡 Missing property object `livenessProbe` - add a properly configured livenessProbe to catch possible deadlocks

Learn how to fix the issue here

❌ Prevent container security vulnerability (CVE-2021-25741)

4 occurrences:

  • metadata.name: release-name-grafana (kind: Deployment)

💡 Forbidden property object `subPath` - malicious users can gain access to files & directories outside of the volume

Learn how to fix the issue here

❌ Ensure each container has a configured memory request

9 occurrences:

  • metadata.name: release-name-prometheus-node-exporter (kind: DaemonSet)
  • metadata.name: release-name-grafana (kind: Deployment)
  • metadata.name: release-name-kube-state-metrics (kind: Deployment)
  • metadata.name: release-name-kube-promethe-operator (kind: Deployment)
  • metadata.name: release-name-grafana-test (kind: Pod)
  • metadata.name: release-name-kube-promethe-admission-create (kind: Job)
  • metadata.name: release-name-kube-promethe-admission-patch (kind: Job)

💡 Missing property object `requests.memory` - value should be within the accepted boundaries recommended by the organization

Learn how to fix the issue here

❌ Ensure each container has a configured memory limit

9 occurrences:

  • metadata.name: release-name-prometheus-node-exporter (kind: DaemonSet)
  • metadata.name: release-name-grafana (kind: Deployment)
  • metadata.name: release-name-kube-state-metrics (kind: Deployment)
  • metadata.name: release-name-kube-promethe-operator (kind: Deployment)
  • metadata.name: release-name-grafana-test (kind: Pod)
  • metadata.name: release-name-kube-promethe-admission-create (kind: Job)
  • metadata.name: release-name-kube-promethe-admission-patch (kind: Job)

💡 Missing property object `limits.memory` - value should be within the accepted boundaries recommended by the organization

Learn how to fix the issue here

❌ Prevent ConfigMap security vulnerability (CVE-2021-25742)

29 occurrences:

  • metadata.name: release-name-grafana-config-dashboards (kind: ConfigMap)
  • metadata.name: release-name-grafana (kind: ConfigMap)
  • metadata.name: release-name-grafana-test (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-grafana-datasource (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-alertmanager-overview (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-apiserver (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-cluster-total (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-controller-manager (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-etcd (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-grafana-overview (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-k8s-coredns (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-k8s-resources-cluster (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-k8s-resources-namespace (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-k8s-resources-node (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-k8s-resources-pod (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-k8s-resources-workload (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-k8s-resources-workloads-namespace (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-kubelet (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-namespace-by-pod (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-namespace-by-workload (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-node-cluster-rsrc-use (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-node-rsrc-use (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-nodes (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-persistentvolumesusage (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-pod-total (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-prometheus (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-proxy (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-scheduler (kind: ConfigMap)
  • metadata.name: release-name-kube-promethe-workload-total (kind: ConfigMap)

💡 Missing property object `allow-snippet-annotations` - set it to "false" to override default behaviour

Learn how to fix the issue here

❌ Ensure each container has a configured CPU request

9 occurrences:

  • metadata.name: release-name-prometheus-node-exporter (kind: DaemonSet)
  • metadata.name: release-name-grafana (kind: Deployment)
  • metadata.name: release-name-kube-state-metrics (kind: Deployment)
  • metadata.name: release-name-kube-promethe-operator (kind: Deployment)
  • metadata.name: release-name-grafana-test (kind: Pod)
  • metadata.name: release-name-kube-promethe-admission-create (kind: Job)
  • metadata.name: release-name-kube-promethe-admission-patch (kind: Job)

💡 Missing property object `requests.cpu` - value should be within the accepted boundaries recommended by the organization

Learn how to fix the issue here

❌ Prevent workload from using the default namespace

7 occurrences:

  • metadata.name: release-name-prometheus-node-exporter (kind: DaemonSet)
  • metadata.name: release-name-grafana (kind: Deployment)
  • metadata.name: release-name-kube-state-metrics (kind: Deployment)
  • metadata.name: release-name-kube-promethe-operator (kind: Deployment)
  • metadata.name: release-name-grafana-test (kind: Pod)
  • metadata.name: release-name-kube-promethe-admission-create (kind: Job)
  • metadata.name: release-name-kube-promethe-admission-patch (kind: Job)

💡 Incorrect value for key `namespace` - use an explicit namespace instead of the default one (`default`)

Learn how to fix the issue here

❌ Ensure each container has a configured readiness probe

6 occurrences:

  • metadata.name: release-name-grafana (kind: Deployment)
  • metadata.name: release-name-kube-promethe-operator (kind: Deployment)
  • metadata.name: release-name-grafana-test (kind: Pod)
  • metadata.name: release-name-kube-promethe-admission-create (kind: Job)
  • metadata.name: release-name-kube-promethe-admission-patch (kind: Job)

💡 Missing property object `readinessProbe` - add a properly configured readinessProbe to notify kubelet your Pods are ready for traffic

Learn how to fix the issue here

❌ Prevent deploying naked pods

1 occurrences:

  • metadata.name: release-name-grafana-test (kind: Pod)

💡 Incorrect value for key `kind` - raw pod won't be rescheduled in the event of a node failure

Learn how to fix the issue here

This is some text inside of a div block.
This is some text inside of a div block.

Reveal misconfigurations within minutes

3 Quick Steps to Get Started