-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.yaml
105 lines (95 loc) · 3.72 KB
/
README.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#
# Name of this project
name : Terraform module gke
# License of this project
license: "APACHE"
# Canonical GitHub repo
github_repo: clouddrove/terraform-gcp-gke
badges:
- name: "Latest Release"
image: "https://img.shields.io/github/release/clouddrove/terraform-gcp-gke.svg"
url: "https://github.com/clouddrove/terraform-gcp-gke/releases/latest"
- name: "tfsec"
image: "https://github.com/clouddrove/terraform-gcp-gke/actions/workflows/tfsec.yml/badge.svg"
url: "https://github.com/clouddrove/terraform-gcp-gke/actions/workflows/tfsec.yml"
- name: "Licence"
image: "https://img.shields.io/badge/License-APACHE-blue.svg"
url: "LICENSE.md"
- name: "Changelog"
image: "https://img.shields.io/badge/Changelog-blue"
url: "CHANGELOG.md"
prerequesties:
- name: Terraform
url: https://learn.hashicorp.com/terraform/getting-started/install.html
version: ">= 1.3"
providers:
- name: gcp
url: https://cloud.google.com/
version: ">= 5.9.0, < 6"
# description of this project
description: |-
Terraform module to create and manage GKE clusters on Google Cloud Platform.
# How to use this project
usage: |-
Here are some examples of how you can use this module in your inventory structure:
### Default gke
```hcl
module "gke-dev-jetic-cluster" {
source = "../../"
project_id = var.gcp_project_id
name = "cluster-1"
region = "us-central1"
zones = ["us-central1-c"]
network = "test-vpc-dev"
subnetwork = "dev-test"
ip_range_pods = "pods"
workload_config_audit_mode = "BASIC"
security_posture_mode = "BASIC"
kubernetes_version = "1.30.2-gke.1587003"
regional = true
logging_service = "logging.googleapis.com/kubernetes"
monitoring_service = "monitoring.googleapis.com/kubernetes"
enable_private_nodes = true
release_channel = "STABLE"
horizontal_pod_autoscaling = true
http_load_balancing = false
filestore_csi_driver = true
istio = false
network_policy = true
ip_range_services = "services"
create_service_account = false
cluster_resource_labels = { env = "test" }
service_account = "example@example.gserviceaccount.com"
remove_default_node_pool = true
disable_legacy_metadata_endpoints = true
deletion_protection = false
node_pools = [
{
name = "critical"
master_version = "1.30.2-gke.1587003"
machine_type = "g1-small"
node_locations = "us-central1-c"
min_count = 1
max_count = 1
local_ssd_count = 0
spot = true
disk_size_gb = 10
disk_type = "pd-standard"
image_type = "cos_containerd"
enable_gcfs = false
enable_gvnic = false
logging_variant = "DEFAULT"
auto_repair = true
auto_upgrade = true
create_service_account = false
service_account = "example@example.gserviceaccount.com"
preemptible = false
initial_node_count = 1
enable_node_pool_autoscaling = false
enable_private_nodes = true
}
```