Skip to content

Commit

Permalink
Merge pull request #626 from s-urbaniak/release-0.6
Browse files Browse the repository at this point in the history
pin release0.6 release
  • Loading branch information
s-urbaniak authored Jul 31, 2020
2 parents f0955e0 + 2932a74 commit 7d5d6d6
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 55 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ $ minikube addons disable metrics-server

The following versions are supported and work as we test against these versions in their respective branches. But note that other versions might work!

| kube-prometheus stack | Kubernetes 1.14 | Kubernetes 1.15 | Kubernetes 1.16 | Kubernetes 1.17 | Kubernetes 1.18 |
|-----------------------|-----------------|-----------------|-----------------|-----------------|-----------------|
| `release-0.3` | ✔ | ✔ | ✔ | ✔ | ✗
| `release-0.4` | ✗ | ✗ | ✔ (v1.16.5+) | ✔ | ✗
| `release-0.5` | ✗ | ✗ | ✗ | ✗ | ✔
| `HEAD` | ✗ | ✗ | ✗ | ✗ | ✔
| kube-prometheus stack | Kubernetes 1.14 | Kubernetes 1.15 | Kubernetes 1.16 | Kubernetes 1.17 | Kubernetes 1.18 | Kubernetes 1.19 |
|-----------------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|
| `release-0.3` |||||||
| `release-0.4` ||| ✔ (v1.16.5+) ||||
| `release-0.5` |||||||
| `release-0.6` |||||||
| `HEAD` |||||||

