Я пытаюсь настроить helm и релизы helm через terraform, как в terraform plan
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# helm_release.prometheus_vsi will be created
+ resource "helm_release" "prometheus_vsi" {
+ chart = "stable/prometheus"
+ disable_webhooks = false
+ force_update = false
+ id = (known after apply)
+ metadata = (known after apply)
+ name = "prometheus-vsi"
+ namespace = "prometheus"
+ recreate_pods = false
+ repository = "stable"
+ reuse = false
+ reuse_values = false
+ status = "DEPLOYED"
+ timeout = 300
+ values = [
+ <<~EOT
rbac:
create: true
enabled: false
EOT,
]
+ verify = false
+ version = "10.2.0"
+ wait = true
}
Plan: 1 to add, 0 to change, 0 to destroy.
, но когда я запускаю terraform apply
, его ошибка броска упоминается в «Pani c Output».
Версия Terraform
Terraform v0.12.18 + провайдер. aws v2.43.0 + provider.helm v0.10.4 + provider.kubernetes v1.10.0 + provider.local v1.4.0 + провайдер. null v2.1.2 + provider.random v2.2.1 + provider.template v2.1.2
Ваша версия Terraform устарела! Последняя версия 0.12.19. Обновление можно загрузить, загрузив из https://www.terraform.io/downloads.html
Затрагиваемые ресурсы
Файлы конфигурации Terraform
provider "helm" {
version = "~> 0.10"
install_tiller = true
service_account = local.helm_service_account_name
debug = true
kubernetes {
config_path = "${path.module}/kubeconfig_${module.eks.kubeconfig}"
}
}
data "helm_repository" "stable" {
name = "stable"
url = "https://kubernetes-charts.storage.googleapis.com"
}
resource "helm_release" "prometheus_vsi" {
name = "prometheus-vsi"
repository = data.helm_repository.stable.metadata[0].name
chart = "stable/prometheus"
namespace = local.prometheus_ns
version = "10.2.0"
values = [
"${file("${local.chart_root}/prometheus/prometheus-values.yaml")}"
]
}
Вывод отладки
Я включил debug=true
, но он не производит журналы для конкретного руля
Pani c Вывод
Error: error installing: the server could not find the requested resource (post deployments.apps)
on main.tf line 205, in resource "helm_release" "prometheus_vsi":
205: resource "helm_release" "prometheus_vsi" {
Ожидается Поведение
Согласно terraform plan
оно должно создать helm_release
в кубернетах.
Фактическое поведение
Terraform применить ошибку броска.
Шаги для воспроизведения
terraform apply
Спасибо.