Skip to content

Commit

Permalink
Add connection step
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCrawfis committed Sep 27, 2023
1 parent f66fcb0 commit fe5d65a
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion docs/content/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ In your browser you should see the demo app:

Congrats! You're running your first Radius app. When you're ready to move on to the next step, use <kbd>CTRL</kbd>+ <kbd>C</kbd> to exit the command.


## 5. Add Database

This step will add a database (Redis Cache) to the application.
Expand Down Expand Up @@ -166,6 +165,38 @@ Navigate to the Todo List tab and test out the application. Using the Todo page

Press <kbd>CTRL</kbd>+ <kbd>C</kbd> when you are finished with the website.

## 7. View the application connections

Radius connections are more than just environment variables and configuration. You can also access the "application graph" and understand the connections within your application with the following command:

```bash
rad app connections
```

You should see the following output, detailing the connections between the `demo` container and the `db` Redis Cache, along with information about the underlying Kubernetes resources running the app:

```
Displaying application: demo
Name: demo (Applications.Core/containers)
Connections:
demo -> db (Applications.Datastores/redisCaches)
Resources:
demo (kubernetes: apps/Deployment)
demo (kubernetes: core/Secret)
demo (kubernetes: core/Service)
demo (kubernetes: core/ServiceAccount)
demo (kubernetes: rbac.authorization.k8s.io/Role)
demo (kubernetes: rbac.authorization.k8s.io/RoleBinding)
Name: db (Applications.Datastores/redisCaches)
Connections:
demo (Applications.Core/containers) -> db
Resources:
redis-r5tcrra3d7uh6 (kubernetes: apps/Deployment)
redis-r5tcrra3d7uh6 (kubernetes: core/Service)
```

## Recap and next steps

It's easy to build on the default app and add more resources to the app.
Expand Down

0 comments on commit fe5d65a

Please sign in to comment.