跳转至

Prometheus Operator Admission Webhook

The admission webhook service is able to

  • Validate requests ensuring that PrometheusRule and AlertmanagerConfig objects are semantically valid
  • Mutate requests enforcing that all annotations of PrometheusRule objects are coerced into string values
  • Convert AlertmanagerConfig objects between v1alpha1 and v1beta1 versions

For more info, please, see the Prometheus Operator documentation.

Prerequisites

  • Kubernetes 1.13+ with Beta APIs enabled
  • Helm 3

Get Repository Info

helm repo add prometheus-community https://helm-charts.itboon.top/prometheus-community
helm repo update

See helm repo for command documentation.

Install Chart

helm install [RELEASE_NAME] prometheus-community/prometheus-operator-admission-webhook

See configuration below.

See helm install for command documentation.

Uninstall Chart

helm uninstall [RELEASE_NAME]

This removes all the Kubernetes components associated with the chart and deletes the release.

See helm uninstall for command documentation.

Upgrading Chart

helm upgrade [RELEASE_NAME] prometheus-community/prometheus-operator-admission-webhook --install

See helm upgrade for command documentation.

To 0.4

Application version has been bumped to release 0.65.1.

helm upgrade [RELEASE_NAME] prometheus-community/prometheus-operator-admission-webhook --version 0.4.0

To 0.3

Generation of blank lines present in some manifests in metadata.labels has been prevented and the blank lines thus removed.

Missing indentation has been corrected in the networkpolicy template.

An icon has been added to the chart in Chart.yaml.

Unused value networkPolicy.allowMonitoringNamespace has been removed from the values file.

helm upgrade [RELEASE_NAME] prometheus-community/prometheus-operator-admission-webhook --version 0.3.0

Configuration

See Customizing the Chart Before Installing.

To see all configurable options with detailed comments, visit the chart's values.yaml, or run these configuration commands:

helm show values prometheus-community/prometheus-operator-admission-webhook