k8s-cluster

Creates a GKE cluster and a default nodegroup to host your applications in

This module creates a GKE cluster, and a default node pool to host your applications in. This needs to be added in the environment Opta yml if you wish to deploy services as Opta services run on Kubernetes.

Fields

  • max_nodes - Optional. The maximum number of nodes to be set by the autoscaler in for the default nodegroup. Default 5
  • min_nodes - Optional. The minimum number of nodes to be set by the autoscaler in for the default nodegroup. Default 1
  • node_disk_size - Optional. The size of disk to give the nodes' vms in GB. Default 20
  • node_instance_type - Optional. The gcloud machine type for the nodes. Default n2-highcpu-4
  • gke_channel - Optional. The GKE K8s release channel to bind the cluster too. Gives you automatic K8s version management for the lcuster and node pools. Default REGULAR

Outputs

  • k8s_endpoint - The endpoint to communicate to the kubernetes cluster through.
  • k8s_ca_data - The certificate authority used by the kubernetes cluster for ssl.
  • k8s_cluster_name - The name of the kubernetes cluster.
Last modified September 22, 2021: Updating latest references (62bb6e2)