Allow kube-state-metrics PodDisruptionBudget metrics

* Update kube-state-metrics ClusterRole to allow collecting
poddisruptionbudget metrics (exported as kube_poddisruptionbudget_*)
* https://github.com/kubernetes/kube-state-metrics/pull/551
* Bump addon-resizer from v1.7 to v1.8.4
This commit is contained in:
Dalton Hubble 2019-01-21 20:07:31 -08:00
parent 2f3097ebea
commit d697dd46dc
5 changed files with 60 additions and 18 deletions

View File

@ -18,6 +18,7 @@ Notable changes between versions.
* Update nginx-ingress from v0.21.0 to v0.22.0 * Update nginx-ingress from v0.21.0 to v0.22.0
* Update Prometheus from v2.6.0 to v2.6.1 * Update Prometheus from v2.6.0 to v2.6.1
* Update kube-state-metrics from v1.4.0 to v1.5.0 * Update kube-state-metrics from v1.4.0 to v1.5.0
* Fix ClusterRole to collect and export PodDisruptionBudget metrics ([#383](https://github.com/poseidon/typhoon/pull/383))
* Update Grafana from v5.4.2 to v5.4.3 * Update Grafana from v5.4.2 to v5.4.3
## v1.13.2 ## v1.13.2

View File

@ -3,7 +3,8 @@ kind: ClusterRole
metadata: metadata:
name: kube-state-metrics name: kube-state-metrics
rules: rules:
- apiGroups: [""] - apiGroups:
- ""
resources: resources:
- configmaps - configmaps
- secrets - secrets
@ -17,23 +18,47 @@ rules:
- persistentvolumes - persistentvolumes
- namespaces - namespaces
- endpoints - endpoints
verbs: ["list", "watch"] verbs:
- apiGroups: ["extensions"] - list
- watch
- apiGroups:
- extensions
resources: resources:
- daemonsets - daemonsets
- deployments - deployments
- replicasets - replicasets
verbs: ["list", "watch"] verbs:
- apiGroups: ["apps"] - list
- watch
- apiGroups:
- apps
resources: resources:
- statefulsets - statefulsets
verbs: ["list", "watch"] - daemonsets
- apiGroups: ["batch"] - deployments
- replicasets
verbs:
- list
- watch
- apiGroups:
- batch
resources: resources:
- cronjobs - cronjobs
- jobs - jobs
verbs: ["list", "watch"] verbs:
- apiGroups: ["autoscaling"] - list
- watch
- apiGroups:
- autoscaling
resources: resources:
- horizontalpodautoscalers - horizontalpodautoscalers
verbs: ["list", "watch"] verbs:
- list
- watch
- apiGroups:
- policy
resources:
- poddisruptionbudgets
verbs:
- list
- watch

View File

@ -35,7 +35,7 @@ spec:
initialDelaySeconds: 5 initialDelaySeconds: 5
timeoutSeconds: 5 timeoutSeconds: 5
- name: addon-resizer - name: addon-resizer
image: k8s.gcr.io/addon-resizer:1.7 image: k8s.gcr.io/addon-resizer:1.8.4
resources: resources:
limits: limits:
cpu: 100m cpu: 100m

View File

@ -6,7 +6,7 @@ metadata:
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: Role kind: Role
name: kube-state-metrics-resizer name: kube-state-metrics
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: kube-state-metrics name: kube-state-metrics

View File

@ -1,15 +1,31 @@
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: Role kind: Role
metadata: metadata:
name: kube-state-metrics-resizer name: kube-state-metrics
namespace: monitoring namespace: monitoring
rules: rules:
- apiGroups: [""] - apiGroups:
- ""
resources: resources:
- pods - pods
verbs: ["get"] verbs:
- apiGroups: ["extensions"] - get
- apiGroups:
- extensions
resources: resources:
- deployments - deployments
resourceNames: ["kube-state-metrics"] resourceNames:
verbs: ["get", "update"] - kube-state-metrics
verbs:
- get
- update
- apiGroups:
- apps
resources:
- deployments
resourceNames:
- kube-state-metrics
verbs:
- get
- update