-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
29 lines (26 loc) · 856 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
terraform {
required_providers {
kubernetes = {
source = "hashicorp/kubernetes"
version = ">=2.15.0"
}
}
}
# Kubernetes Namespace
resource "kubernetes_namespace" "meshcloud" {
metadata {
name = "meshcloud"
}
}
module "meshcloud-service-account-meshfed-metering" {
count = var.metering_enabled ? 1 : 0
source = "./modules/meshcloud-service-account-meshfed-metering"
namespace = kubernetes_namespace.meshcloud.metadata.0.name
additional_rules = var.metering_additional_rules
}
module "meshcloud-service-account-meshfed-replicator" {
count = var.replicator_enabled ? 1 : 0
source = "./modules/meshcloud-service-account-meshfed-replicator"
namespace = kubernetes_namespace.meshcloud.metadata.0.name
additional_rules = var.replicator_additional_rules
}