cloudnative-pg / charts

CloudNativePG Helm Charts
Apache License 2.0
175 stars 83 forks source link

It seems value set in cluster chart is not updated. #246

Closed xiaolongkipsi closed 5 months ago

xiaolongkipsi commented 6 months ago

I am using terraform to install postgres. I try to set resource limit, disk size etc, but it's still using default value. Am I doing something wrong?

resource "helm_release" "cluster" {
  name       = "postgres"
  repository = "https://cloudnative-pg.github.io/charts/"
  chart      = "cluster"
  version = "cluster-v0.0.7"
  set {
    name  = "type"
    value = "postgresql"
  }
  set {
    name ="resources.limits.cpu"
    value="1"
  }
  set {
    name ="resources.limits.memory"
    value="2Gi"
  }
  set {
    name ="resources.requests.cpu"
    value="1"
  }
  set {
    name ="resources.requests.memory"
    value="2Gi"
  }
  set {
    name ="storage.size"
    value="24Gi"
  }
}
itay-grudev commented 5 months ago

The keys you are looking for should be:

cluster.resources

and

cluster.storage.size

Check the full documentation here.

itay-grudev commented 5 months ago

I'm closing this for now. Ping me if there are further issues.