forked from kyma-project/nats-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Adjust NATS to new content guidelines (kyma-project#244)
* adjust NATS to new content guidelines * adjust headlines in README * Back to Kyma Home * adjust sidebar * fix NATS spelling Co-authored-by: Natalia Sitko <[email protected]> --------- Co-authored-by: Natalia Sitko <[email protected]>
- Loading branch information
1 parent
e4c497b
commit b295ce5
Showing
10 changed files
with
62 additions
and
59 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
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
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
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
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
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
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,36 +1,35 @@ | ||
# NATS Manager | ||
|
||
This module ships the NATS Manager. | ||
The Kyma NATS module ships the NATS Manager. | ||
|
||
## Module Lifecycle | ||
|
||
### Starting NATS Manager | ||
|
||
Upon starting the NATS Manager, the controller (following the [Kubebuilder concept](https://book.kubebuilder.io/architecture.html)) creates, watches and reconciles the following resources: | ||
Upon starting the NATS Manager, the controller (following the [Kubebuilder concept](https://book.kubebuilder.io/architecture.html)) creates, watches, and reconciles the following resources: | ||
|
||
- ConfigMap (cm) | ||
- Secret (sc) | ||
- Service (sv) | ||
- Stateful Set (sts) | ||
- DestinationRule (dr, [Istio](https://istio.io)) | ||
- ConfigMap (cm) | ||
- Secret (sc) | ||
- Service (sv) | ||
- Stateful Set (sts) | ||
- DestinationRule (dr, [Istio](https://istio.io)) | ||
|
||
![Start NATS manager](./assets/Start_nats_manager.drawio.svg) | ||
|
||
### Reacting to NATS CR changes | ||
### Reacting to NATS CR Changes | ||
|
||
The NATS Manager reacts to changes of the NATS CR to adapt the resources mentioned above to the desired state. | ||
For details how to configure NATS using the CR, visit the [Configuration documentation](./02-configuration.md). | ||
|
||
![Reacting to NATS CR changes](./assets/reacting_to_nats_cr_changes.drawio.svg) | ||
|
||
### Reacting to resource changes | ||
### Reacting to Resource Changes | ||
|
||
When resources are changed or deleted, the controller reacts by restoring the defaults according to the NATS CR. | ||
Thus, if you want to change the resources, you must edit the NATS CR; you cannot change the resources directly. | ||
|
||
![Reacting to resource changes](assets/reacting_to_resource_changes.drawio.svg) | ||
|
||
|
||
### Overview: NATS Manager watches resources | ||
### Overview: NATS Manager Watches Resources | ||
|
||
![NM watches resources](assets/NC_watches_resources.drawio.svg) |
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,26 +1,33 @@ | ||
# Acquiring NATS server system account credentials | ||
# 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. | ||
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: | ||
To get the credentials, run: | ||
|
||
```bash | ||
kubectl get secrets -n kyma-system eventing-nats-secret -ogo-template='{{index .data "resolver.conf"|base64decode}}'| grep 'user:' | tr -d '{}' | ||
``` | ||
|
||
### Result: | ||
### Result | ||
|
||
You get the credentials for the `system account` user in the following format: | ||
|
||
```bash | ||
user: admin, password: <your password> | ||
``` | ||
### Next steps: | ||
|
||
### 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
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,5 +1,5 @@ | ||
- [Home](/) | ||
- [NATS Manager](README.md) | ||
- [Module Lifecycle](01-manager.md) | ||
- [Module Configuration](02-configuration.md) | ||
- [Acquiring NATS server system account credentials](10-nats-server-system-events.md) | ||
- [Back to Kyma Home](/) | ||
- [NATS Manager](/nats-manager/user/README.md) | ||
- [Module Lifecycle](/nats-manager/user/01-manager.md) | ||
- [Module Configuration](/nats-manager/user/02-configuration.md) | ||
- [Acquiring NATS Server System Account Credentials](/nats-manager/user/10-nats-server-system-events.md) |