/terraform-spotinst-ocean-controller

A Terraform module to install Ocean Controller.

Primary LanguageHCLApache License 2.0Apache-2.0

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

Resources

This module creates and manages the following resources:

  • kubernetes_secret
  • kubernetes_config_map
  • kubernetes_service_account
  • kubernetes_cluster_role
  • kubernetes_cluster_role_binding
  • kubernetes_deployment

Requirements

Name Version
terraform >= 0.12.26
kubernetes >= 1.13.0
null >= 3.0.0

Providers

Name Version
kubernetes >= 1.13.0
null >= 3.0.0

Modules

No Modules.

Resources

Name
kubernetes_cluster_role
kubernetes_cluster_role_binding
kubernetes_config_map
kubernetes_deployment
kubernetes_secret
kubernetes_service_account
null_resource

Inputs

Name Description Type Default Required
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 Ocean Controller should be created (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
module_depends_on List of modules or resources this module depends on list(any) [] no
proxy_url Proxy server URL to communicate through string "" no
spotinst_account Spot account ID string n/a yes
spotinst_token Spot Personal Access token string n/a yes

Outputs

No output.

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.