Skip to content

Commit

Permalink
Add explanation for username and password secret in PGSQL tutorial (#195
Browse files Browse the repository at this point in the history
)
  • Loading branch information
orishoshan committed Feb 5, 2024
1 parent 0022081 commit 4ec77d2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/quickstart/access-control/postgres.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,18 @@ We will be using it to create a proxy to connect our locally running database to

# Tutorial

### Deploy the cluster
### Deploy tutorial services and request database credentials
This will set up the namespace we will use for our tutorial and deploy the client, server, and database.

This will set up the namespace we will use for our tutorial and deploy the cluster with our client, server, and database.
Our server's Deployment spec will specify an annotation on the Pod, which requests that the credentials operator will provision a username and password for the server.
```yaml
template:
metadata:
annotations:
credentials-operator.otterize.com/user-password-secret-name: server-creds
```
This specifies that the secret `server-creds` will have keys with the username and password to connect to the database.
The secret will only be created once the database is integrated with Otterize Cloud.

``` shell
kubectl create namespace otterize-tutorial-postgres
Expand Down Expand Up @@ -113,6 +122,7 @@ After providing a cluster name and environment. For this tutorial, choose:
3. Copy and run the Helm upgrade command.
4. You should see the Connection status change.


### View logs for the server
After the client, server, and database are up and running, we can see that the server does not have the appropriate access to the database by inspecting the logs with the following command.

Expand Down

0 comments on commit 4ec77d2

Please sign in to comment.