Skip to content

Commit 77f948e

Browse files
Merge pull request #2078 from rexagod/2858
MON-3163: support VPAs
2 parents 91a3821 + 30dd1d7 commit 77f948e

File tree

63 files changed

+5585
-58
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+5585
-58
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- [#2302](https://github.com/openshift/cluster-monitoring-operator/issues/2302) Enable feature `extra-scrape-metrics` in Prometheus user-workload
66
- [#2319](https://github.com/openshift/cluster-monitoring-operator/pull/2319) Allow read-only access to the Alertmanager API (use `monitoring-alertmanager-view`).
7+
- [#2078](https://github.com/openshift/cluster-monitoring-operator/pull/2078) Support exporting VPA metrics from KSM.
78

89
## 4.15
910

Documentation/deps-versions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
| OCP Version | alertmanager | kubeRbacProxy | kubeStateMetrics | kubernetesMetricsServer | monitoringPlugin | nodeExporter | promLabelProxy | prometheus | prometheusAdapter | prometheusOperator | thanos |
22
|--------------|----------------------------------------------------------------------------------|--------------------------------------------------------------------------|-----------------------------------------------------------------------------|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------|-----------------------------------------------------------------------|--------------------------------------------------------------------------|---------------------------------------------------------------------|---------------------------------------------------------------------------------|------------------------------------------------------------------------------|-----------------------------------------------------------------|
3-
| release-4.17 | [0.26.0](https://github.com/openshift/prometheus-alertmanager/blob/release-4.17) | [0.15.0](https://github.com/openshift/kube-rbac-proxy/blob/release-4.17) | [2.12.0](https://github.com/openshift/kube-state-metrics/blob/release-4.17) | [0.7.1](https://github.com/openshift/kubernetes-metrics-server/blob/release-4.17) | [1.0.0](https://github.com/openshift/monitoring-plugin/blob/release-4.17) | [1.7.0](https://github.com/openshift/node_exporter/blob/release-4.17) | [0.8.1](https://github.com/openshift/prom-label-proxy/blob/release-4.17) | [2.51.2](https://github.com/openshift/prometheus/blob/release-4.17) | [0.11.2](https://github.com/openshift/k8s-prometheus-adapter/blob/release-4.17) | [0.73.1](https://github.com/openshift/prometheus-operator/blob/release-4.17) | [0.34.1](https://github.com/openshift/thanos/blob/release-4.17) |
4-
| release-4.16 | [0.26.0](https://github.com/openshift/prometheus-alertmanager/blob/release-4.16) | [0.15.0](https://github.com/openshift/kube-rbac-proxy/blob/release-4.16) | [2.12.0](https://github.com/openshift/kube-state-metrics/blob/release-4.16) | [0.7.1](https://github.com/openshift/kubernetes-metrics-server/blob/release-4.16) | [1.0.0](https://github.com/openshift/monitoring-plugin/blob/release-4.16) | [1.7.0](https://github.com/openshift/node_exporter/blob/release-4.16) | [0.8.1](https://github.com/openshift/prom-label-proxy/blob/release-4.16) | [2.51.2](https://github.com/openshift/prometheus/blob/release-4.16) | [0.11.2](https://github.com/openshift/k8s-prometheus-adapter/blob/release-4.16) | [0.73.1](https://github.com/openshift/prometheus-operator/blob/release-4.16) | [0.34.1](https://github.com/openshift/thanos/blob/release-4.16) |
3+
| release-4.17 | [0.26.0](https://github.com/openshift/prometheus-alertmanager/blob/release-4.17) | [0.15.0](https://github.com/openshift/kube-rbac-proxy/blob/release-4.17) | [2.12.0](https://github.com/openshift/kube-state-metrics/blob/release-4.17) | [0.7.1](https://github.com/openshift/kubernetes-metrics-server/blob/release-4.17) | [1.0.0](https://github.com/openshift/monitoring-plugin/blob/release-4.17) | [1.7.0](https://github.com/openshift/node_exporter/blob/release-4.17) | [0.8.1](https://github.com/openshift/prom-label-proxy/blob/release-4.17) | [2.51.2](https://github.com/openshift/prometheus/blob/release-4.17) | [0.11.2](https://github.com/openshift/k8s-prometheus-adapter/blob/release-4.17) | [0.73.2](https://github.com/openshift/prometheus-operator/blob/release-4.17) | [0.34.1](https://github.com/openshift/thanos/blob/release-4.17) |
4+
| release-4.16 | [0.26.0](https://github.com/openshift/prometheus-alertmanager/blob/release-4.16) | [0.15.0](https://github.com/openshift/kube-rbac-proxy/blob/release-4.16) | [2.12.0](https://github.com/openshift/kube-state-metrics/blob/release-4.16) | [0.7.1](https://github.com/openshift/kubernetes-metrics-server/blob/release-4.16) | [1.0.0](https://github.com/openshift/monitoring-plugin/blob/release-4.16) | [1.7.0](https://github.com/openshift/node_exporter/blob/release-4.16) | [0.8.1](https://github.com/openshift/prom-label-proxy/blob/release-4.16) | [2.51.2](https://github.com/openshift/prometheus/blob/release-4.16) | [0.11.2](https://github.com/openshift/k8s-prometheus-adapter/blob/release-4.16) | [0.73.2](https://github.com/openshift/prometheus-operator/blob/release-4.16) | [0.34.1](https://github.com/openshift/thanos/blob/release-4.16) |
55
| release-4.15 | [0.26.0](https://github.com/openshift/prometheus-alertmanager/blob/release-4.15) | [0.15.0](https://github.com/openshift/kube-rbac-proxy/blob/release-4.15) | [2.10.1](https://github.com/openshift/kube-state-metrics/blob/release-4.15) | [0.6.4](https://github.com/openshift/kubernetes-metrics-server/blob/release-4.15) | [1.0.0](https://github.com/openshift/monitoring-plugin/blob/release-4.15) | [1.7.0](https://github.com/openshift/node_exporter/blob/release-4.15) | [0.7.0](https://github.com/openshift/prom-label-proxy/blob/release-4.15) | [2.48.0](https://github.com/openshift/prometheus/blob/release-4.15) | [0.11.2](https://github.com/openshift/k8s-prometheus-adapter/blob/release-4.15) | [0.70.0](https://github.com/openshift/prometheus-operator/blob/release-4.15) | [0.32.5](https://github.com/openshift/thanos/blob/release-4.15) |
66
| release-4.14 | [0.25.0](https://github.com/openshift/prometheus-alertmanager/blob/release-4.14) | [0.15.0](https://github.com/openshift/kube-rbac-proxy/blob/release-4.14) | [2.9.2](https://github.com/openshift/kube-state-metrics/blob/release-4.14) | [0.6.4](https://github.com/openshift/kubernetes-metrics-server/blob/release-4.14) | [1.0.0](https://github.com/openshift/monitoring-plugin/blob/release-4.14) | [1.6.1](https://github.com/openshift/node_exporter/blob/release-4.14) | [0.7.0](https://github.com/openshift/prom-label-proxy/blob/release-4.14) | [2.46.0](https://github.com/openshift/prometheus/blob/release-4.14) | [0.10.0](https://github.com/openshift/k8s-prometheus-adapter/blob/release-4.14) | [0.67.1](https://github.com/openshift/prometheus-operator/blob/release-4.14) | [0.30.2](https://github.com/openshift/thanos/blob/release-4.14) |
77
| release-4.13 | [0.25.0](https://github.com/openshift/prometheus-alertmanager/blob/release-4.13) | [0.15.0](https://github.com/openshift/kube-rbac-proxy/blob/release-4.13) | [2.8.1](https://github.com/openshift/kube-state-metrics/blob/release-4.13) | N/A | N/A | [1.5.0](https://github.com/openshift/node_exporter/blob/release-4.13) | [0.6.0](https://github.com/openshift/prom-label-proxy/blob/release-4.13) | [2.42.0](https://github.com/openshift/prometheus/blob/release-4.13) | [0.10.0](https://github.com/openshift/k8s-prometheus-adapter/blob/release-4.13) | [0.63.0](https://github.com/openshift/prometheus-operator/blob/release-4.13) | [0.30.2](https://github.com/openshift/thanos/blob/release-4.13) |

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ PKGS=$(shell go list ./... | grep -v /test/e2e)
1717
GOLANG_FILES:=$(shell find . -name \*.go -print)
1818
# NOTE: grep -v %.yaml is needed because "%s-policy.yaml" is used
1919
# in manifest.go and that isn't a valid asset.
20+
# NOTE: Certain paths included in the manifest.go file are not valid
21+
# asset paths and should be excluded from the list of assets. These
22+
# paths are:
23+
# - /etc/
2024
ASSETS=$(shell grep -oh '[^"]*/.*\.yaml' pkg/manifests/manifests.go \
25+
| grep -v '^/etc' \
2126
| grep -v '%.*yaml' | sed 's/^/assets\//')
2227

2328
BIN_DIR ?= $(shell pwd)/tmp/bin

assets/admission-webhook/deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
app.kubernetes.io/managed-by: cluster-monitoring-operator
66
app.kubernetes.io/name: prometheus-operator-admission-webhook
77
app.kubernetes.io/part-of: openshift-monitoring
8-
app.kubernetes.io/version: 0.73.1
8+
app.kubernetes.io/version: 0.73.2
99
name: prometheus-operator-admission-webhook
1010
namespace: openshift-monitoring
1111
spec:
@@ -26,7 +26,7 @@ spec:
2626
app.kubernetes.io/managed-by: cluster-monitoring-operator
2727
app.kubernetes.io/name: prometheus-operator-admission-webhook
2828
app.kubernetes.io/part-of: openshift-monitoring
29-
app.kubernetes.io/version: 0.73.1
29+
app.kubernetes.io/version: 0.73.2
3030
spec:
3131
affinity:
3232
podAntiAffinity:
@@ -46,7 +46,7 @@ spec:
4646
- --web.key-file=/etc/tls/private/tls.key
4747
- --web.tls-cipher-suites=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305
4848
- --web.tls-min-version=VersionTLS12
49-
image: quay.io/prometheus-operator/admission-webhook:v0.73.1
49+
image: quay.io/prometheus-operator/admission-webhook:v0.73.2
5050
livenessProbe:
5151
httpGet:
5252
path: /healthz

assets/admission-webhook/pod-disruption-budget.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
app.kubernetes.io/managed-by: cluster-monitoring-operator
66
app.kubernetes.io/name: prometheus-operator-admission-webhook
77
app.kubernetes.io/part-of: openshift-monitoring
8-
app.kubernetes.io/version: 0.73.1
8+
app.kubernetes.io/version: 0.73.2
99
name: prometheus-operator-admission-webhook
1010
namespace: openshift-monitoring
1111
spec:

assets/admission-webhook/service-account.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ metadata:
66
app.kubernetes.io/managed-by: cluster-monitoring-operator
77
app.kubernetes.io/name: prometheus-operator-admission-webhook
88
app.kubernetes.io/part-of: openshift-monitoring
9-
app.kubernetes.io/version: 0.73.1
9+
app.kubernetes.io/version: 0.73.2
1010
name: prometheus-operator-admission-webhook
1111
namespace: openshift-monitoring

assets/admission-webhook/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
app.kubernetes.io/managed-by: cluster-monitoring-operator
99
app.kubernetes.io/name: prometheus-operator-admission-webhook
1010
app.kubernetes.io/part-of: openshift-monitoring
11-
app.kubernetes.io/version: 0.73.1
11+
app.kubernetes.io/version: 0.73.2
1212
name: prometheus-operator-admission-webhook
1313
namespace: openshift-monitoring
1414
spec:

assets/kube-state-metrics/cluster-role.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,18 @@ rules:
128128
verbs:
129129
- list
130130
- watch
131+
- apiGroups:
132+
- autoscaling.k8s.io
133+
resources:
134+
- verticalpodautoscalers
135+
verbs:
136+
- list
137+
- watch
138+
- apiGroups:
139+
- apiextensions.k8s.io
140+
resources:
141+
- customresourcedefinitions
142+
verbs:
143+
- get
144+
- list
145+
- watch

0 commit comments

Comments
 (0)