Skip to content

Commit f6b0799

Browse files
authored
Merge pull request #18 from aroraharsh23/manual_rbac
updated rbac
2 parents 1d4220b + 2a81b01 commit f6b0799

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

deploy/citrix-k8s-node-controller.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,42 @@ metadata:
4646
name: citrix-node-controller
4747
namespace: default
4848
---
49+
kind: ClusterRole
50+
apiVersion: rbac.authorization.k8s.io/v1
51+
metadata:
52+
name: kube-cnc-router
53+
rules:
54+
- apiGroups: ["*"]
55+
resources: ["configmaps"]
56+
verbs: ["get", "list", "watch", "create", "patch", "delete", "update"]
57+
- apiGroups: [""]
58+
resources: ["configmaps"]
59+
verbs: ["get", "list", "watch", "create", "patch", "delete", "update"]
60+
- apiGroups: ["crd.projectcalico.org"]
61+
resources: ["ipamblocks"]
62+
verbs: ["get", "list"]
63+
---
64+
kind: ClusterRoleBinding
65+
apiVersion: rbac.authorization.k8s.io/v1
66+
metadata:
67+
name: kube-cnc-router
68+
roleRef:
69+
apiGroup: rbac.authorization.k8s.io
70+
kind: ClusterRole
71+
name: kube-cnc-router
72+
subjects:
73+
- kind: ServiceAccount
74+
name: kube-cnc-router
75+
namespace: kube-system
76+
apiVersion: rbac.authorization.k8s.io/v1
77+
---
78+
apiVersion: v1
79+
kind: ServiceAccount
80+
metadata:
81+
name: kube-cnc-router
82+
namespace: kube-system
83+
84+
---
4985
apiVersion: apps/v1
5086
kind: Deployment
5187
metadata:

0 commit comments

Comments
 (0)