You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+4-10Lines changed: 4 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,19 +115,13 @@ The terraform configuration takes two parameters to determine where the Kubernet
115
115
* project
116
116
* zone
117
117
118
-
For simplicity, these parameters should be specified in a file named terraform.tfvars, in the terraform directory. To generate this file based on your glcoud defaults, run:
119
-
120
-
./generate-tfvars.sh
121
-
This will generate a terraform/terraform.tfvars file with the following keys. The values themselves will match the output of gcloud config list:
118
+
For simplicity, these parameters should be specified in a file named terraform.tfvars, in the terraform directory. To generate this file based on your glcoud defaults, a script will be used `./scripts/generate-tfvars.sh` to produce a `terraform/terraform.tfvars` file with the following keys. The values themselves will match the output of gcloud config list:
122
119
```
123
120
# Contents of terraform.tfvars
124
121
project="YOUR_PROJECT"
125
122
zone="YOUR_ZONE"
126
123
```
127
124
128
-
If you need to override any of the defaults, simply replace the desired value(s) to the right of the equals sign(s). Be sure your replacement values are still double-quoted.
129
-
130
-
131
125
#### Deploying the cluster
132
126
133
127
There are three Terraform files provided with this example. The first one, `main.tf`, is the starting point for Terraform. It describes the features that will be used, the resources that will be manipulated, and the outputs that will result. The second file is `provider.tf`, which indicates which cloud provider and version will be the target of the Terraform commands--in this case GCP. The final file is `variables.tf`, which contains a list of variables that are used as inputs into Terraform. Any variables referenced in the `main.tf` that do not have defaults configured in `variables.tf` will result in prompts to the user at runtime.
@@ -161,7 +155,7 @@ Using the IP:Port value you can now access the application. Go to a browser and
161
155
162
156
### Logs in the Stackdriver UI
163
157
164
-
Stackdriver provides a UI for viewing log events. Basic search and filtering features are provided, which can be useful when debugging system issues. The Stackdriver Logging UI is best suited to exploring more recent log events. Users requiring longer-term storage of log events should consider some the tools in following sections.
158
+
Stackdriver provides a UI for viewing log events. Basic search and filtering features are provided, which can be useful when debugging system issues. The Stackdriver Logging UI is best suited to exploring more recent log events. Users requiring longer-term storage of log events should consider some of the tools in following sections.
165
159
166
160
To access the Stackdriver Logging console perform the following steps:
167
161
@@ -220,7 +214,7 @@ To access the Stackdriver logs in BigQuery perform the following steps:
220
214

221
215
222
216
5. Click on the **Query Table** towards the top right to perform a custom query against the table.
223
-
6. This opens the query window. You can simply add an asterisk (*) after the **Select** in the window to pull all details from the current table. **Note:**A 'Select *' query is generally very expensive and not advised. For this tutorial the dataset is limited to only the last hour of logs so the overall dataset is relatively small.
217
+
6. This opens the query window. You can simply add an asterisk (*) after the **Select** in the window to pull all details from the current table. **Note:**A 'Select *' query is generally very expensive and not advised. For this tutorial the dataset is limited to only the last hour of logs so the overall dataset is relatively small.
224
218
7. Click the **Run Query** button to execute the query and return some results from the table.
225
219
8. A popup window till ask you to confirm running the query. Click the **Run Query** button on this window as well.
226
220
9. The results window should display some rows and columns. You can scroll through the various rows of data that are returned, or download the results to a local file.
@@ -239,7 +233,7 @@ Since Terraform tracks the resources it created it is able to tear them all down
239
233
240
234
### Next Steps
241
235
242
-
Having used Terraform to deploy an application to Kubernetes Engine, generated logs, and viewed them in Stackdriver, you might consider exploring [Stackdriver Monitoring](https://cloud.google.com/monitoring/) and [Stackdriver Tracing](https://cloud.google.com/trace/). Examples for these topics are available [here](../README.md) and build on the work performed with this document.
236
+
Having used Terraform to deploy an application to Kubernetes Engine, generated logs, and viewed them in Stackdriver, you might consider exploring [Stackdriver Monitoring](https://cloud.google.com/monitoring/) and [Stackdriver Tracing](https://cloud.google.com/trace/). Examples for these topics are available [here](https://github.com/GoogleCloudPlatform?q=gke-tracing-demo++OR+gke-monitoring-tutorial) and build on the work performed with this document.
0 commit comments