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.

169 lines
4.0KB

  1. #####
  2. # Global
  3. #####
  4. variable "annotations" {
  5. description = "Additionnal annotations that will be merged on all resources."
  6. default = {}
  7. }
  8. variable "enabled" {
  9. description = "Whether or not to enable this module."
  10. default = true
  11. }
  12. variable "labels" {
  13. description = "Additionnal labels that will be merged on all resources."
  14. default = {}
  15. }
  16. variable "namespace" {
  17. description = "Namespace in which the module will be deployed."
  18. default = "kube-system"
  19. }
  20. variable "rbac_enabled" {
  21. description = "Whether or not to enabled rbac on the module."
  22. default = true
  23. }
  24. #####
  25. # Prometheus
  26. #####
  27. variable "prometheus_alert_groups_rules_labels" {
  28. description = "Map of strings that will be merge on all prometheus alert groups rules labels."
  29. default = {}
  30. }
  31. variable "prometheus_alert_groups_rules_annotations" {
  32. description = "Map of strings that will be merge on all prometheus alert groups rules annotations."
  33. default = {}
  34. }
  35. #####
  36. # Deployment
  37. #####
  38. variable "deployment_annotations" {
  39. description = "Additionnal annotations that will be merged on the deployment."
  40. default = {}
  41. }
  42. variable "deployment_labels" {
  43. description = "Additionnal labels that will be merged on the deployment."
  44. default = {}
  45. }
  46. variable "deployment_name" {
  47. description = "Name of the deployment that will be create."
  48. default = "kube-state-metrics"
  49. }
  50. variable "deployment_service_account_name" {
  51. description = "Only if `rbac_enabled` is false, name of the service account to be used by the container."
  52. default = null
  53. type = string
  54. }
  55. variable "image_name" {
  56. description = "Name of the docker image to use."
  57. default = "quay.io/coreos/kube-state-metrics"
  58. }
  59. variable "image_pull_policy" {
  60. description = "Image pull policy on the main container."
  61. default = "IfNotPresent"
  62. }
  63. variable "image_version" {
  64. description = "Tag of the docker image to use."
  65. default = "v1.6.0"
  66. }
  67. variable "replicas" {
  68. description = "Number of replicas to deploy."
  69. default = 1
  70. }
  71. #####
  72. # Service
  73. #####
  74. variable "service_annotations" {
  75. description = "Additionnal annotations that will be merged for the service."
  76. default = {}
  77. }
  78. variable "service_labels" {
  79. description = "Additionnal labels that will be merged for the service."
  80. default = {}
  81. }
  82. variable "service_name" {
  83. description = "Name of the service that will be create"
  84. default = "kube-state-metrics"
  85. }
  86. #####
  87. # Service Account
  88. #####
  89. variable "service_account_annotations" {
  90. description = "Additionnal annotations that will be merged for the service_account."
  91. default = {}
  92. }
  93. variable "service_account_automount_service_account_token" {
  94. description = "Whether or not to automatically mount the service account token for the service account."
  95. default = false
  96. }
  97. variable "service_account_labels" {
  98. description = "Additionnal labels that will be merged for the service_account."
  99. default = {}
  100. }
  101. variable "service_account_name" {
  102. description = "Name of the service_account that will be create"
  103. default = "kube-state-metrics"
  104. }
  105. #####
  106. # Cluster Role
  107. #####
  108. variable "cluster_role_annotations" {
  109. description = "Additionnal annotations that will be merged for the cluster_role."
  110. default = {}
  111. }
  112. variable "cluster_role_labels" {
  113. description = "Additionnal labels that will be merged for the cluster_role."
  114. default = {}
  115. }
  116. variable "cluster_role_name" {
  117. description = "Name of the cluster_role that will be create"
  118. default = "kube-state-metrics"
  119. }
  120. #####
  121. # Cluster Role Binding
  122. #####
  123. variable "cluster_role_binding_annotations" {
  124. description = "Additionnal annotations that will be merged for the cluster_role_binding."
  125. default = {}
  126. }
  127. variable "cluster_role_binding_labels" {
  128. description = "Additionnal labels that will be merged for the cluster_role_binding."
  129. default = {}
  130. }
  131. variable "cluster_role_binding_name" {
  132. description = "Name of the cluster_role_binding that will be create"
  133. default = "kube-state-metrics"
  134. }