GithubHelp home page GithubHelp logo

Comments (2)

air3ijai avatar air3ijai commented on June 16, 2024

And now it is slightly better, when I've installed previously victoria-metrics-operator chart

vm-operator.tf
resource "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

│ Error: Provider produced inconsistent final plan
...
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

from helm-charts.

air3ijai avatar air3ijai commented on June 16, 2024

Both issues were related to the enabled hashicorp/helm experimental option

  experiments {
    manifest = true
  }

And a working config may looks like following
main.tf

# 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")]
}

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

from helm-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.