mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 06:57:47 +01:00
feat(infrastructure): update rabbitmq env
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
kubectl = {
|
||||
source = "gavinbunney/kubectl"
|
||||
version = "1.19.0"
|
||||
}
|
||||
helm = {
|
||||
source = "hashicorp/helm"
|
||||
version = "3.0.2" # Doporučuji použít novější verzi providera
|
||||
@@ -56,3 +60,26 @@ resource "helm_release" "rabbitmq_operator" {
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
||||
resource "kubectl_manifest" "rabbitmq_cluster" {
|
||||
yaml_body = templatefile("${path.module}/rabbit-cluster.yaml", {
|
||||
replicas = var.rabbitmq_replicas
|
||||
password = var.rabbitmq-password
|
||||
})
|
||||
|
||||
depends_on = [
|
||||
helm_release.rabbitmq_operator
|
||||
]
|
||||
}
|
||||
|
||||
resource "kubectl_manifest" "rabbit_ui" {
|
||||
yaml_body = templatefile("${path.module}/rabbit-ui.yaml", {
|
||||
base_domain = var.base_domain
|
||||
})
|
||||
|
||||
depends_on = [
|
||||
kubectl_manifest.rabbitmq_cluster
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user