- A Kubernetes cluster:
- For which you have the
admin
cluster role. - That is already running Brigade v2.0.0 or greater.
- For which you have the
helm
: Commands below requirehelm
3.7.0+.brig
: The Brigade CLI. Commands below requirebrig
2.0.0+.
⚠️ To proceed beyond this point, you'll need to be logged into Brigade as the "root" user (not recommended) or (preferably) as a user with theADMIN
role. Further discussion of this is beyond the scope of this documentation. Please refer to Brigade's own documentation.
-
Using the
brig
CLI, create a service account for the Noisy Neighbor to use:$ brig service-account create \ --id brigade-noisy-neighbor \ --description "Used by Brigade Noisy Neighbor"
-
Make note of the token returned. This value will be used in another step.
⚠️ This is your only opportunity to access this value, as Brigade does not save it. -
Authorize this service account to create events:
$ brig role grant EVENT_CREATOR --service-account brigade-noisy-neighbor \ --source brigade.sh/noisy-neighbor
⚠️ The--source brigade.sh/noisy-neighbor
option specifies that this service account can be used only to create events having a value ofbrigade.sh/noisy-neighbor
in the event'ssource
field. This is a security measure that prevents this component from using this token for impersonating other event sources.
⚠️ be sure you are using Helm 3.7.0 or greater and enable experimental OCI support:$ export HELM_EXPERIMENTAL_OCI=1
-
As this component requires some specific configuration to function properly, we'll first create a values file containing those settings. Use the following command to extract the full set of configuration options into a file you can modify:
$ helm inspect values oci://ghcr.io/brigadecore/brigade-noisy-neighbor \ --version v1.0.0 > ~/brigade-noisy-neighbor-values.yaml
-
Edit
~/brigade-noisy-neighbor-values.yaml
, making the following changes:-
brigade.apiAddress
: Set this to the address of the Brigade API server, beginning withhttps://
. -
brigade.apiToken
: Set this to the service account token obtained when you created the Brigade service account for this component. -
noiseFrequency
: Optionally edit this to control the frequency with which noise events are emitted into Brigade's event bus.
-
-
Save your changes to
~/brigade-noisy-neighbor-values.yaml
. -
Use the following command to install the Noisy Neighbor:
$ helm install brigade-noisy-neighbor \ oci://ghcr.io/brigadecore/brigade-noisy-neighbor \ --version v1.0.0 \ --create-namespace \ --namespace brigade-noisy-neighbor \ --values ~/brigade-noisy-neighbor-values.yaml \ --wait