Skip to content

Instantly share code, notes, and snippets.

@Akaame
Created July 29, 2021 18:57
Show Gist options
  • Save Akaame/84a8344cbaec49086c0687289ac964b7 to your computer and use it in GitHub Desktop.
Save Akaame/84a8344cbaec49086c0687289ac964b7 to your computer and use it in GitHub Desktop.
provider "helm" {
kubernetes {
config_path = "~/.kube/config"
}
}
provider "kubernetes" {
config_path = "~/.kube/config"
}
locals {
postgres_operator_version = "1.6.3"
}
resource "kubernetes_namespace" "ha-psql" {
metadata {
name = "ha-psql"
}
}
resource "helm_release" "psql" {
name = "ha-psql"
namespace = kubernetes_namespace.ha-psql.metadata.0.name
chart = "https://github.com/zalando/postgres-operator/raw/master/charts/postgres-operator/postgres-operator-${local.postgres_operator_version}.tgz"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment