Skip to content

Commit

Permalink
Merge pull request #272 from Huang-Wei/helm-sa-rbac
Browse files Browse the repository at this point in the history
install: create a RoleBinding for obtain delegated authentication
  • Loading branch information
k8s-ci-robot authored Jan 11, 2022
2 parents 5f63e9c + 04334eb commit 7b3182b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions manifests/install/charts/as-a-second-scheduler/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,21 @@ roleRef:
kind: ClusterRole
name: scheduler-plugins-controller
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: sched-plugins::extension-apiserver-authentication-reader
namespace: kube-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: extension-apiserver-authentication-reader
subjects:
- kind: ServiceAccount
name: {{ .Values.scheduler.name }}
namespace: {{ .Values.scheduler.namespace }}
- kind: ServiceAccount
name: {{ .Values.controller.name }}
namespace: {{ .Values.controller.namespace }}

0 comments on commit 7b3182b

Please sign in to comment.