-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from rabbitmq/more-examples
More example manifests for docs/examples
- Loading branch information
Showing
4 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
apiVersion: rabbitmq.com/v1alpha2 | ||
kind: Policy | ||
metadata: | ||
name: lazy-queue-policy | ||
namespace: rabbitmq-system | ||
spec: | ||
name: lazy-queue-policy | ||
vhost: "test-vhost" | ||
pattern: "^lazy-queue-" # matches any queue begins with "lazy-queue-" | ||
applyTo: "queues" | ||
definition: | ||
queue-mode: lazy | ||
rabbitmqClusterReference: | ||
name: sample |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
apiVersion: rabbitmq.com/v1alpha2 | ||
kind: Policy | ||
metadata: | ||
name: lazy-queue-policy | ||
namespace: rabbitmq-system | ||
spec: | ||
name: lazy-queue-policy | ||
vhost: "test-vhost" | ||
pattern: "^lazy-queue-" # matches any queue begins with "lazy-queue-" | ||
applyTo: "queues" | ||
definition: | ||
queue-mode: lazy | ||
rabbitmqClusterReference: | ||
name: test | ||
--- | ||
apiVersion: rabbitmq.com/v1alpha2 | ||
kind: Queue | ||
metadata: | ||
name: lazy-queue-example | ||
namespace: rabbitmq-system | ||
spec: | ||
name: lazy-queue-example # matches the pattern "^lazy-queue$" set in lazy-queue-policy | ||
vhost: "test-vhost" | ||
autoDelete: false | ||
durable: true | ||
rabbitmqClusterReference: | ||
name: test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: test-user-credentials | ||
type: Opaque | ||
data: | ||
username: dGVzdC11c2Vy # base64 encoded "test-user" | ||
password: dmVyeXNlY3VyZXB3 | ||
--- | ||
apiVersion: rabbitmq.com/v1alpha2 | ||
kind: User | ||
metadata: | ||
name: test-user | ||
spec: | ||
rabbitmqClusterReference: | ||
name: test | ||
importCredentialsSecret: | ||
name: test-user-credentials | ||
--- | ||
apiVersion: rabbitmq.com/v1alpha2 | ||
kind: Permission | ||
metadata: | ||
name: testuser-permission | ||
namespace: rabbitmq-system | ||
spec: | ||
vhost: "test-vhost" | ||
user: "test-user" # name corresponds to the username we provided in "test-user-credentials" secret | ||
permissions: | ||
write: ".*" | ||
configure: "" | ||
read: ".*" | ||
rabbitmqClusterReference: | ||
name: test |
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