Terraofrm module to deploy cloudwatch_exporter on kubernetes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
david e6cd1a7eac feat: Disable the automount for service account token 2 months ago
examples/default feat: (BREAKING CHANGE) Update kubernetes terraform provider to version 2.x 2 months ago
.gitignore feat: initial version of the module 1 year ago
.pre-commit-config.yaml chore: bump pre-commit hooks 2 months ago
AUTHORS feat: initial version of the module 1 year ago
CHANGELOG.md feat: Disable the automount for service account token 2 months ago
Jenkinsfile feat: initial version of the module 1 year ago
LICENSE feat: initial version of the module 1 year ago
README.md feat: Allow to customize the cpu and memory request/limit in the deployment 2 months ago
main.tf feat: Disable the automount for service account token 2 months ago
outputs.tf feat: All prometheus_alert_group output and vars 1 year ago
variables.tf feat: Allow to customize the cpu and memory request/limit in the deployment 2 months ago
versions.tf feat: (BREAKING CHANGE) Update kubernetes terraform provider to version 2.x 2 months ago

README.md

terraform-module-kubernetes-cloudwatch-exporter

Terraform module to deploy cloudwatch_exporter on kubernetes.

Requirements

Name Version
terraform >= 0.14
kubernetes >= 2.0.0
random >= 2.0.0

Providers

Name Version
kubernetes >= 2.0.0
random >= 2.0.0

Modules

No modules.

Resources

Name Type
kubernetes_config_map.this resource
kubernetes_deployment.this resource
kubernetes_secret.this resource
kubernetes_service.this resource
random_string.selector resource

Inputs

Name Description Type Default Required
access_key Client ID that will be used by the cloudwatch-exporter. string n/a yes
annotations Additionnal annotations that will be merged on all resources. map {} no
config_map_annotations Additionnal annotations that will be merged for the config map. map {} no
config_map_labels Additionnal labels that will be merged for the config map. map {} no
config_map_name Name of the config map that will be created. string "cloudwatch-exporter" no
configuration Object representating the yaml configuration for cloudwatch-exporter. any n/a yes
cpu_limit Maximum amount of cpu that can be used by the pod. string "500m" no
cpu_request Amount of cpu to request at pod startup. string "300m" no
deployment_annotations Additionnal annotations that will be merged on the deployment. map {} no
deployment_labels Additionnal labels that will be merged on the deployment. map {} no
deployment_name Name of the deployment that will be create. string "cloudwatch-exporter" no
deployment_template_annotations Additionnal annotations that will be merged on the deployment template. map {} no
deployment_template_labels Additionnal labels that will be merged on the deployment template. map {} no
enabled Whether or not to enable this module. bool true no
image_name Name of the docker image to use. string "prom/cloudwatch-exporter" no
image_pull_policy Image pull policy on the main container. string "IfNotPresent" no
image_version Tag of the docker image to use. string "latest" no
labels Additionnal labels that will be merged on all resources. map {} no
memory_limit Maximum amount of memory that can be used by the pod. string "512Mi" no
memory_request Amount of memory to request at pod startup. string "256Mi" no
namespace Namespace in which the module will be deployed. string "default" no
prometheus_alert_groups_rules_annotations Map of strings that will be merge on all prometheus alert groups rules annotations. map {} no
prometheus_alert_groups_rules_labels Map of strings that will be merge on all prometheus alert groups rules labels. map {} no
replicas Number of replicas to deploy. number 1 no
secret_annotations Additionnal annotations that will be merged for the secret. map {} no
secret_key Client secret that will be used by the cloudwatch-exporter. string n/a yes
secret_labels Additionnal labels that will be merged for the secret. map {} no
secret_name Name of the secret that will be created. string "cloudwatch-exporter" no
service_annotations Additionnal annotations that will be merged for the service. map {} no
service_labels Additionnal labels that will be merged for the service. map {} no
service_name Name of the service that will be create string "cloudwatch-exporter" no

Outputs

Name Description
config_map_annotations Map of annotations that are configured on the config_map.
config_map_labels Map of labels that are configured on the config_map.
config_map_name Name of the config_map created by the module.
deployment_annotations Map of annotations that are configured on the deployment.
deployment_labels Map of labels that are configured on the deployment.
deployment_name Name of the deployment created by the module.
deployment_template_annotations Map of annotations that are configured on the deployment.
deployment_template_labels Map of labels that are configured on the deployment.
image_name Name of the docker image used for the cloudwatch-exporter container.
image_pull_policy Image pull policy defined on the cloudwatch-exporter container.
image_version Tag of the docker image used for the cloudwatch-exporter container.
namespace Name of the namespace in which the resources have been deployed.
prometheus_alert_groups List of object representing prometheus alert groups you can import in prometheus to alert you in case of problems.
secret_annotations Map of annotations that are configured on the secret.
secret_labels Map of labels that are configured on the secret.
secret_name Name of the secret created by the module.
selector_labels Map of the labels that are used as selectors.
service_annotations Map of annotations that are configured on the service.
service_labels Map of labels that are configured on the service.
service_name Name of the service created by the module.
service_port Port number of the service port.
service_port_name Name of the service port.