Note: Due to [two](https://github.com/kubernetes/kubernetes/issues/83778) [bugs](https://github.com/kubernetes/kubernetes/issues/86359) in Kubernetes v1.16.1, and prior to Kubernetes v1.16.5 the kube-prometheus release-0.4 branch only supports v1.16.5 and higher. The `extension-apiserver-authentication-reader` role in the kube-system namespace can be manually edited to include list and watch permissions in order to workaround the second issue with Kubernetes v1.16.2 through v1.16.4.

Expand Down
8 changes: 4 additions & 4 deletions jsonnet/kube-prometheus/jsonnetfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"subdir": "grafana"
}
},
"version": "master"
"version": "release-0.1"
},
{
"source": {
Expand Down Expand Up @@ -54,7 +54,7 @@
"subdir": "jsonnet/kube-state-metrics"
}
},
"version": "master"
"version": "release-1.9"
},
{
"source": {
Expand All @@ -63,7 +63,7 @@
"subdir": "jsonnet/kube-state-metrics-mixin"
}
},
"version": "master"
"version": "release-1.9"
},
{
"source": {
Expand All @@ -81,7 +81,7 @@
"subdir": "documentation/prometheus-mixin"
}
},
"version": "master",
"version": "release-2.20",
"name": "prometheus"
}
],
Expand Down
50 changes: 25 additions & 25 deletions jsonnetfile.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"source": {
"git": {
"remote": "https://github.com/brancz/kubernetes-grafana.git",
"remote": "https://github.com/brancz/kubernetes-grafana",
"subdir": "grafana"
}
},
Expand All @@ -14,17 +14,17 @@
{
"source": {
"git": {
"remote": "https://github.com/coreos/etcd.git",
"remote": "https://github.com/coreos/etcd",
"subdir": "Documentation/etcd-mixin"
}
},
"version": "d0e4fe56a5dbe0dddfe7caf0449ac9080f3043d4",
"sum": "5FmNgO4EumOVW5gIG41hb8JNYRC3S0dDfOTe+KD/sWY="
"version": "cc564110bddeadc1d806ef0698745be702cb17ea",
"sum": "Uv8ysXlEACF7BafoCkHnrBmJ2AHh/VldI5mm3BuMiy0="
},
{
"source": {
"git": {
"remote": "https://github.com/coreos/prometheus-operator.git",
"remote": "https://github.com/coreos/prometheus-operator",
"subdir": "jsonnet/prometheus-operator"
}
},
Expand All @@ -34,27 +34,27 @@
{
"source": {
"git": {
"remote": "https://github.com/grafana/grafonnet-lib.git",
"remote": "https://github.com/grafana/grafonnet-lib",
"subdir": "grafonnet"
}
},
"version": "5c6e8a8113486cdecd0961730aeaada3e6c69fe7",
"sum": "tDuuSKE9f4Ew2bjBM33Rs6behLEAzkmKkShSt+jpAak="
"version": "3336c69715f8f7a4d637582504c9fabd9d9ca081",
"sum": "w6zS28Rjs9EzRN/WoLLIdi028BvumxDTyLefYVoql2k="
},
{
"source": {
"git": {
"remote": "https://github.com/grafana/jsonnet-libs.git",
"remote": "https://github.com/grafana/jsonnet-libs",
"subdir": "grafana-builder"
}
},
"version": "f20b163eb12c1a4070c03cd30f292fbf900acf33",
"version": "08a81efce8314b3954665d3616d3ad9e545fa6ff",
"sum": "N65Fv0M2JvFE3GN8ZxP5xh1U5a314ey8geLAioJLzF8="
},
{
"source": {
"git": {
"remote": "https://github.com/ksonnet/ksonnet-lib.git",
"remote": "https://github.com/ksonnet/ksonnet-lib",
"subdir": ""
}
},
Expand All @@ -65,47 +65,47 @@
{
"source": {
"git": {
"remote": "https://github.com/kubernetes-monitoring/kubernetes-mixin.git",
"remote": "https://github.com/kubernetes-monitoring/kubernetes-mixin",
"subdir": ""
}
},
"version": "9d2c182e5f24755b38655eb18f9273f62497a8a0",
"sum": "F1ryMe+ASjHt3QnL58cgo727DqHwvrO6zM7k9r58O2w="
"version": "dc563cbb03da396d23bc49f33d4f7ae28db514a4",
"sum": "ZBRziwnNo3LPC4XhIjpWahz+gT+w3i2+klIcHx2r7d0="
},
{
"source": {
"git": {
"remote": "https://github.com/kubernetes-monitoring/kubernetes-mixin.git",
"remote": "https://github.com/kubernetes-monitoring/kubernetes-mixin",
"subdir": "lib/promgrafonnet"
}
},
"version": "9d2c182e5f24755b38655eb18f9273f62497a8a0",
"version": "dc563cbb03da396d23bc49f33d4f7ae28db514a4",
"sum": "VhgBM39yv0f4bKv8VfGg4FXkg573evGDRalip9ypKbc="
},
{
"source": {
"git": {
"remote": "https://github.com/kubernetes/kube-state-metrics.git",
"remote": "https://github.com/kubernetes/kube-state-metrics",
"subdir": "jsonnet/kube-state-metrics"
}
},
"version": "63228560668e50bf05344c24b15c66269c948e38",
"sum": "cJjGZaLBjcIGrLHZLjRPU9c3KL+ep9rZTb9dbALSKqA="
"version": "eef2b125b5f09d0cc5245c0db897a27c9b74ca9b",
"sum": "zD/pbQLnQq+5hegEelaheHS8mn1h09GTktFO74iwlBI="
},
{
"source": {
"git": {
"remote": "https://github.com/kubernetes/kube-state-metrics.git",
"remote": "https://github.com/kubernetes/kube-state-metrics",
"subdir": "jsonnet/kube-state-metrics-mixin"
}
},
"version": "63228560668e50bf05344c24b15c66269c948e38",
"sum": "o5avaguRsfFwYFNen00ZEsub1x4i8Z/ZZ2QoEjFMff8="
"version": "eef2b125b5f09d0cc5245c0db897a27c9b74ca9b",
"sum": "E1GGavnf9PCWBm4WVrxWnc0FIj72UcbcweqGioWrOdU="
},
{
"source": {
"git": {
"remote": "https://github.com/prometheus/node_exporter.git",
"remote": "https://github.com/prometheus/node_exporter",
"subdir": "docs/node-mixin"
}
},
Expand All @@ -115,11 +115,11 @@
{
"source": {
"git": {
"remote": "https://github.com/prometheus/prometheus.git",
"remote": "https://github.com/prometheus/prometheus",
"subdir": "documentation/prometheus-mixin"
}
},
"version": "9801f52b0a21a22dea6071772a2980eca5368b28",
"version": "e5a06b483527d4fe0704b8fa3a2b475b661c526f",
"sum": "TBq4SL7YsPInARbJqwz25JaBvvAegcnRCsuz3K9niWc=",
"name": "prometheus"
},
Expand Down
9 changes: 1 addition & 8 deletions manifests/kube-state-metrics-clusterRole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ClusterRole
metadata:
labels:
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/version: 1.9.5
app.kubernetes.io/version: v1.9.5
name: kube-state-metrics
rules:
- apiGroups:
Expand Down Expand Up @@ -108,10 +108,3 @@ rules:
verbs:
- list
- watch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- list
- watch
2 changes: 1 addition & 1 deletion manifests/kube-state-metrics-clusterRoleBinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ClusterRoleBinding
metadata:
labels:
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/version: 1.9.5
app.kubernetes.io/version: v1.9.5
name: kube-state-metrics
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
6 changes: 2 additions & 4 deletions manifests/kube-state-metrics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
labels:
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/version: 1.9.5
app.kubernetes.io/version: v1.9.5
name: kube-state-metrics
namespace: monitoring
spec:
Expand All @@ -15,7 +15,7 @@ spec:
metadata:
labels:
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/version: 1.9.5
app.kubernetes.io/version: v1.9.5
spec:
containers:
- args:
Expand All @@ -25,8 +25,6 @@ spec:
- --telemetry-port=8082
image: quay.io/coreos/kube-state-metrics:v1.9.5
name: kube-state-metrics
securityContext:
runAsUser: 65534
- args:
- --logtostderr
- --secure-listen-address=:8443
Expand Down
2 changes: 1 addition & 1 deletion manifests/kube-state-metrics-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Service
metadata:
labels:
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/version: 1.9.5
app.kubernetes.io/version: v1.9.5
name: kube-state-metrics
namespace: monitoring
spec:
Expand Down
2 changes: 1 addition & 1 deletion manifests/kube-state-metrics-serviceAccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/version: 1.9.5
app.kubernetes.io/version: v1.9.5
name: kube-state-metrics
namespace: monitoring
30 changes: 25 additions & 5 deletions manifests/prometheus-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1138,13 +1138,33 @@ spec:
severity: warning
- alert: KubeDaemonSetRolloutStuck
annotations:
message: Only {{ $value | humanizePercentage }} of the desired Pods of DaemonSet
{{ $labels.namespace }}/{{ $labels.daemonset }} are scheduled and ready.
message: DaemonSet {{ $labels.namespace }}/{{ $labels.daemonset }} has not
finished or progressed for at least 15 minutes.
runbook_url: https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-kubedaemonsetrolloutstuck
expr: |
kube_daemonset_status_number_ready{job="kube-state-metrics"}
/
kube_daemonset_status_desired_number_scheduled{job="kube-state-metrics"} < 1.00
(
(
kube_daemonset_status_current_number_scheduled{job="kube-state-metrics"}
!=
kube_daemonset_status_desired_number_scheduled{job="kube-state-metrics"}
) or (
kube_daemonset_status_number_misscheduled{job="kube-state-metrics"}
!=
0
) or (
kube_daemonset_updated_number_scheduled{job="kube-state-metrics"}
!=
kube_daemonset_status_desired_number_scheduled{job="kube-state-metrics"}
) or (
kube_daemonset_status_number_available{job="kube-state-metrics"}
!=
kube_daemonset_status_desired_number_scheduled{job="kube-state-metrics"}
)
) and (
changes(kube_daemonset_updated_number_scheduled{job="kube-state-metrics"}[5m])
==
0
)
for: 15m
labels:
severity: warning
Expand Down

0 comments on commit 7d5d6d6

Please sign in to comment.