2018-10-08 13:17:05 +02:00
|
|
|
kind: ServiceAccount
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: custom-metrics-apiserver
|
|
|
|
namespace: kube-system
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: custom-metrics-server-resources
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- custom.metrics.k8s.io
|
|
|
|
resources: ["*"]
|
|
|
|
verbs: ["*"]
|
|
|
|
---
|
2018-12-07 20:54:17 +01:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: external-metrics-server-resources
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- external.metrics.k8s.io
|
|
|
|
resources: ["*"]
|
|
|
|
verbs: ["*"]
|
|
|
|
---
|
2018-10-08 13:17:05 +02:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: custom-metrics-resource-reader
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- namespaces
|
|
|
|
- pods
|
|
|
|
- services
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: custom-metrics-resource-collector
|
|
|
|
rules:
|
2018-12-07 20:54:17 +01:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- events
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
- patch
|
2018-10-08 13:17:05 +02:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- pods
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- apiGroups:
|
|
|
|
- apps
|
|
|
|
resources:
|
|
|
|
- deployments
|
|
|
|
- statefulsets
|
|
|
|
verbs:
|
|
|
|
- get
|
2021-07-31 17:31:13 +02:00
|
|
|
# only relevant if running with the flag:
|
|
|
|
# --skipper-ingress-metrics
|
2018-10-08 13:17:05 +02:00
|
|
|
- apiGroups:
|
2021-07-31 17:31:13 +02:00
|
|
|
- networking.k8s.io
|
2018-10-08 13:17:05 +02:00
|
|
|
resources:
|
|
|
|
- ingresses
|
|
|
|
verbs:
|
|
|
|
- get
|
2021-07-31 17:31:13 +02:00
|
|
|
# only relevant if running with the flag:
|
|
|
|
# --skipper-routegroup-metrics
|
|
|
|
- apiGroups:
|
|
|
|
- zalando.org
|
|
|
|
resources:
|
|
|
|
- routegroups
|
|
|
|
verbs:
|
|
|
|
- get
|
2018-12-07 20:54:17 +01:00
|
|
|
- apiGroups:
|
|
|
|
- autoscaling
|
|
|
|
resources:
|
|
|
|
- horizontalpodautoscalers
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
2021-05-21 09:00:39 +02:00
|
|
|
- apiGroups:
|
|
|
|
- zalando.org
|
|
|
|
resources:
|
|
|
|
- clusterscalingschedules
|
|
|
|
- scalingschedules
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- list
|
|
|
|
- watch
|
2023-04-06 17:46:22 +02:00
|
|
|
- apiGroups:
|
|
|
|
- zalando.org
|
|
|
|
resources:
|
|
|
|
- clusterscalingschedules/status
|
|
|
|
- scalingschedules/status
|
|
|
|
verbs:
|
|
|
|
- update
|
2018-10-08 13:17:05 +02:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: hpa-controller-custom-metrics
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: custom-metrics-server-resources
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: horizontal-pod-autoscaler
|
|
|
|
namespace: kube-system
|
|
|
|
---
|
2018-12-07 20:54:17 +01:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: hpa-controller-external-metrics
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: external-metrics-server-resources
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: horizontal-pod-autoscaler
|
|
|
|
namespace: kube-system
|
|
|
|
---
|
2018-10-08 13:17:05 +02:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: RoleBinding
|
|
|
|
metadata:
|
|
|
|
name: custom-metrics-auth-reader
|
|
|
|
namespace: kube-system
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: Role
|
|
|
|
name: extension-apiserver-authentication-reader
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: custom-metrics-apiserver
|
|
|
|
namespace: kube-system
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: custom-metrics:system:auth-delegator
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: system:auth-delegator
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: custom-metrics-apiserver
|
|
|
|
namespace: kube-system
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: custom-metrics-resource-collector
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: custom-metrics-resource-collector
|
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
|
|
|
name: custom-metrics-apiserver
|
|
|
|
namespace: kube-system
|