Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/padok-team/terraform-google-gke
Terraform module which creates Google Kubernetes Engine resources on GCP.
https://github.com/padok-team/terraform-google-gke
gke google google-cloud kubernetes ready-to-use terraform
Last synced: about 2 months ago
JSON representation
Terraform module which creates Google Kubernetes Engine resources on GCP.
- Host: GitHub
- URL: https://github.com/padok-team/terraform-google-gke
- Owner: padok-team
- License: apache-2.0
- Created: 2021-10-29T09:30:20.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T20:23:28.000Z (3 months ago)
- Last Synced: 2024-10-26T14:15:13.273Z (3 months ago)
- Topics: gke, google, google-cloud, kubernetes, ready-to-use, terraform
- Language: HCL
- Homepage:
- Size: 225 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Google GKE Terraform module
Terraform module which creates **Google Kubernetes Engine** resources on **GCP**.
## Modules
No modules.
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [location](#input\_location) | The zone or region to deploy the cluster to. It defines if cluster is regional or zonal | `string` | n/a | yes |
| [name](#input\_name) | The name of the GKE cluster. | `string` | n/a | yes |
| [network](#input\_network) | The network parameters used to deploy the resources |object({| n/a | yes |
private = bool // Determines if the control plane has a public IP or not.
subnet_self_link = string // The self link for subnetwork. It's required for shared VPC.
pods_range_name = string // The name of pod range created in network.
services_range_name = string // The name of service range created in network.
master_cidr = string // The private ip range to use for control plane. It can not be created in network module.
master_allowed_ips = list(map(string)) // The ips to whitelist to access master.
webhook_ports = list(string) // The ports to open to allow GKE master nodes to connect to admission controllers/webhooks.
})
| [project\_id](#input\_project\_id) | The project to deploy the ressources to. | `string` | n/a | yes |
| [registry\_project\_ids](#input\_registry\_project\_ids) | The project ids on which registry access will be granted. | `list(string)` | n/a | yes |
| [logging](#input\_logging) | Enables Stackdriver logging for workloads | `bool` | `false` | no |
| [maintenance\_start\_time](#input\_maintenance\_start\_time) | Time window specified for daily maintenance operations. Specify start\_time in RFC3339 format 'HH:MM', where HH : [00-23] and MM : [00-59] GMT. | `string` | `"00:00"` | no |
| [node\_pools](#input\_node\_pools) | The node pools to create and add to the cluster. |map(object({| `{}` | no |
name = string
locations = list(string) // Zones to deploy the nodes into
min_size = string
max_size = string
machine_type = string // The GCE machine type the pool is made of.
preemptible = bool
taints = list(map(string))
labels = map(string)
}))
| [release\_channel](#input\_release\_channel) | The release channel to look for latest versions on. | `string` | `"REGULAR"` | no |
| [workload\_identity\_pool](#input\_workload\_identity\_pool) | Custom workload identity pool to be used, default will be the project default one | `string` | `""` | no |## Outputs
| Name | Description |
|------|-------------|
| [command\_to\_connect](#output\_command\_to\_connect) | The gcloud command to run to connect to the cluster. |
| [node\_network\_tag](#output\_node\_network\_tag) | If you want to create firewall rules on node pools, use this network tag |
| [workload\_identity\_pool](#output\_workload\_identity\_pool) | Identity pool for the GKE cluster, used to give access to GCP SA from K8S SA |## License
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
See [LICENSE](LICENSE) for full details.
```text
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License athttps://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
```