update blackbox_exporter to 0.17.0 (#12)

* update blackbox_exporter to 0.17.0

Signed-off-by: Christian Kotzbauer <christian.kotzbauer@gmail.com>

* switch newlines

Signed-off-by: Christian Kotzbauer <christian.kotzbauer@gmail.com>

* fixed more lint errors

Signed-off-by: Christian Kotzbauer <christian.kotzbauer@gmail.com>

* remove trailing spaces

Signed-off-by: Christian Kotzbauer <christian.kotzbauer@gmail.com>
This commit is contained in:
Christian Kotzbauer 2020-06-29 19:17:42 +02:00 committed by GitHub
parent a81a545856
commit 88fcc1ad2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 110 additions and 112 deletions

View File

@ -1,16 +1,16 @@
apiVersion: v1 apiVersion: v1
description: Prometheus Blackbox Exporter description: Prometheus Blackbox Exporter
name: prometheus-blackbox-exporter name: prometheus-blackbox-exporter
version: 1.0.1 version: 1.0.2
appVersion: 0.16.0 appVersion: 0.17.0
home: https://github.com/prometheus/blackbox_exporter home: https://github.com/prometheus/blackbox_exporter
sources: sources:
- https://github.com/prometheus/blackbox_exporter - https://github.com/prometheus/blackbox_exporter
- https://github.com/ckotzbauer/helm-charts - https://github.com/ckotzbauer/helm-charts
keywords: keywords:
- prometheus - prometheus
- blackbox - blackbox
- monitoring - monitoring
maintainers: maintainers:
- name: ckotzbauer - name: ckotzbauer
email: christian.kotzbauer@gmail.com email: christian.kotzbauer@gmail.com

View File

@ -1,93 +1,93 @@
# Prometheus Blackbox Exporter # Prometheus Blackbox Exporter
Prometheus exporter for blackbox testing Prometheus exporter for blackbox testing
Learn more: [https://github.com/prometheus/blackbox_exporter](https://github.com/prometheus/blackbox_exporter) Learn more: [https://github.com/prometheus/blackbox_exporter](https://github.com/prometheus/blackbox_exporter)
## TL;DR; ## TL;DR;
```bash ```bash
$ helm install ckotzbauer/prometheus-blackbox-exporter $ helm install ckotzbauer/prometheus-blackbox-exporter
``` ```
## Introduction ## Introduction
This chart creates a Blackbox-Exporter deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. This chart creates a Blackbox-Exporter deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
## Prerequisites ## Prerequisites
- Kubernetes 1.14+ with Beta APIs enabled - Kubernetes 1.14+ with Beta APIs enabled
## Installing the Chart ## Installing the Chart
To install the chart with the release name `my-release`: To install the chart with the release name `my-release`:
```bash ```bash
$ helm install --name my-release ckotzbauer/prometheus-blackbox-exporter $ helm install --name my-release ckotzbauer/prometheus-blackbox-exporter
``` ```
The command deploys Blackbox Exporter on the Kubernetes cluster using the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation. The command deploys Blackbox Exporter on the Kubernetes cluster using the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation.
## Uninstalling the Chart ## Uninstalling the Chart
To uninstall/delete the `my-release` deployment: To uninstall/delete the `my-release` deployment:
```bash ```bash
$ helm delete my-release $ helm delete my-release
``` ```
The command removes all the Kubernetes components associated with the chart and deletes the release. The command removes all the Kubernetes components associated with the chart and deletes the release.
## Configuration ## Configuration
The following table lists the configurable parameters of the Blackbox-Exporter chart and their default values. The following table lists the configurable parameters of the Blackbox-Exporter chart and their default values.
| Parameter | Description | Default | | Parameter | Description | Default |
| -------------------------------------- | ------------------------------------------------- | ----------------------------- | | -------------------------------------- | ------------------------------------------------- | ----------------------------- |
| `config` | Prometheus blackbox configuration | {} | | `config` | Prometheus blackbox configuration | {} |
| `secretConfig` | Whether to treat blackbox configuration as secret | `false` | | `secretConfig` | Whether to treat blackbox configuration as secret | `false` |
| `extraArgs` | Optional flags for blackbox | `[]` | | `extraArgs` | Optional flags for blackbox | `[]` |
| `extraConfigmapMounts` | Additional configmap mounts | `[]` | | `extraConfigmapMounts` | Additional configmap mounts | `[]` |
| `extraSecretMounts` | Additional secret mounts | `[]` | | `extraSecretMounts` | Additional secret mounts | `[]` |
| `image.repository` | container image repository | `prom/blackbox-exporter` | | `image.repository` | container image repository | `prom/blackbox-exporter` |
| `image.tag` | container image tag | `v0.15.1` | | `image.tag` | container image tag | `v0.17.0` |
| `image.pullPolicy` | container image pull policy | `IfNotPresent` | | `image.pullPolicy` | container image pull policy | `IfNotPresent` |
| `image.pullSecrets` | container image pull secrets | `[]` | | `image.pullSecrets` | container image pull secrets | `[]` |
| `ingress.annotations` | Ingress annotations | None | | `ingress.annotations` | Ingress annotations | None |
| `ingress.enabled` | Enables Ingress | `false` | | `ingress.enabled` | Enables Ingress | `false` |
| `ingress.hosts` | Ingress accepted hostnames | None | | `ingress.hosts` | Ingress accepted hostnames | None |
| `ingress.tls` | Ingress TLS configuration | None | | `ingress.tls` | Ingress TLS configuration | None |
| `nodeSelector` | node labels for pod assignment | `{}` | | `nodeSelector` | node labels for pod assignment | `{}` |
| `runAsUser` | User to run blackbox-exporter container as | `1000` | | `runAsUser` | User to run blackbox-exporter container as | `1000` |
| `readOnlyRootFilesystem` | Set blackbox-exporter file-system to read-only | `true` | | `readOnlyRootFilesystem` | Set blackbox-exporter file-system to read-only | `true` |
| `runAsNonRoot` | Run blackbox-exporter as non-root | `true` | | `runAsNonRoot` | Run blackbox-exporter as non-root | `true` |
| `tolerations` | node tolerations for pod assignment | `[]` | | `tolerations` | node tolerations for pod assignment | `[]` |
| `affinity` | node affinity for pod assignment | `{}` | | `affinity` | node affinity for pod assignment | `{}` |
| `podAnnotations` | annotations to add to each pod | `{}` | | `podAnnotations` | annotations to add to each pod | `{}` |
| `podDisruptionBudget` | pod disruption budget | `{}` | | `podDisruptionBudget` | pod disruption budget | `{}` |
| `priorityClassName` | priority class name | None | | `priorityClassName` | priority class name | None |
| `resources` | pod resource requests & limits | `{}` | | `resources` | pod resource requests & limits | `{}` |
| `restartPolicy` | container restart policy | `Always` | | `restartPolicy` | container restart policy | `Always` |
| `service.annotations` | annotations for the service | `{}` | | `service.annotations` | annotations for the service | `{}` |
| `service.labels` | additional labels for the service | None | | `service.labels` | additional labels for the service | None |
| `service.type` | type of service to create | `ClusterIP` | | `service.type` | type of service to create | `ClusterIP` |
| `service.port` | port for the blackbox http service | `9115` | | `service.port` | port for the blackbox http service | `9115` |
| `service.externalIPs` | list of external ips | [] | | `service.externalIPs` | list of external ips | [] |
| `serviceMonitors` | ServiceMonitor CRDs to create for prometheus operator | `[]` | | `serviceMonitors` | ServiceMonitor CRDs to create for prometheus operator | `[]` |
| `strategy` | strategy used to replace old Pods with new ones | `{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0},"type":"RollingUpdate"}` | | `strategy` | strategy used to replace old Pods with new ones | `{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0},"type":"RollingUpdate"}` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
```bash ```bash
$ helm install --name my-release \ $ helm install --name my-release \
--set key_1=value_1,key_2=value_2 \ --set key_1=value_1,key_2=value_2 \
ckotzbauer/prometheus-blackbox-exporter ckotzbauer/prometheus-blackbox-exporter
``` ```
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example, Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
```bash ```bash
# example for staging # example for staging
$ helm install --name my-release -f values.yaml ckotzbauer/prometheus-blackbox-exporter $ helm install --name my-release -f values.yaml ckotzbauer/prometheus-blackbox-exporter
``` ```
> **Tip**: You can use the default [values.yaml](values.yaml) > **Tip**: You can use the default [values.yaml](values.yaml)

View File

@ -11,13 +11,12 @@ strategy:
image: image:
repository: prom/blackbox-exporter repository: prom/blackbox-exporter
tag: v0.16.0 tag: v0.17.0
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets. ## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace. ## Secrets must be manually created in the namespace.
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##
# pullSecrets: # pullSecrets:
# - myRegistrKeySecretName # - myRegistrKeySecretName
@ -98,7 +97,6 @@ replicas: 1
serviceMonitors: [] serviceMonitors: []
## If any, ServiceMonitor CRDs are created for a prometheus operator ## If any, ServiceMonitor CRDs are created for a prometheus operator
## https://github.com/coreos/prometheus-operator ## https://github.com/coreos/prometheus-operator
##
## - name: example-com ## - name: example-com
## labels: {} ## labels: {}
## interval: 30s ## interval: 30s