|
1 | 1 | # Terraform Kubernetes Engine Module |
2 | 2 |
|
3 | | -This module handles opinionated Google Cloud Platform Kubernetes Engine cluster creation and configuration with Node Pools, IP MASQ, Network Policy, etc.{% if private_cluster %} This particular submodule creates a [private cluster](https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters){% endif %}{% if beta_cluster %}Beta features are enabled on this submodule.{% endif %} |
| 3 | +This module handles opinionated Google Cloud Platform Kubernetes Engine cluster creation and configuration with Node Pools, IP MASQ, Network Policy, etc.{% if private_cluster %} This particular submodule creates a [private cluster](https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters){% endif %}{% if beta_cluster %}Beta features are enabled in this submodule.{% endif %} |
4 | 4 |
|
5 | 5 | The resources/services/activations/deletions that this module will create/trigger are: |
6 | 6 | - Create a GKE cluster with the provided addons |
7 | 7 | - Create GKE Node Pool(s) with provided configuration and attach to cluster |
8 | 8 | - Replace the default kube-dns configmap if `stub_domains` are provided |
9 | 9 | - Activate network policy if `network_policy` is true |
10 | | -- Add `ip-masq-agent` configmap with provided `non_masquerade_cidrs` if `network_policy` is true |
| 10 | +- Add `ip-masq-agent` configmap with provided `non_masquerade_cidrs` if `configure_ip_masq` is true |
| 11 | + |
| 12 | +Sub modules are provided from creating private clusters, beta private clusters, and beta public clusters as well. Beta sub modules allow for the use of various GKE beta features. See the modules directory for the various sub modules. |
11 | 13 |
|
12 | 14 | {% if private_cluster %} |
13 | 15 | **Note**: You must run Terraform from a VM on the same VPC as your cluster, otherwise there will be issues connecting to the GKE master. |
@@ -112,6 +114,7 @@ module "gke" { |
112 | 114 | } |
113 | 115 | ``` |
114 | 116 |
|
| 117 | +<!-- do not understand what this is about --> |
115 | 118 | Then perform the following commands on the root folder: |
116 | 119 |
|
117 | 120 | - `terraform init` to get the plugins |
@@ -180,14 +183,15 @@ In order to operate with the Service Account you must activate the following API |
180 | 183 | The project has the following folders and files: |
181 | 184 |
|
182 | 185 | - /: root folder |
183 | | -- /examples: examples for using this module |
184 | | -- /helpers: Helper scripts |
185 | | -- /scripts: Scripts for specific tasks on module (see Infrastructure section on this file) |
186 | | -- /test: Folders with files for testing the module (see Testing section on this file) |
187 | | -- /main.tf: main file for this module, contains all the resources to create |
188 | | -- /variables.tf: all the variables for the module |
189 | | -- /output.tf: the outputs of the module |
190 | | -- /readme.MD: this file |
| 186 | +- /examples: Examples for using this module and sub module. |
| 187 | +- /helpers: Helper scripts. |
| 188 | +- /scripts: Scripts for specific tasks on module (see Infrastructure section on this file). |
| 189 | +- /test: Folders with files for testing the module (see Testing section on this file). |
| 190 | +- /main.tf: `main` file for the public module, contains all the resources to create. |
| 191 | +- /variables.tf: Variables for the public cluster module. |
| 192 | +- /output.tf: The outputs for the public cluster module. |
| 193 | +- /README.MD: This file. |
| 194 | +- /modules: Private and beta sub modules. |
191 | 195 |
|
192 | 196 | ## Templating |
193 | 197 |
|
|
0 commit comments