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
Copy file name to clipboardExpand all lines: modules/asm/README.md
+42-14Lines changed: 42 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,51 +1,79 @@
1
1
# Terraform Kubernetes Engine ASM Submodule
2
2
3
-
This module installs [Anthos Service Mesh](https://cloud.google.com/service-mesh/docs) (ASM) in a Kubernetes cluster.
3
+
This module installs [Anthos Service Mesh](https://cloud.google.com/service-mesh/docs) (ASM) in a Kubernetes Engine (GKE) cluster.
4
4
5
-
Specifically, this module automates installing the ASM Istio Operator on your cluster ([installing ASM](https://cloud.google.com/service-mesh/docs/install))
5
+
Specifically, this module automates installing the ASM Istio Operator on your cluster ([installing ASM](https://cloud.google.com/service-mesh/docs/install)).
6
6
7
7
## Usage
8
8
9
-
There is a [full example](../../examples/simple_zonal_with_asm) provided. Simple usage is as follows:
9
+
There is a [full example](../../examples/simple_zonal_with_asm) provided. Detailed usage example is as follows:
- Anthos Service Mesh [requires](https://cloud.google.com/service-mesh/docs/gke-install-existing-cluster#requirements) an active Anthos license.
40
+
- Anthos Service Mesh on GCP no longer requires an active Anthos license. You can use Anthos Service Mesh as a standalone product on GCP (on GKE) or as part of your Anthos subscription for hybrid and multi-cloud architectures.
28
41
- GKE cluster must have minimum four nodes.
29
42
- Minimum machine type is `e2-standard-4`.
30
43
- GKE cluster must be enrolled in a release channel. ASM does not support static version.
31
44
- ASM on a private GKE cluster requires adding a firewall rule to open port 15017 if you want to use [automatic sidecar injection](https://cloud.google.com/service-mesh/docs/proxy-injection).
32
-
- Only one ASM per Google Cloud project is supported.
33
-
45
+
- One ASM mesh per Google Cloud project is supported.
34
46
35
47
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
36
48
## Inputs
37
49
38
50
| Name | Description | Type | Default | Required |
| asm\_dir | Name of directory to keep ASM resource config files. |`string`|`"asm-dir"`| no |
41
-
| asm\_version | ASM version to deploy. Available versions are documented in https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages|`string`|`"1.8"`| no |
52
+
| asm\_git\_tag | ASM git tag to deploy. This module supports versions `1.8` and `1.9`. You can get the exact `asm_git_tag` by running the command `install_asm --version`. The ASM git tab should be of the form `1.9.3-asm.2+config5`. You can also see all ASM git tags by running `curl https://storage.googleapis.com/csm-artifacts/asm/STABLE_VERSIONS`. You must provide the full and exact git tag. This variable is optional. Leaving it empty (default) will download the latest `install_asm` script for the version provided by the `asm_version` variable. |`string`|`""`| no |
53
+
| asm\_version | ASM version to deploy. This module supports versions `1.8` and `1.9`. Available versions are documented in https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages|`string`|`"1.9"`| no |
54
+
| ca | Sets CA option. Possible values are `meshca` or `citadel`. Additional documentation on Citadel is available at https://cloud.google.com/service-mesh/docs/scripted-install/gke-install#installation_with_citadel_as_the_ca.|`string`|`"meshca"`| no |
55
+
| ca\_certs | Sets CA certificate file paths when `ca` is set to `citadel`. These values must be provided when using Citadel as CA. Additional documentation on Citadel is available at https://cloud.google.com/service-mesh/docs/scripted-install/gke-install#installation_with_citadel_as_the_ca.|`map`|`{}`| no |
| cluster\_name | The unique name to identify the cluster in ASM. |`string`| n/a | yes |
58
+
| custom\_overlays | Comma separated list of custom\_overlay file paths. Works with in-cluster control plane only. Additional documentation available at https://cloud.google.com/service-mesh/docs/scripted-install/gke-install#installation_with_an_overlay_file|`list`|`[]`| no |
59
+
| enable\_all | Sets `--enable_all` option if true. |`bool`|`false`| no |
60
+
| enable\_cluster\_labels | Sets `--enable_cluster_labels` option if true. |`bool`|`false`| no |
61
+
| enable\_cluster\_roles | Sets `--enable_cluster_roles` option if true. |`bool`|`false`| no |
62
+
| enable\_gcp\_apis | Sets `--enable_gcp_apis` option if true. |`bool`|`false`| no |
63
+
| enable\_gcp\_components | Sets --enable\_gcp\_components option if true. Can be true or false. Available versions are documented in https://github.com/GoogleCloudPlatform/anthos-service-mesh-packages|`bool`|`false`| no |
64
+
| enable\_gcp\_iam\_roles | Sets `--enable_gcp_iam_roles` option if true. |`bool`|`false`| no |
65
+
| enable\_registration | Sets `--enable_registration` option if true. |`bool`|`false`| no |
44
66
| gcloud\_sdk\_version | The gcloud sdk version to use. Minimum required version is 293.0.0 |`string`|`"296.0.1"`| no |
67
+
| key\_file | The GCP Service Account credentials file path used to deploy ASM. |`string`|`""`| no |
45
68
| location | The location (zone or region) this cluster has been created in. |`string`| n/a | yes |
46
-
| managed | Whether the control plane should be managed. |`bool`|`false`| no |
69
+
| managed\_control\_plane | ASM managed control plane boolean. Determines whether to install ASM managed control plane. Installing ASM managed control plane does not install gateways. Documentation on how to install gateways with ASM MCP can be found at https://cloud.google.com/service-mesh/docs/managed-control-plane#install_istio_gateways_optional.|`bool`|`false`| no |
70
+
| mode | ASM mode for deployment. Supported mode is `install` only. |`string`|`"install"`| no |
71
+
| options | Comma separated list of options. Works with in-cluster control plane only. Supported options are documented in https://cloud.google.com/service-mesh/docs/enable-optional-features.|`list`|`[]`| no |
72
+
| outdir | Sets `--outdir` option. |`string`|`"none"`| no |
47
73
| project\_id | The project in which the resource belongs. |`string`| n/a | yes |
74
+
| service\_account | The GCP Service Account email address used to deploy ASM. |`string`|`""`| no |
48
75
| service\_account\_key\_file | Path to service account key file to auth as for running `gcloud container clusters get-credentials`. |`string`|`""`| no |
76
+
| skip\_validation | Sets `_CI_NO_VALIDATE` variable. Determines whether the script should perform validation checks for prerequisites such as IAM roles, Google APIs etc. |`bool`|`false`| no |
0 commit comments