Skip to content

Instantly share code, notes, and snippets.

@sgringwe
Created February 11, 2018 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgringwe/efc3a6b4e4018c5427ea3f0e510e8d31 to your computer and use it in GitHub Desktop.
Save sgringwe/efc3a6b4e4018c5427ea3f0e510e8d31 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ServiceAccount
metadata:
name: ingress-lister
namespace: monitoring
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: ingress-lister
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: ingress-lister
subjects:
- kind: ServiceAccount
name: ingress-lister
namespace: monitoring
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: ingress-lister
rules:
- apiGroups:
- extensions
resources:
- ingresses
verbs:
- get
- list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment