Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Plural
platform
terraform-google-kubernetes-engine
Commits
12c0dad4
Unverified
Commit
12c0dad4
authored
6 years ago
by
Jason Berlinsky
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge branch 'master' into internal/disable-color-in-ci
parents
ae976239
93340b19
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
CHANGELOG.md
+1
-0
CHANGELOG.md
README.md
+1
-0
README.md
cluster_regional.tf
+4
-2
cluster_regional.tf
cluster_zonal.tf
+4
-2
cluster_zonal.tf
variables.tf
+5
-0
variables.tf
with
15 additions
and
4 deletions
+15
-4
CHANGELOG.md
+
1
-
0
View file @
12c0dad4
...
...
@@ -8,6 +8,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Changed
*
Set
`horizontal_pod_autoscaling`
to
`true`
by default. #42
*
Add
`remove_default_node_pool`
set to
`false`
by default #15
## [v0.4.0] - 2018-12-19
### Added
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
-
0
View file @
12c0dad4
...
...
@@ -106,6 +106,7 @@ Then perform the following commands on the root folder:
| network | The VPC network to host the cluster in (required) | string | - | yes |
| network_policy | Enable network policy addon | string | `false` | no |
| network_project_id | The project ID of the shared VPC's host (for shared vpc support) | string | ``
| no |
| remove_default_node_pool | Boolean value determining removal of default node pool | bool | false | no |
| node_pools | List of maps containing node pools | list |
`<list>`
| no |
| node_pools_labels | Map of maps containing node labels by node-pool name | map |
`<map>`
| no |
| node_pools_tags | Map of lists containing node network tags by node-pool name | map |
`<map>`
| no |
...
...
This diff is collapsed.
Click to expand it.
cluster_regional.tf
+
4
-
2
View file @
12c0dad4
...
...
@@ -26,8 +26,8 @@ resource "google_container_cluster" "primary" {
region
=
"
${
var
.
region
}
"
additional_zones
=
[
"
${
coalescelist
(
compact
(
var
.
zones
),
sort
(
random_shuffle
.
available_zones
.
result
))
}
"
]
network
=
"
${data
.
google_compute_network
.
gke_network
.
self_link
}
"
subnetwork
=
"
${data
.
google_compute_subnetwork
.
gke_subnetwork
.
self_link
}
"
network
=
"
${
replace
(
data
.
google_compute_network
.
gke_network
.
self_link
,
"https://www.googleapis.com/compute/v1/"
,
""
)
}
"
subnetwork
=
"
${
replace
(
data
.
google_compute_subnetwork
.
gke_subnetwork
.
self_link
,
"https://www.googleapis.com/compute/v1/"
,
""
)
}
"
min_master_version
=
"
${
local
.
kubernetes_version
}
"
logging_service
=
"
${
var
.
logging_service
}
"
...
...
@@ -81,6 +81,8 @@ resource "google_container_cluster" "primary" {
service_account
=
"
${
lookup
(
var
.
node_pools
[
0
],
"service_account"
,
var
.
service_account
)
}
"
}
}
remove_default_node_pool
=
"
${
var
.
remove_default_node_pool
}
"
}
/******************************************
...
...
This diff is collapsed.
Click to expand it.
cluster_zonal.tf
+
4
-
2
View file @
12c0dad4
...
...
@@ -26,8 +26,8 @@ resource "google_container_cluster" "zonal_primary" {
zone
=
"
${
var
.
zones
[
0
]
}
"
additional_zones
=
[
"
${
slice
(
var
.
zones
,
1
,
length
(
var
.
zones
))
}
"
]
network
=
"
${data
.
google_compute_network
.
gke_network
.
self_link
}
"
subnetwork
=
"
${data
.
google_compute_subnetwork
.
gke_subnetwork
.
self_link
}
"
network
=
"
${
replace
(
data
.
google_compute_network
.
gke_network
.
self_link
,
"https://www.googleapis.com/compute/v1/"
,
""
)
}
"
subnetwork
=
"
${
replace
(
data
.
google_compute_subnetwork
.
gke_subnetwork
.
self_link
,
"https://www.googleapis.com/compute/v1/"
,
""
)
}
"
min_master_version
=
"
${
local
.
kubernetes_version
}
"
logging_service
=
"
${
var
.
logging_service
}
"
...
...
@@ -81,6 +81,8 @@ resource "google_container_cluster" "zonal_primary" {
service_account
=
"
${
lookup
(
var
.
node_pools
[
0
],
"service_account"
,
var
.
service_account
)
}
"
}
}
remove_default_node_pool
=
"
${
var
.
remove_default_node_pool
}
"
}
/******************************************
...
...
This diff is collapsed.
Click to expand it.
variables.tf
+
5
-
0
View file @
12c0dad4
...
...
@@ -117,6 +117,11 @@ variable "ip_range_services" {
description
=
"The secondary ip range to use for pods"
}
variable
"remove_default_node_pool"
{
description
=
"Remove default node pool while setting up the cluster"
default
=
false
}
variable
"node_pools"
{
type
=
"list"
description
=
"List of maps containing node pools"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment