Skip to content

Commit

Permalink
Use system:kube-router User for clusterrole binding. Kube-router as it
Browse files Browse the repository at this point in the history
provides service proxy as well, it has a chicken-egg problem ( can not
access api server till it can setup service proxy), so service
account are not usable.

Fixes #3463
  • Loading branch information
murali-reddy committed Oct 3, 2017
1 parent 518e97d commit 082a090
Showing 1 changed file with 23 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,21 @@ rules:
- apiGroups: [""]
resources:
- namespaces
- pod
- service
- node
- pods
- services
- nodes
- endpoints
verbs:
- get
- list
- watch
- apiGroups: ["networking.k8s.io"]
resources:
- networkpolicies
verbs:
- get
- list
- watch
- apiGroups: ["extensions"]
resources:
- networkpolicies
Expand All @@ -153,3 +160,16 @@ subjects:
- kind: ServiceAccount
name: kube-router
namespace: kube-system
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: system:kube-router
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kube-router
subjects:
- kind: User
name: system:kube-router
namespace: kube-system

0 comments on commit 082a090

Please sign in to comment.