This module installs the Opencost Helm chart onto a Kubernetes cluster that has been created by the AWS-EKS terraform module or the AKS terraform module
module "opencost" {
source = "git::https://gitlab.b2b.regn.net/terraform/modules/kubernetes/terraform-lnrs-helm-opencost.git?ref=v1.0.0-rc.1"
release_name = "opencost"
namespace = "opencost"
cloud = "aws"
cluster_name = "iob-eks-1"
enable_ui = true
ingress_hostname = "opencost-eks-1.iob.eu-west-1.dsg.lnrsg.io"
thanos_enabled = true
}
module "opencost" {
source = "git::https://gitlab.b2b.regn.net/terraform/modules/kubernetes/terraform-lnrs-helm-opencost.git?ref=v1.0.0-rc.1"
release_name = "opencost"
namespace = "opencost"
cloud = "azure"
cluster_name = "iob-eks-1"
enable_ui = true
ingress_hostname = "opencost-aks-1.test.iob.azure.lnrsg.io"
thanos_enabled = true
}
This module requires the following versions to be configured in the workspace terraform {}
block.
Version |
---|
>= 1.3.3, != 1.3.4 |
Name | Version |
---|---|
Helm | >= 2.9.0 |
kubectl | >= 1.14.0 |
kubernetes | >= 2.23.0 |
This module exposes the following variables.
Name | Variable | Type | Default | Required |
---|---|---|---|---|
account_id | The account ID. | string |
n/a | yes |
cloud | Cloud that this will be run on. AWS and Azure are currently supported. | string |
n/a | yes |
cluster_name | The name of the EKS cluster that has been created. | string |
n/a | yes |
cluster_oidc_issuer_url | The OIDC issuer url for the cluster. | string |
n/a | yes |
enable_ui | Enable UI. | bool |
true |
no |
ingress_annotations | The annotations for ingress resources. | map(string) |
{} |
no |
ingress_hostname | Ingress hostname. | string |
"" |
no |
namespace | Namespace to create and install into. | string |
n/a | yes |
partition | AWS partition. | string |
"aws" |
no |
release_name | Name of the release. | string |
n/a | yes |
tags | Tags to apply to all resources. | map(string) |
{} |
no |
thanos_enabled | Thanos enabled. | bool |
true |
no |
Variable | Description | Type |
---|