Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

basisai/terraform-helm-prometheus-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prometheus Adapter

Installs the Prometheus Adapter for the Custom Metrics API. Custom metrics are used in Kubernetes by Horizontal Pod Autoscalers to scale workloads based upon your own metric pulled from an external metrics provider like Prometheus.

Requirements

Name Version
terraform >= 0.14
helm >= 2.4

Providers

Name Version
helm >= 2.4

Modules

No modules.

Resources

Name Type
helm_release.prometheus_adapter resource

Inputs

Name Description Type Default Required
affinity Affinity for the pods map(any) {} no
chart_name Helm chart name to provision string "prometheus-adapter" no
chart_namespace Namespace to install the chart into string "default" no
chart_repository Helm repository for the chart string "https://prometheus-community.github.io/helm-charts" no
chart_version Version of Chart to install. Set to empty to install the latest version string "" no
custom_annotations Additional annotations to add to all resources map(any) {} no
custom_labels Additional labels to add to all resources map(any) {} no
extra_arguments Extra arguments for the container list(any) [] no
extra_volume_mounts Extra volume mounts for the adapter container list(any) [] no
extra_volumes Extra volumes for the adapter list(any) [] no
force_update Force resource update through delete/recreate if needed. bool false no
host_network_enabled Specifies if prometheus-adapter should be started in hostNetwork mode. bool false no
image Docker image for the Prometheus Adapter string "registry.k8s.io/prometheus-adapter/prometheus-adapter" no
log_level Numerical log level for the adapter number 4 no
max_history Max History for Helm number 20 no
node_selector nodeSelector for the pod map(any) {} no
pdb_enable Enable pod disruption budget bool true no
pdb_max_unavailable Max unavailable pods string "" no
pdb_min_available Min available pods number 1 no
pod_annotations Pod annotations map(any) {} no
pod_labels Pod labels map(any) {} no
pod_security_context securityContext for the pod map(any)
{
"fsGroup": 10001
}
no
priority_class_name Pod Priority Class name string "" no
prometheus_port Prometheus port number 9090 no
prometheus_url Address for Prometheus string "http://prometheus.default.svc" no
psp_enable Enable the use of pod security policies bool true no
release_name Helm release name for Prometheus string "prometheus-adapter" no
replicas Number of replicas number 1 no
resources Resources for the pod map(any) {} no
rules_custom Custom metrics rules list(any) [] no
rules_default Use the default rules from the chart bool true no
rules_existing ConfigMap containing existing rules any null no
rules_external External metrics rules list(any) [] no
rules_resource Custom resource rules map(any) {} no
service_account_annotations Service Account Annotations map(any) {} no
service_annotations Service Annotations map(any) {} no
service_port Service port string "443" no
service_type Service Type string "ClusterIP" no
tag Docker Image tag for the Prometheus Adapter string "v0.9.1" no
tolerations Tolerations for the pod list(any) [] no

Outputs

No outputs.