gke-cluster

castai/gke-cluster/castai

Terraform Module HCL CASTAI

CAST AI terraform module for connecting an GKE cluster

Install
module "gke-cluster" {
source = "castai/gke-cluster/castai"
version = "10.4.0"
}
plain text: /constructs/tfmod-castai-gke-cluster-castai/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform module for connecting a GKE cluster to CAST AI ================== Website: https://www.cast.ai Requirements ------------ - Terraform 0.13+ Using the module ------------ A module to connect a GKE cluster to CAST AI. Requires castai/castai and hashicorp/google providers to be configured. For Phase 2 onboarding credentials from terraform-gke-iam are required ```hcl module "castai_gke_cluster" { source = "castai/gke-cluster/castai" project_id = var.project_id gke_cluster_name = var.cluster_name gke_cluster_location = module.gke.location # cluster region or zone gke_credentials = module.castai_gke_iam.private_key delete_nodes_on_disconnect = var.delete_nodes_on_disconnect default_node_configuration = module.castai_gke_cluster.node_configurations["default"] node_configurations = { defa

Inputs (50)
NameTypeDescriptionDefault
gke_cluster_locationstringLocation of the cluster to be connected to CAST AI. Can be region or zone for zo required
project_idstringThe project id from GCP required
gke_credentialsstringOptional GCP Service account credentials.json required
gke_cluster_namestringName of the cluster to be connected to CAST AI. required
castai_components_setsmap(string)Optional additional 'set' configurations for every CAST AI Helm release.{}
node_templatesanyMap of node templates to create{}
cluster_controller_versionstringVersion of castai-cluster-controller helm chart. Default latestnull
kvisor_versionstringVersion of kvisor chart. If not provided, latest version will be used.null
evictor_valueslist(string)List of YAML formatted string values for evictor helm chart[]
install_workload_autoscaler_exporterboolOptional flag for installation of workload autoscaler exporter (custom metrics efalse
ai_optimizer_versionstringVersion of castai-ai-optimizer helm chart. Default latestnull
node_configurationsanyMap of GKE node configurations to create{}
evictor_ext_valueslist(string)List of YAML formatted string with evictor-ext values[]
install_omniboolOptional flag for installation of Omni productfalse
castware_api_urlstringURL of CAST AI API to be used from within the cluster by Cast AI applications (C""
spot_handler_valueslist(string)List of YAML formatted string values for spot-handler helm chart[]
wait_for_cluster_readyboolWait for cluster to be ready before finishing the module execution, this option false
workload_autoscaler_exporter_versionstringVersion of castai-workload-autoscaler-exporter helm chart. Default latestnull
pod_mutator_versionstringVersion of castai-pod-mutator helm chart. Default latestnull
install_ai_optimizerboolOptional flag for installation of AI Optimizer (https://docs.cast.ai/docs/gettinfalse
evictor_ext_versionstringVersion of castai-evictor-ext chart. Default latestnull
pod_pinner_versionstringVersion of pod-pinner helm chart. Default latestnull
api_urlstringURL of alternative CAST AI API to be used during development or testing"https://api.cast.ai"
kvisor_controller_extra_argsmap(string)⚠️ DEPRECATED: use kvisor_values instead (see example: https://github.com/castai{ "image-scan-enabled": "true", "kub
… and 10 more inputs
Outputs (4)
cluster_id — CAST.AI cluster id, which can be used for accessing cluster data using API
organization_id — CAST.AI organization id of the cluster
castai_node_configurations — Map of node configurations ids by name
castai_node_templates — Map of node template by name
Resources (8)
castai_autoscalercastai_gke_clustercastai_node_configurationcastai_node_configuration_defaultcastai_node_templatecastai_workload_scaling_policyhelm_releasenull_resource
Details
FrameworkTerraform Module
LanguageHCL
Version10.4.0
Cloud CASTAI
★ Stars0
Forks9
Total downloads86.3k
Inputs50
Outputs4
Resources8
LicenseMIT
Namespacecastai
Updated