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
## configure kubernetes provider## write out a copy of the kubeconfigresource"local_file""kubeconfig" {
content="${module.gke.kubeconfig}"filename="/tmp/kubeconfig"depends_on=["module.gke"]
}
provider"kubernetes" {
version="~> 1.6.2"config_path="/tmp/kubeconfig"load_config_file=true
}
Inputs
Name
Description
Type
Default
Required
gcloud_cmd
Whether to write a Kubectl config file containing the cluster configuration. Saved to kubeconfig_output_path.
string
"gcloud"
no
gke_version
gke master/node version
string
"latest"
no
initial_node_count
number of gke nodes to start
string
"3"
no
machine_type
machine type of default gke pool nodes
string
"n1-standard-1"
no
name
gke cluster name
string
n/a
yes
Outputs
Name
Description
cluster_ca_certificate
host
kubernetes cluster api endpoint host
id
kubeconfig
kubeconfig format string
token
kubernetes cluster access token
pre-commit hooks
go get github.com/segmentio/terraform-docs
pip install --user pre-commit
pre-commit install
# manual run
pre-commit run -a