Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 6f848a9

Browse files
authored
Merge pull request #19 from alekhyal/master
user database instructions and timeout flag
2 parents 93351f7 + 0e8a304 commit 6f848a9

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

README.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@ If you don't have a Google Cloud account you can sign up for a [free account](ht
154154
Deployment is fully automated. In order
155155
to deploy you need to run **create.sh**. The script
156156
takes the following parameters, in order:
157-
* A name for your Cloud SQL instance
158-
* A username for a new Postgres user that you will use to connect to the
159-
instance with
157+
* A username for your Cloud SQL instance
160158
* A username for the pgAdmin console
161159

162160
The script requires the following environment variables to be defined:
@@ -165,7 +163,7 @@ The script requires the following environment variables to be defined:
165163

166164
Here is what it looks like to run **create.sh**:
167165

168-
```USER_PASSWORD=password PG_ADMIN_CONSOLE_PASSWORD=password ./create.sh INSTANCE_NAME POSTGRES_USERNAME PGADMIN_USERNAME```
166+
```USER_PASSWORD=<password> PG_ADMIN_CONSOLE_PASSWORD=<password> ./create.sh <DATABASE_USER_NAME> <PGADMIN_USERNAME>```
169167

170168
**create.sh** will run the following scripts:
171169
1. enable_apis.sh - enables the Kubernetes Engine API and Cloud SQL Admin API
@@ -182,10 +180,10 @@ containing credentials and connection string for the Cloud SQL instance
182180
Once **create.sh** is complete you need to run ```make expose``` to connect to
183181
the running pgAdmin pod. ```make expose``` will port-forward to the running pod.
184182
You can [connect to the port-forwarded pgAdmin in your
185-
browser](http://127.0.0.1:8080/login). Use the pgAdmin username in the "Email
186-
Address" field and password you defined earlier to login to the console.
187-
From there you can click "Add New Server" and use the database username and
188-
password you created earlier to connect to 127.0.0.1:5432.
183+
browser](http://127.0.0.1:8080/login). Use the ```<PGADMIN_USERNAME>``` in the "Email
184+
Address" field and ```<PG_ADMIN_CONSOLE_PASSWORD>``` you defined earlier to login to the console.
185+
From there you can click "Add New Server" and use the ```<DATABASE_USER_NAME>``` and
186+
```<USER_PASSWORD>``` you created earlier to connect to 127.0.0.1:5432.
189187

190188
## Validation
191189

scripts/pgadmin_deployment.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ ROOT=$(dirname "${BASH_SOURCE[0]}")
2323
kubectl --namespace default create -f "$ROOT"/../manifests/pgadmin-deployment.yaml
2424

2525
# Waiting for the pod to actually deploy correctly
26-
kubectl --namespace default rollout status --timeout=2m -f "$ROOT"/../manifests/pgadmin-deployment.yaml
26+
kubectl --namespace default rollout status --request-timeout="5m" -f "$ROOT"/../manifests/pgadmin-deployment.yaml

0 commit comments

Comments
 (0)