-
-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow kube-state-metrics PodDisruptionBudget metrics
* Update kube-state-metrics ClusterRole to allow collecting poddisruptionbudget metrics (exported as kube_poddisruptionbudget_*) * kubernetes/kube-state-metrics#551 * Bump addon-resizer from v1.7 to v1.8.4
- Loading branch information
Showing
5 changed files
with
60 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 22 additions & 6 deletions
28
addons/prometheus/exporters/kube-state-metrics/resizer-role.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,31 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: kube-state-metrics-resizer | ||
name: kube-state-metrics | ||
namespace: monitoring | ||
rules: | ||
- apiGroups: [""] | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
verbs: ["get"] | ||
- apiGroups: ["extensions"] | ||
verbs: | ||
- get | ||
- apiGroups: | ||
- extensions | ||
resources: | ||
- deployments | ||
resourceNames: ["kube-state-metrics"] | ||
verbs: ["get", "update"] | ||
resourceNames: | ||
- kube-state-metrics | ||
verbs: | ||
- get | ||
- update | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- deployments | ||
resourceNames: | ||
- kube-state-metrics | ||
verbs: | ||
- get | ||
- update | ||
|