---
apiVersion: v1
kind: ServiceAccount
metadata:
name: authentik
namespace: ##NAMESPACE##
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
subjects:
- kind: ServiceAccount
rules:
- apiGroups:
- ""
resources:
- secrets
- services
- configmaps
verbs:
- get
- create
- delete
- list
- patch
- extensions
- apps
- deployments
- networking.k8s.io
- ingresses
- traefik.containo.us
- middlewares
- monitoring.coreos.com
- servicemonitors
- apiextensions.k8s.io
- customresourcedefinitions
kind: ClusterRoleBinding
kind: ClusterRole