2019-10-15 21:17:26 +00:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
2021-06-02 21:50:11 +00:00
|
|
|
name: k3s-cloud-controller-manager
|
2019-10-15 21:17:26 +00:00
|
|
|
rules:
|
2019-12-21 02:41:24 +00:00
|
|
|
- apiGroups:
|
|
|
|
- coordination.k8s.io
|
|
|
|
resources:
|
|
|
|
- leases
|
|
|
|
verbs:
|
|
|
|
- get
|
|
|
|
- create
|
|
|
|
- update
|
2019-10-15 21:17:26 +00:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- events
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
- patch
|
|
|
|
- update
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- nodes
|
|
|
|
verbs:
|
2022-09-29 20:37:50 +00:00
|
|
|
- "*"
|
2019-10-15 21:17:26 +00:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- nodes/status
|
2022-09-29 20:37:50 +00:00
|
|
|
- services/status
|
2019-10-15 21:17:26 +00:00
|
|
|
verbs:
|
|
|
|
- patch
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- services
|
2022-09-29 20:37:50 +00:00
|
|
|
- pods
|
2019-10-15 21:17:26 +00:00
|
|
|
verbs:
|
2022-09-29 20:37:50 +00:00
|
|
|
- get
|
2019-10-15 21:17:26 +00:00
|
|
|
- list
|
|
|
|
- watch
|
2022-10-20 21:29:57 +00:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- services
|
|
|
|
verbs:
|
|
|
|
- patch
|
|
|
|
- update
|
2019-10-15 21:17:26 +00:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- serviceaccounts
|
|
|
|
verbs:
|
|
|
|
- create
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
2022-09-29 20:37:50 +00:00
|
|
|
- namespaces
|
2019-10-15 21:17:26 +00:00
|
|
|
verbs:
|
2022-09-29 20:37:50 +00:00
|
|
|
- create
|
2019-10-15 21:17:26 +00:00
|
|
|
- get
|
|
|
|
- apiGroups:
|
2022-09-29 20:37:50 +00:00
|
|
|
- apps
|
2019-10-15 21:17:26 +00:00
|
|
|
resources:
|
2022-09-29 20:37:50 +00:00
|
|
|
- daemonsets
|
2019-10-15 21:17:26 +00:00
|
|
|
verbs:
|
2022-09-29 20:37:50 +00:00
|
|
|
- "*"
|
2019-10-15 21:17:26 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
2021-06-02 21:50:11 +00:00
|
|
|
name: k3s-cloud-controller-manager
|
2019-10-15 21:17:26 +00:00
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
2021-06-02 21:50:11 +00:00
|
|
|
name: k3s-cloud-controller-manager
|
2019-10-15 21:17:26 +00:00
|
|
|
subjects:
|
|
|
|
- kind: User
|
2021-06-02 21:50:11 +00:00
|
|
|
name: k3s-cloud-controller-manager
|
2019-10-15 21:17:26 +00:00
|
|
|
namespace: kube-system
|
2021-09-13 22:23:00 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
|
|
|
name: k3s-cloud-controller-manager-auth-delegator
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
|
|
|
name: system:auth-delegator
|
|
|
|
subjects:
|
|
|
|
- kind: User
|
|
|
|
name: k3s-cloud-controller-manager
|
|
|
|
namespace: kube-system
|
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: RoleBinding
|
|
|
|
metadata:
|
|
|
|
name: k3s-cloud-controller-manager-authentication-reader
|
|
|
|
namespace: kube-system
|
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: Role
|
|
|
|
name: extension-apiserver-authentication-reader
|
|
|
|
subjects:
|
|
|
|
- kind: User
|
|
|
|
name: k3s-cloud-controller-manager
|
|
|
|
namespace: kube-system
|