-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install victoria-metrics-k8s-stack using Terraform helm provider #924
Comments
And now it is slightly better, when I've installed previously vm-operator.tfresource "helm_release" "vm-operator" {
name = "vm-operator"
repository = "https://victoriametrics.github.io/helm-charts"
chart = "victoria-metrics-operator"
version = "0.29.2"
namespace = "monitoring"
timeout = 600
values = [file("${path.module}/values/vm-operator.yaml")]
} But get a very, very long output with the error
|
Both issues were related to the enabled hashicorp/helm experimental option
experiments {
manifest = true
} And a working config may looks like following # Terraform
terraform {
required_version = "~> 1.7"
required_providers {
helm = {
source = "hashicorp/helm"
version = "~> 2.1"
}
}
}
# Providers
provider "helm" {
kubernetes {
config_path = "/etc/rancher/k3s/k3s.yaml"
}
# experiments {
# manifest = true
# }
}
# Victoria Metrics kubernetes monitoring stack
resource "helm_release" "vm-stack" {
name = "vm-stack"
repository = "https://victoriametrics.github.io/helm-charts"
chart = "victoria-metrics-k8s-stack"
version = "0.19.4"
namespace = "monitoring"
create_namespace = true
timeout = 600
values = [file("${path.module}/vm-stack.yaml")]
}
# https://github.com/VictoriaMetrics/helm-charts/tree/master/charts/victoria-metrics-k8s-stack
# VM Single
vmsingle:
# https://docs.victoriametrics.com/operator/api.html#vmsinglespec
spec:
retentionPeriod: "90"
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi |
Moved from #341
I've an issue to install
victoria-metrics-k8s-stack
using Terraform helm provider, because of the missed CRDs.Should we first install
victoria-metrics-operator
?Values, like following does not help
The text was updated successfully, but these errors were encountered: