Last active
July 6, 2020 21:01
-
-
Save felipeneuwald/cf1a325974ff839048d09d9427babd99 to your computer and use it in GitHub Desktop.
the-billion-message-rabbitmq: 001-RBAC.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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