Complete Autopilot GKE

Terraform scripts to create a complete GCP Autopilot GKE using the module gke.

To create a complete GCP Autopilot GKE:

terraform init
terraform plan
terraform apply

To delete all resource:

terraform destroy

Requirements

Name

Version

terraform

>= 1.0

external

~> 2.3.1

google

~> 6.16.0

local

~> 2.4.0

null

~> 3.2.1

Providers

Name

Version

external

~> 2.3.1

google

~> 6.16.0

local

~> 2.4.0

null

~> 3.2.1

Modules

Name

Source

Version

gke

../../..

n/a

vpc

../../../../../../networking/gcp/vpc

n/a

Resources

Name

Type

local_file.date_sh

resource

null_resource.timestamp

resource

external_external.static_timestamp

data source

google_client_openid_userinfo.current

data source

Inputs

Name

Description

Type

Default

Required

project

Project name

string

n/a

yes

region

The region to host the cluster in

string

"europe-west9"

no

Outputs

Name

Description

ca_certificate

Cluster ca certificate (base64 encoded).

cluster_id

GKE cluster ID.

endpoint

Cluster endpoint

intranode_visibility_enabled

Whether intra-node visibility is enabled.

istio_enabled

Whether Istio is enabled.

kubeconfig_path

Path where the kubeconfig file is saved.

location

Cluster location (region if regional cluster, zone if zonal cluster)

name

GKE cluster name.

node_pools_names

List of node pools names.

region

Cluster region.

service_account

The service account to default running nodes as if not overridden in node_pools.

type

GKE cluster type (regional / zonal).

zones

List of zones in which the cluster resides