Compare commits

...

3 Commits

Author SHA1 Message Date
1059f17fdb ci: fix drift detection
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-17 02:06:38 +02:00
e89bf20aaf add: kube-state-metrics 2022-07-17 02:05:37 +02:00
3c963bf6b8 ci: fix drift detection
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-14 00:24:10 +02:00
2 changed files with 37 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ steps:
- name: terraform plan
image: hashicorp/terraform:1.1.8
commands:
- terraform plan $([[ $${DRONE_BUILD_EVENT} = cron ]] && echo "--detailed-exit-code") -var-file ci.tfvars -out .tfplan
- terraform plan $([[ $${DRONE_BUILD_EVENT} = cron ]] && echo "-detailed-exitcode") -var-file ci.tfvars -out .tfplan
environment:
AWS_ACCESS_KEY_ID:
from_secret: terraform-aws-key-id
@@ -85,6 +85,6 @@ steps:
---
kind: signature
hmac: ff1e95a59f3262127be0c7f607c126b866483cce98e9ca4e76f680bbb89b4771
hmac: 95f8db197163e884f2eee4b14af136b9ea1e0f88f626079b4a3b38b43b91c6a8
...

35
kube-state-metrics.tf Normal file
View File

@@ -0,0 +1,35 @@
resource "helm_release" "kube_state_metrics" {
name = "kube-state-metrics"
namespace = "kube-system"
repository = "https://prometheus-community.github.io/helm-charts"
chart = "kube-state-metrics"
version = "4.13.0"
values = [
jsonencode({
rbac = {
create = true
useClusterRole = true
}
serviceAccount = {
create = true
}
podSecurityPolicy = {
enabled = false
}
}),
jsonencode({
autosharding = {
enabled = false
}
}),
jsonencode({
customLabels = {
"prometheus.io/scrape" = "true"
"prometheus.io/port" = "8080"
"prometheus.io/scheme" = "http"
}
}),
]
}