Skip to Content
InstallationTerraform Installation

Terraform Installation


This guide will walk you through the process of installing ScaleOps via Terraform.

Overview

ScaleOps provides a Terraform module that:

  • Creates the ScaleOps namespace
  • Applies the ScaleOps CRDs and waits for them to be established
  • Installs the ScaleOps Helm release

Prerequisites

  • Terraform 1.0 or higher
  • kubectl access to the target cluster
  • ScaleOps token

Usage

Configure the helm and kubernetes providers for your cluster, then call the ScaleOps module:

data "aws_eks_cluster" "this" { name = "<CLUSTER_NAME>" } provider "kubernetes" { host = data.aws_eks_cluster.this.endpoint cluster_ca_certificate = base64decode(data.aws_eks_cluster.this.certificate_authority[0].data) exec { api_version = "client.authentication.k8s.io/v1beta1" command = "aws" # Requires the AWS CLI to be installed where Terraform is executed args = ["eks", "get-token", "--cluster-name", "<CLUSTER_NAME>"] } } provider "helm" { kubernetes { host = data.aws_eks_cluster.this.endpoint cluster_ca_certificate = base64decode(data.aws_eks_cluster.this.certificate_authority[0].data) exec { api_version = "client.authentication.k8s.io/v1beta1" command = "aws" args = ["eks", "get-token", "--cluster-name", "<CLUSTER_NAME>"] } } } module "scaleops" { source = "https://scriptshelf.scaleops.com/install/integrate.tf.tar.gz" scaleops_token = "<SCALEOPS_TOKEN>" cluster_name = "<CLUSTER_NAME>" }

Download Module / Preview

Then apply the configuration:

terraform init terraform apply

Note: The module applies CRDs using kubernetes_manifest, which requires the cluster to be reachable during terraform plan.

Inputs

NameDescriptionDefaultRequired
scaleops_tokenScaleOps token for authentication to the ScaleOps registry-Yes
cluster_nameName of the cluster where ScaleOps will be installed-Yes
chart_versionScaleOps Helm chart version, or latestlatestNo
scaleops_namespaceNamespace where ScaleOps will be installedscaleops-systemNo
helm_repositoryScaleOps Helm chart repository URLhttps://registry.scaleops.com/chartsNo
image_registryContainer image registry for ScaleOps imagesregistry.scaleops.comNo
extra_valuesAdditional Helm values as YAML documents[]No