generated from cms-opendata-workshop/workbench-template-md
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
04: add about terraform, remove enable-streamin as not needed
- Loading branch information
Showing
1 changed file
with
16 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,10 +67,19 @@ Get them with | |
git clone [email protected]:cms-dpoa/cloud-processing.git | ||
cd cloud-processing/standard-gke-cluster-gcs-imgdisk | ||
``` | ||
## About Terraform | ||
|
||
The resources are created by [Terraform](https://developer.hashicorp.com/terraform?product_intent=terraform) scripts (with the file extension `.tf`) in the working directory. | ||
|
||
In the example case, they are very simple and the same could be easily done with `gcloud` commands. | ||
|
||
Terraform, however, makes it easy to change and keep track of the parameters. Read more about Terraform on Google Cloud in the [Terraform overview](https://cloud.google.com/docs/terraform/terraform-overview). | ||
|
||
The configurable parameters are defined in `variables.tf` and can be modified in `terraform.tfvars`. | ||
|
||
## Create the cluster | ||
|
||
Set the variable in the `terraform.tfvars` files. | ||
Set the variables in the `terraform.tfvars` files. | ||
|
||
Run | ||
|
||
|
@@ -83,8 +92,7 @@ and confirm "yes". | |
## Connect to the cluster and inspect | ||
|
||
```bash | ||
gcloud container clusters get-credentials cluster-2 --region europe-we | ||
st4-a --project hip-new-full-account | ||
gcloud container clusters get-credentials <CLUSTER_NAME> --region europe-west4-a --project <PROJECT_ID> | ||
``` | ||
|
||
```bash | ||
|
@@ -95,13 +103,14 @@ kubectl get nodes | |
kubectl get ns | ||
``` | ||
|
||
## Enable image streaming | ||
<!-- ## Enable image streaming | ||
This is finally not needed. The streaming for the secondary disk works even if Image streaming shows Disabled in the cluster features | ||
```bash | ||
gcloud container clusters update cluster-2 --zone europe-west4-a --ena | ||
ble-image-streaming | ||
gcloud container clusters update <CLUSTER_NAME> --zone europe-west4-a --enable-image-streaming | ||
``` | ||
``` --> | ||
|
||
|
||
## Costs | ||
|