Terraform module that will deploy kube-state-metrics 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.
Christophe van de Kerchove e9a65116e1
feat: Update RBAC for kube-state-metrics
2 weeks ago
examples/default tech: Set example to use KinD 8 months ago
.gitignore feat: Intial release of version 9 months ago
.pre-commit-config.yaml feat: Update RBAC for kube-state-metrics 2 weeks ago
AUTHORS feat: Intial release of version 9 months ago
CHANGELOG.md feat: Update RBAC for kube-state-metrics 2 weeks ago
Jenkinsfile tech: Set example to use KinD 8 months ago
LICENSE feat: Intial release of version 9 months ago
README.md fix: Fixed several alerts and typo's 8 months ago
main.tf feat: Update RBAC for kube-state-metrics 2 weeks ago
outputs.tf tech: Use KinD for testing 8 months ago
variables.tf tech: Use KinD for testing 8 months ago
versions.tf feat: Intial release of version 9 months ago

README.md

terraform-module-kubernetes-kube-state-metrics

Terraform module that will deploy kube-state-metrics on kubernetes.

Requirements

Name Version
terraform >= 0.12
kubernetes >= 1.10.0
random >= 2.0.0

Providers

Name Version
kubernetes >= 1.10.0
random >= 2.0.0

Inputs

Name Description Type Default Required
annotations Additionnal annotations that will be merged on all resources. map {} no
cluster_role_annotations Additionnal annotations that will be merged for the cluster_role. map {} no
cluster_role_binding_annotations Additionnal annotations that will be merged for the cluster_role_binding. map {} no
cluster_role_binding_labels Additionnal labels that will be merged for the cluster_role_binding. map {} no
cluster_role_binding_name Name of the cluster_role_binding that will be create string "kube-state-metrics" no
cluster_role_labels Additionnal labels that will be merged for the cluster_role. map {} no
cluster_role_name Name of the cluster_role that will be create string "kube-state-metrics" 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 "kube-state-metrics" no
deployment_service_account_name Only if rbac_enabled is false, name of the service account to be used by the container. string null no
enabled Whether or not to enable this module. bool true no
image_name Name of the docker image to use. string "quay.io/coreos/kube-state-metrics" no
image_pull_policy Image pull policy on the main container. string "IfNotPresent" no
image_version Tag of the docker image to use. string "v1.6.0" no
labels Additionnal labels that will be merged on all resources. map {} no
namespace Namespace in which the module will be deployed. string "kube-system" 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
rbac_enabled Whether or not to enabled rbac on the module. bool true no
replicas Number of replicas to deploy. number 1 no
service_account_annotations Additionnal annotations that will be merged for the service_account. map {} no
service_account_automount_service_account_token Whether or not to automatically mount the service account token for the service account. bool false no
service_account_labels Additionnal labels that will be merged for the service_account. map {} no
service_account_name Name of the service_account that will be create string "kube-state-metrics" 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 "kube-state-metrics" no

Outputs

Name Description
cluster_role_binding_name Name of the cluster_role_binding created by the module.
cluster_role_name Name of the cluster_role created by the module.
deployment_name Name of the deployment created by the module.
prometheus_alert_groups List of ovjects representing prometheus alert groups
service_account_name Name of the service_account created by the module.
service_name Name of the service created by the module.
service_port Port to be used to access the service.
service_port_name Name of the port to be used to access the service.