Skip to content

Instantly share code, notes, and snippets.

@felipeneuwald
Last active July 6, 2020 21:01
Show Gist options
  • Save felipeneuwald/cf1a325974ff839048d09d9427babd99 to your computer and use it in GitHub Desktop.
Save felipeneuwald/cf1a325974ff839048d09d9427babd99 to your computer and use it in GitHub Desktop.
the-billion-message-rabbitmq: 001-RBAC.yaml
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: rabbitmq
namespace: rabbitmq
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: rabbitmq-peer-discovery-rbac
namespace: rabbitmq
rules:
- apiGroups: [""]
resources: ["endpoints"]
verbs: ["get"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: rabbitmq-peer-discovery-rbac
namespace: rabbitmq
subjects:
- kind: ServiceAccount
name: rabbitmq
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: rabbitmq-peer-discovery-rbac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment