A Terraform module for deploying the Terraform Cloud for Business Agent in Kubernetes
provider "kubernetes" {}
module "terraform-cloud-agent-kubernetes" {
source = "redeux/terraform-cloud-agent/kubernetes"
version = "0.1.0"
namespace = "terraform-cloud-agent"
create_namespace = true
agent_name = "example-agent"
agent_token = "myagent.atlasv1.secrettoken"
cluster_access = true
}
Name | Version |
---|---|
terraform | >= 0.14 |
kubernetes | >= 2.0.0 |
Name | Version |
---|---|
kubernetes | >= 2.0.0 |
No modules.
Name | Type |
---|---|
kubernetes_cluster_role.tfc_agent_role | resource |
kubernetes_cluster_role_binding.tfc_agent_cluster_role_binding | resource |
kubernetes_config_map.tfc_agent_configuration | resource |
kubernetes_deployment.tfc_agent | resource |
kubernetes_namespace.tfc_agent_namespace | resource |
kubernetes_secret.tfc_agent_token | resource |
kubernetes_service_account.tfc_agent_service_account | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
agent_auto_update | By default, the agent will automatically update itself to the latest minor version | string |
"minor" |
no |
agent_image | Name of the Terraform Cloud Agent docker image. | string |
"hashicorp/tfc-agent" |
no |
agent_log_level | Available log levels are info, error, warn, debug, and trace. | string |
"error" |
no |
agent_name | The TFC agent token description defined in TFC at app//settings/agents. | string |
n/a | yes |
agent_replicas | Replicacount of the terraform cloud agent deployment. | number |
1 |
no |
agent_token | The TFC agent token generated when the agent was created. | string |
n/a | yes |
agent_version | Version of the Terraform Cloud Agent docker image. | string |
"latest" |
no |
cluster_access | When true, provides the agent access to the cluster to manage Kubernetes resources. | bool |
false |
no |
cluster_access_rbac_api_groups | Additional rbac api groups for the rbac role | list(string) |
[] |
no |
cluster_access_rbac_resources | Additional rbac resources for the rbac role | list(string) |
[] |
no |
create_namespace | When true, creates the namespace for the Terraform Cloud Agent. | bool |
false |
no |
limits_cpu | CPU hard limits. | string |
"2" |
no |
limits_memory | Memory hard limits. | string |
"2Gi" |
no |
namespace | The namespace to deploy the agent into. Unless create_namespace is true, the namespace must already exist. | string |
n/a | yes |
requests_cpu | CPU requests. | string |
"500m" |
no |
requests_memory | Memory requests. | string |
"250Mi" |
no |
tfc_url | The Terraform Cloud endpoint. Must be changed if using Terraform Enterprise. | string |
"https://app.terraform.io" |
no |
No outputs.
Note: This is a community module and is not supported by HashiCorp.