33 lines
727 B
YAML
33 lines
727 B
YAML
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRole
|
||
|
metadata:
|
||
|
annotations:
|
||
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
||
|
labels:
|
||
|
kubernetes.io/bootstrapping: rbac-defaults
|
||
|
name: system:kube-apiserver-to-kubelet
|
||
|
rules:
|
||
|
- apiGroups:
|
||
|
- ""
|
||
|
resources:
|
||
|
- nodes/proxy
|
||
|
- nodes/stats
|
||
|
- nodes/log
|
||
|
- nodes/spec
|
||
|
- nodes/metrics
|
||
|
verbs:
|
||
|
- "*"
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRoleBinding
|
||
|
metadata:
|
||
|
name: system:kube-apiserver
|
||
|
namespace: ""
|
||
|
roleRef:
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
kind: ClusterRole
|
||
|
name: system:kube-apiserver-to-kubelet
|
||
|
subjects:
|
||
|
- apiGroup: rbac.authorization.k8s.io
|
||
|
kind: User
|
||
|
name: kubernetes
|