Skip to content

Instantly share code, notes, and snippets.

@tgraf
Created May 31, 2017 20:10
Show Gist options
  • Save tgraf/27f7974c1bdc01ed44793e9123bbc862 to your computer and use it in GitHub Desktop.
Save tgraf/27f7974c1bdc01ed44793e9123bbc862 to your computer and use it in GitHub Desktop.
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: cilium
rules:
- apiGroups:
- ""
resources:
- pods
- namespaces
- nodes
- endpoints
- componentstatuses
verbs:
- get
- list
- watch
- apiGroups:
- extensions
resources:
- networkpolicies
- ingresses
- thirdpartyresources
verbs:
- create
- get
- list
- watch
- apiGroups:
- cilium.io
resources:
- ciliumnetworkpolicies
verbs:
- "*"
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: cilium
namespace: kube-system
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: cilium
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cilium
subjects:
- kind: ServiceAccount
name: cilium
namespace: kube-system
- kind: Group
name: system:nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment