Skip to content

Instantly share code, notes, and snippets.

@richardsonlima
Created February 13, 2019 19:44
Show Gist options
  • Save richardsonlima/0933b35114d3aa545dc4d1def48a5ae5 to your computer and use it in GitHub Desktop.
Save richardsonlima/0933b35114d3aa545dc4d1def48a5ae5 to your computer and use it in GitHub Desktop.
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: traefik-ingress-controller
rules:
- apiGroups:
- ""
resources:
- services
- endpoints
- secrets
verbs:
- get
- list
- watch
- apiGroups:
- extensions
resources:
- ingresses
verbs:
- get
- list
- watch
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: traefik-ingress-controller
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: traefik-ingress-controller
subjects:
- kind: ServiceAccount
name: traefik-ingress-controller
namespace: kube-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment