4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 name: custom-metrics-apiserver
20 namespace: kube-system
22 apiVersion: rbac.authorization.k8s.io/v1beta1
25 name: caas:custom-metrics-server-resource-reader
37 apiVersion: rbac.authorization.k8s.io/v1
40 name: caas:custom-metrics-server:extension-apiserver-authentication-reader
41 namespace: kube-system
43 apiGroup: rbac.authorization.k8s.io
45 name: extension-apiserver-authentication-reader
47 - kind: ServiceAccount
48 name: custom-metrics-apiserver
49 namespace: kube-system
51 apiVersion: rbac.authorization.k8s.io/v1beta1
52 kind: ClusterRoleBinding
54 name: caas:custom-metrics-server:system:auth-delegator
56 apiGroup: rbac.authorization.k8s.io
58 name: system:auth-delegator
60 - kind: ServiceAccount
61 name: custom-metrics-apiserver
62 namespace: kube-system
64 apiVersion: rbac.authorization.k8s.io/v1
65 kind: ClusterRoleBinding
67 name: caas:custom-metrics-server-psp
69 - kind: ServiceAccount
70 name: custom-metrics-apiserver
71 namespace: kube-system
75 apiGroup: rbac.authorization.k8s.io
77 apiVersion: rbac.authorization.k8s.io/v1
80 name: caas:custom-metrics-server:custom-apiserver-resource-reader
81 namespace: kube-system
83 apiGroup: rbac.authorization.k8s.io
85 name: caas:custom-metrics-server-resource-reader
87 - kind: ServiceAccount
88 name: custom-metrics-apiserver
89 namespace: kube-system