Skip to content

Commit 8b3b56e

Browse files
committed
Mention examples namespace in vault example
1 parent 89d90cc commit 8b3b56e

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

docs/examples/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,12 @@ The test and setup scripts can assume that [Cert Manager](https://cert-manager.i
3737
There is also a cluster issuer to produce self-signed certificates, named `selfsigned-issuer`. It is also
3838
acceptable to create local `Issuer`s when needed.
3939

40+
### Namespace
41+
42+
Some examples in this folder default to namespace `examples`, which can be created by:
43+
44+
```shell
45+
kubectl create ns examples
46+
```
47+
48+
You can also replace the namespace with any existing namespace in your environment.

docs/examples/vault-default-user/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ This example requires:
2626
4. The RabbitMQ admin credentials were already written to Vault to path `spec.secretBackend.vault.defaultUserPath` with keys `username` and `password` (by some cluster-operator external mechanism. The cluster-operator will never write admin credentials to Vault).
2727
5. Role `spec.secretBackend.vault.role` is configured in Vault with a policy to read from `defaultUserPath`.
2828

29-
Run script [setup.sh](./setup.sh) to get started with a Vault server in [dev mode](https://www.vaultproject.io/docs/concepts/dev-server) fullfilling above requirements. (This script is not production-ready. It is only meant to get you started experiencing end-to-end how RabbitMQ integrates with Vault.)
29+
Run script [setup.sh](./setup.sh) to get started with a Vault server in [dev mode](https://www.vaultproject.io/docs/concepts/dev-server) fulfilling above requirements.
30+
[setup.sh](./setup.sh) assumes you are using namespace `examples`, which can be created by:
31+
32+
```shell
33+
kubectl create ns examples
34+
```
35+
36+
If you want to deploy this example in a different existing namespace, you can set environment variable `RABBITMQ_NAMESPACE` when you run the script.
37+
(This script is not production-ready. It is only meant to get you started experiencing end-to-end how RabbitMQ integrates with Vault.)
3038

3139
You can deploy this example like this:
3240

0 commit comments

Comments
 (0)