generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move doc to NATS repo * adjust sidebar
- Loading branch information
Showing
2 changed files
with
30 additions
and
4 deletions.
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,26 @@ | ||
# Acquiring NATS server system account credentials | ||
|
||
## Context | ||
|
||
Accessing certain resources in NATS requires [`system_account` privileges](https://docs.nats.io/running-a-nats-service/configuration/sys_accounts). Kyma automatically generates a `system account` user using a Secret dubbed `eventing-nats-secret` in the `kyma-system` Namespace. | ||
|
||
## Procedure | ||
|
||
To acquire the credentials, run the following command: | ||
|
||
```bash | ||
kubectl get secrets -n kyma-system eventing-nats-secret -ogo-template='{{index .data "resolver.conf"|base64decode}}'| grep 'user:' | tr -d '{}' | ||
``` | ||
|
||
### Result: | ||
You get the credentials for the `system account` user in the following format: | ||
```bash | ||
user: admin, password: <your password> | ||
``` | ||
### Next steps: | ||
1. To access the NATS server with the [nats-cli tool](https://github.com/nats-io/natscli), forward its port: | ||
```bash | ||
kubectl port-forward -n kyma-system svc/eventing-nats 4222 | ||
2. To send your NATS commands, pass the credentials: | ||
```bash | ||
nats server info --user admin --password <your password> |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
- [Home](/) | ||
- [NATS Manager](README.md) | ||
- [Module Lifecycle](01-manager.md) | ||
- [Module Configuration](02-configuration.md) | ||
- [NATS Manager](/docs/user/README.md) | ||
- [Module Lifecycle](/docs/user/01-manager.md) | ||
- [Module Configuration](/docs/user/02-configuration.md) | ||
- [Acquiring NATS server system account credentials](10-nats-server-system-events.md) |