@@ -154,9 +154,7 @@ If you don't have a Google Cloud account you can sign up for a [free account](ht
154
154
Deployment is fully automated. In order
155
155
to deploy you need to run ** create.sh** . The script
156
156
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
160
158
* A username for the pgAdmin console
161
159
162
160
The script requires the following environment variables to be defined:
@@ -165,7 +163,7 @@ The script requires the following environment variables to be defined:
165
163
166
164
Here is what it looks like to run ** create.sh** :
167
165
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> ```
169
167
170
168
** create.sh** will run the following scripts:
171
169
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
182
180
Once ** create.sh** is complete you need to run ``` make expose ``` to connect to
183
181
the running pgAdmin pod. ``` make expose ``` will port-forward to the running pod.
184
182
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.
189
187
190
188
## Validation
191
189
0 commit comments