Skip to content

Instantly share code, notes, and snippets.

@javaadpatel
Created March 9, 2020 18:31
Show Gist options
  • Select an option

  • Save javaadpatel/a21de9a3061f65b7ecca0f12af709cb5 to your computer and use it in GitHub Desktop.

Select an option

Save javaadpatel/a21de9a3061f65b7ecca0f12af709cb5 to your computer and use it in GitHub Desktop.
Traefik ClusterRole and ClusterRole Binding for Kubernetes
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
- apiGroups:
- extensions
resources:
- ingresses/status
verbs:
- update
- apiGroups:
- traefik.containo.us
resources:
- middlewares
- ingressroutes
- traefikservices
- ingressroutetcps
- tlsoptions
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: default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment