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: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,6 +198,7 @@ Then perform the following commands on the root folder:
198
198
| resource\_usage\_export\_dataset\_id | The ID of a BigQuery Dataset for using BigQuery as the destination of resource usage export. |`string`|`""`| no |
199
199
| service\_account | The service account to run nodes as if not overridden in `node_pools`. The create\_service\_account variable default value (true) will cause a cluster-specific service account to be created. |`string`|`""`| no |
200
200
| service\_external\_ips | Whether external ips specified by a service will be allowed in this cluster |`bool`|`false`| no |
201
+
| shadow\_firewall\_rules\_log\_config | The log\_config for shadow firewall rules. You can set this variable to `null` to disable logging. | <pre>object({<br> metadata = string<br> })</pre> | <pre>{<br> "metadata": "INCLUDE_ALL_METADATA"<br>}</pre> | no |
201
202
| shadow\_firewall\_rules\_priority | The firewall priority of GKE shadow firewall rules. The priority should be less than default firewall, which is 1000. |`number`|`999`| no |
202
203
| skip\_provisioners | Flag to skip all local-exec provisioners. It breaks `stub_domains` and `upstream_nameservers` variables functionality. |`bool`|`false`| no |
203
204
| stub\_domains | Map of stub domains and their resolvers to forward DNS queries for a certain domain to an external DNS server |`map(list(string))`|`{}`| no |
Copy file name to clipboardExpand all lines: autogen/main/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,7 +218,7 @@ The node_pools variable takes the following parameters:
218
218
| name | The name of the node pool || Required |
219
219
{% if beta_cluster %}
220
220
| placement_policy | Placement type to set for nodes in a node pool. Can be set as [COMPACT](https://cloud.google.com/kubernetes-engine/docs/how-to/compact-placement#overview) if desired | Optional |
221
-
| pod_range | The ID of the secondary range for pod IPs. || Optional |
221
+
| pod_range | The name of the secondary range for pod IPs. || Optional |
222
222
{% endif %}
223
223
| node_count | The number of nodes in the nodepool when autoscaling is false. Otherwise defaults to 1. Only valid for non-autoscaling clusters || Required |
224
224
| node_locations | The list of zones in which the cluster's nodes are located. Nodes must be in the region of their regional cluster or in the same region as their cluster's zone for zonal clusters. Defaults to cluster level node locations if nothing is specified | " " | Optional |
name = "gke-shadow-${substr(var.name, 0, min(25, length(var.name)))}-inkubelet"
231
+
description = "Managed by terraform GKE module: A shadow firewall rule to match the default rule allowing worker nodes & pods communication to kubelet."
232
+
project = local.network_project_id
233
+
network = var.network
234
+
priority = var.shadow_firewall_rules_priority - 1 # rule created by GKE robot have prio 999
Copy file name to clipboardExpand all lines: docs/private_clusters.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,16 @@ If you are using these features with a private cluster, you will need to either:
20
20
21
21
If you are going to isolate your GKE private clusters from internet access you could check [this guide](https://medium.com/google-cloud/completely-private-gke-clusters-with-no-internet-connectivity-945fffae1ccd) and the associated [repo](https://github.com/andreyk-code/no-inet-gke-cluster).
22
22
23
+
## Discontiguous multi-Pod CIDR
24
+
If you are going to use [discontiguous multi-Pod CIDR](https://cloud.google.com/kubernetes-engine/docs/how-to/multi-pod-cidr) it can happen that GKE robot will not update `gke-[cluster-name]-[cluster-hash]-all` and other firewall rules automatically when you add a new node pool (as stated in [documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/multi-pod-cidr#modified_firewall_rule)). You can prevent this from happening, by using a workaround with shadow firewall rules:
25
+
```
26
+
module "gke" {
27
+
...
28
+
add_shadow_firewall_rules = true
29
+
shadow_firewall_rules_log_config = null # to save some $ on logs
Copy file name to clipboardExpand all lines: modules/beta-autopilot-private-cluster/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,7 @@ Then perform the following commands on the root folder:
125
125
| resource\_usage\_export\_dataset\_id | The ID of a BigQuery Dataset for using BigQuery as the destination of resource usage export. |`string`|`""`| no |
126
126
| service\_account | The service account to run nodes as if not overridden in `node_pools`. The create\_service\_account variable default value (true) will cause a cluster-specific service account to be created. |`string`|`""`| no |
127
127
| service\_external\_ips | Whether external ips specified by a service will be allowed in this cluster |`bool`|`false`| no |
128
+
| shadow\_firewall\_rules\_log\_config | The log\_config for shadow firewall rules. You can set this variable to `null` to disable logging. | <pre>object({<br> metadata = string<br> })</pre> | <pre>{<br> "metadata": "INCLUDE_ALL_METADATA"<br>}</pre> | no |
128
129
| shadow\_firewall\_rules\_priority | The firewall priority of GKE shadow firewall rules. The priority should be less than default firewall, which is 1000. |`number`|`999`| no |
129
130
| skip\_provisioners | Flag to skip all local-exec provisioners. It breaks `stub_domains` and `upstream_nameservers` variables functionality. |`bool`|`false`| no |
130
131
| stub\_domains | Map of stub domains and their resolvers to forward DNS queries for a certain domain to an external DNS server |`map(list(string))`|`{}`| no |
0 commit comments