Commit Graph

395 Commits

Author SHA1 Message Date
Lucas Serven
d1cd951903 *: regenerate 2018-07-23 13:28:14 +02:00
Ali Rizwan
d728ab5511 Only alert for nodes that currently exist (#1661) 2018-07-23 12:20:54 +02:00
Max Inden
06df9fb67d bundle.yaml: Bump Prometheus Operator memory request and limit (#1622)
When handling big Kubernetes objects, marshalling objects is memory
intense. This can be reproduced with the end-to-end test
`TestPrometheusRulesExceedingConfigMapLimit`. This patch doubles the
memory request and limit of the Prometheus Operator deployment to 100mb
and 200mb.
2018-07-20 15:09:17 +02:00
Lucas Serven
0df7d4ccdf Merge branch 'master' into r-22 2018-07-20 11:59:50 +02:00
Lucas Serven
55dbef6f43 *: cut 0.22.1 2018-07-19 17:19:22 +02:00
Lucas Serven
4d2cddad54 contrib: regenerate 2018-07-19 16:05:34 +02:00
Frederic Branczyk
ade7b88d65 Update jsonnet dependencies 2018-07-18 10:25:09 +02:00
Frederic Branczyk
b1f4e9136d Merge pull request #1616 from directionless/adjustable-kube-state-metrics
Configure kube-state-metrics
2018-07-17 20:13:23 +02:00
Frederic Branczyk
04cf9ce35a *: Re-generate 2018-07-17 19:49:42 +02:00
Max Inden
efe686c0c0 security: Enforce nobody user and read only / (#1393)
* Make the Prometheus Operator Docker image run as `nobody` by default.
* Disallow privilege escalation via K8s
* Enforce read only root filesystem
2018-07-17 15:11:46 +02:00
Max Inden
dabfca595b Makefile: Properly rebuild po-docgen on src changes (#1625) 2018-07-17 15:10:38 +02:00
Max Leonard Inden
4083705edf *: Cut 0.22.0 2018-07-10 13:41:50 +02:00
Frederic Branczyk
9ec8ae65ee *: Allow settings custom tags of container images 2018-07-09 13:23:00 +02:00
Frederic Branczyk
9c26600e0a *: Fix CRD generation 2018-07-02 16:54:56 +02:00
Frederic Branczyk
171b7c41e1 *: Re-generate 2018-07-02 10:54:27 +02:00
Tamal Saha
0de5a5c8cd Update client libraries to Kubernetes 1.11 2018-07-01 09:23:00 -07:00
Frederic Branczyk
2a96d77dd9 kube-prometheus: Re-generate Grafana jsonnet dependency 2018-06-28 17:31:58 +02:00
Frederic Branczyk
dd834f3128 kube-prometheus: Re-generate dashboards 2018-06-28 13:44:51 +02:00
Frederic Branczyk
fad7e6ed35 *: Bump version to v0.21.0 2018-06-28 11:40:53 +02:00
Frederic Branczyk
f434ee9ae9 kube-prometheus: Regenerate prometheus CRD 2018-06-27 10:24:33 +02:00
Frederic Branczyk
6312998080 kube-prometheus: Bump various versions 2018-06-25 13:48:36 +02:00
Frederic Branczyk
4b6a761dc5 kube-prometheus: Update kubernetes monitoring mixing 2018-06-18 14:28:19 +02:00
Max Leonard Inden
603771ff14 kube-prometheus: Run node-exporter in host network
Node exporter needs to run in the host network, not in the pod network
in order to pick up network metrics of the node.
2018-06-15 11:47:51 +02:00
Frederic Branczyk
3446f3cf25 Merge pull request #1466 from brancz/dashboard-cms
kube-prometheus: Use 1 ConfigMap per Grafana dashboard
2018-06-12 11:52:25 +02:00
Frederic Branczyk
f81bdd8928 kube-prometheus: Use 1 ConfigMap per Grafana dashboard 2018-06-12 10:02:11 +02:00
Frederic Branczyk
30b84794d7 Merge pull request #1433 from atopuzov/ignore_etc_files
NodeDiskRunningFull ignore etc files mountpoints
2018-06-11 15:44:39 +02:00
Frederic Branczyk
62fa823e3e kube-prometheus: Add docs on how to set Alertmanager configuration 2018-06-07 11:53:37 +02:00
Frederic Branczyk
1d5623d4a0 kube-prometheus: Extract prometheus-operator jsonnet out of contrib 2018-06-06 18:01:32 +02:00
Aleksandar Topuzovic
acb7ce62bf Commit generated files 2018-06-05 15:05:41 +01:00
Max Leonard Inden
c13b0556ba *: Bump version to v0.20.0 2018-06-05 15:07:17 +02:00
Frederic Branczyk
9b4f6ce56b *: Remove PrometheusRuleSelector 2018-06-05 13:59:31 +02:00
Frederic Branczyk
e84b101fe7 *: Rename RuleFile to PrometheusRule 2018-06-05 13:34:13 +02:00
Max Leonard Inden
8f3b505049 kube-prometheus: Adjust to new Prometheus rule file CRD
89fc4e306972604eba2dcb961a6d29cc27a668ad introduced the new Prometheus
rule file custom resource definition. This patch adjusts the
kube-prometheus project to use the new custom resource definition.
2018-06-04 20:23:02 +02:00
Frederic Branczyk
b7d0da01d5 kube-prometheus: Remove unnecessary namespace selectors 2018-05-31 17:37:43 +02:00
Frederic Branczyk
10bbf403fe Merge pull request #1404 from mxinden/rm-tpr
rbac: Remove Third Party Resources rules
2018-05-31 15:40:36 +02:00
Max Leonard Inden
553d6b0c63 rbac: Remove Third Party Resources rules
Since PR 460 [1] the Prometheus Operator is using Kubernetes Custom Resource
Definitions instead of Kubernetes Third Party Resources. Permissions to
handle Third Party Resources in the RBAC rules of the Prometheus
Operator is thereby obsolete.

[1] https://github.com/coreos/prometheus-operator/pull/460
2018-05-31 15:12:15 +02:00
slene
49c76ac80f update generated kube-prometheus manifests 2018-05-31 18:59:44 +08:00
Frederic Branczyk
4ba6995481 Merge pull request #1399 from mxinden/rule-file-live-migration
prometheus: Enable live migration of rule configmaps to rule file crds
2018-05-31 11:47:55 +02:00
Max Leonard Inden
453e170f6a prometheus: Enable live migration of rule configmaps to rule file crds
With this patch the Prometheus Operator checks if there are any
Kubernetes ConfigMaps inside the Prometheus namespace which fullfill the
`Spec.RuleSelector` requirement. If so, it creates a RuleFile for each
key in the `ConfigMap.Spec.Data` map inside the Prometheus namespace.
2018-05-31 10:47:50 +02:00
Frederic Branczyk
b405326bfc Merge pull request #1386 from nickman/master
Adds proxy_url to v1.Endpoint. Fixes #1385
2018-05-30 14:17:24 +02:00
Nicholas Whitehead
7eee585cdf Adds proxy_url to v1.Endpoint. Fixes #1385 2018-05-30 05:20:21 -04:00
Frederic Branczyk
64db049d3a kube-prometheus: Migrate kube-prometheus alerts to jsonnet 2018-05-29 11:06:59 +02:00
Frederic Branczyk
c11db46863 kube-prometheus: Re-generate 2018-05-25 17:01:41 +02:00
Joshua Olson
3605c0eb44 Also checking in the changes made to prometheus-rules.yaml by "make generate", in order to (hopefully) get the build to be green. 2018-05-24 16:53:32 -05:00
Joshua Olson
2b81c0090b After modifying prometheus-operator.libsonnet (see commit ec19c16), these are the changes that were made to 0prometheus-operator-clusterRole.yaml by running "make generate". 2018-05-24 16:35:19 -05:00
Max Leonard Inden
9e180452f8 prometheus: Introduce RuleFile Custom Resource Definition
This patch introduces a new Custom Resource Definition to the
Prometheus Operator - the Rule CRD. It addresses two main
needs:

1. Prometheus (alerting and recording) Rule validation during creation time
via Kubernetes Custom Resource Definition validation.

2. Life-cycle management of Prometheus application Rules alongside the
application itself, inside the applications Kubernetes namespace, not
necessarily the namespace of the scraping Prometheus instance.

A user defines Prometheus alerting and recording Rules via a Kubernetes
Custom Resource Definition. These Custom Resource Definitions can be
fully validated by the Kubernetes API server during creation time via
automatically generated OpenAPI specifications. Instead of the
restriction of a Prometheus instance to only select Rule definitions
inside its own namespace, the Prometheus specification is extended to
also specify namespaces to look for Rule Custom Resource Definitions
outside its own namespace.

---

Dependent technical changes:

- prometheus: Use github.com/jimmidyson/configmap-reload to reload rules

- prometheus: Remove Prometheus Statefulset deletion function. Starting
with K8s >=1.8 this is handled via OwnerReferences.

- prometheus: Do not add rule files checksum to Prometheus configuration
secret

- prometheus: Update StatefulSet only on relevant changes. Instead of
updating the Prometheus StatefulSet on every `sync()` run, only update
it if the input parameters to `makeStatefulSet` change.  Enforce this
via a checksum of the parameters which is saved inside the annotations
of the statefulset.

- e2e/prometheus: Check how often resources (Secret, ConfigMap,
Prometheus CRD, Service) are updated to enforce that Prometheus Operator
only updated created resources if necessary.

- contrib/prometheus-config-reloader: Remove logic to retriev K8s
ConfigMaps. These are mounted into the pod right away now.
2018-05-18 16:27:20 +02:00
Giancarlo Rubio
2a6b3db38b Fix CI running make generate (#1327) 2018-05-10 17:50:14 +02:00
Frederic Branczyk
116aaf88be kube-prometheus: regenerate 2018-05-08 07:36:13 -07:00
Frederic Branczyk
3388f96afe Address comments 2018-05-06 08:29:52 -07:00
Frederic Branczyk
edf21e4382 kube-prometheus/jsonnet: Use jsonnet-bundler 2018-04-28 19:05:19 +01:00