Spotinst provides a Terraform Module to install and manage the Kubernetes controller.

The module uses the official Kubernetes provider to provision the required cluster resources.

module "ocean-controller" {
  source = "spotinst/ocean-controller/spotinst"

  # Credentials.
  spotinst_token   = "<spotinst_token>"
  spotinst_account = "<spotinst_account>"

  # Configuration.
  cluster_identifier = "<cluster_identifier>"
}