Skip to content

Instantly share code, notes, and snippets.

@Akaame
Created July 29, 2021 20:55
Show Gist options
  • Save Akaame/5070d0ac653b6601f1c25cc23f83ed07 to your computer and use it in GitHub Desktop.
Save Akaame/5070d0ac653b6601f1c25cc23f83ed07 to your computer and use it in GitHub Desktop.
# Add the provider
provider "kubernetes-alpha" {
config_path = "~/.kube/config"
}
resource "kubernetes_manifest" "postgresql_acid_minimal_cluster" {
# Add the provider
provider = kubernetes-alpha
manifest = {
"apiVersion" = "acid.zalan.do/v1"
"kind" = "postgresql"
"metadata" = {
"name" = "acid-minimal-cluster"
"namespace" = kubernetes_namespace.ha-psql.metadata.0.name
# It is better to get your namespace from the namespace resource we created
}
# Rest of the spec..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment