Skip to content

sqills/terraform-spotinst-ocean-controller

 
 

Repository files navigation

Spot Ocean Controller Terraform Module

A Terraform module to install Ocean Controller.

Table of Contents

Usage

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

  # Credentials.
  spotinst_token   = var.spotinst_token
  spotinst_account = var.spotinst_account

  # Configuration.
  cluster_identifier = var.cluster_identifier
}

Examples

Requirements

Name Version
terraform >= 0.13.0
kubernetes >= 1.10.0

Providers

Name Version
kubernetes >= 1.10.0

Modules

No modules.

Resources

Name Type
kubernetes_cluster_role.this resource
kubernetes_cluster_role_binding.this resource
kubernetes_config_map.this resource
kubernetes_deployment.this resource
kubernetes_job.this resource
kubernetes_secret.this resource
kubernetes_service_account.this resource

Inputs

Name Description Type Default Required
acd_identifier A unique identifier used by the Ocean AKS Connector when importing an AKS cluster string null no
aks_connector_enabled Controls whether the Ocean AKS Connector should be deployed (requires a valid acd_identifier) bool true no
aks_connector_image Set the Docker image name for the Ocean AKS Connector that should be deployed string "spotinst/ocean-aks-connector" no
aks_connector_version Set the Docker version for the Ocean AKS Connector that should be deployed string "1.0.3" no
base_url Base URL to be used by the HTTP client string "" no
cluster_identifier Cluster identifier string n/a yes
controller_image Set the Docker image name for the Ocean Controller that should be deployed string "spotinst/kubernetes-cluster-controller" no
controller_version Set the Docker version for the Ocean Controller that should be deployed string "1.0.73" no
create_controller Controls whether the Ocean Controller should be deployed (it affects all resources) bool true no
disable_auto_update Disable the auto-update feature bool false no
enable_csr_approval Enable the CSR approval feature bool false no
image_pull_policy Image pull policy (one of: Always, Never, IfNotPresent) string "IfNotPresent" no
image_pull_secrets List of references to secrets in the same namespace to use for pulling the image list(string) [] no
proxy_url Proxy server URL to communicate through string "" no
resources_limits Definition of the maximum amount of compute resources allowed map(any) null no
resources_requests Definition of the minimum amount of compute resources required map(any) null no
spotinst_account Spot account ID string n/a yes
spotinst_token Spot Personal Access token string n/a yes
tolerations List of additional toleration objects, see: https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/pod#toleration list(any)
[
{
"effect": "NoExecute",
"key": "node.kubernetes.io/not-ready",
"operator": "Exists",
"toleration_seconds": 150
},
{
"effect": "NoExecute",
"key": "node.kubernetes.io/unreachable",
"operator": "Exists",
"toleration_seconds": 150
}
]
no

Outputs

No outputs.

Documentation

If you're new to Spot and want to get started, please checkout our Getting Started guide, available on the Spot Documentation website.

Getting Help

We use GitHub issues for tracking bugs and feature requests. Please use these community resources for getting help:

Community

Contributing

Please see the contribution guidelines.

License

Code is licensed under the Apache License 2.0.

Packages

No packages published

Languages

  • HCL 99.2%
  • Makefile 0.8%