Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rbac] There are roles missing in the clusterapiservertemplate file. #462

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion clusterctl/clusterdeployer/clusterapiservertemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ spec:
spec:
nodeSelector:
node-role.kubernetes.io/master: ""
serviceAccountName: apiserver
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
Expand Down Expand Up @@ -121,6 +122,25 @@ spec:
hostPath:
path: /etc/ssl/certs
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: apiserver
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: default:system:auth-delegator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:auth-delegator
subjects:
- kind: ServiceAccount
name: apiserver
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
Expand All @@ -132,7 +152,7 @@ roleRef:
name: extension-apiserver-authentication-reader
subjects:
- kind: ServiceAccount
name: default
name: apiserver
namespace: default
---
apiVersion: apps/v1beta1
Expand Down