-
Notifications
You must be signed in to change notification settings - Fork 0
/
opensearch.tf
33 lines (31 loc) · 1023 Bytes
/
opensearch.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
30
31
32
33
resource "kubernetes_namespace" "logging" {
metadata {
name = var.logging_namespace
}
}
resource "helm_release" "opensearch" {
name = var.opensearch_name
repository = "https://opensearch-project.github.io/helm-charts"
chart = var.opensearch_name
version = var.opensearch_chart_version
namespace = kubernetes_namespace.logging.id
timeout = var.helm_timeout
values = [
templatefile("${path.root}/templates/opensearch/opensearch.tpl", {
nodePort = var.opensearch_nodePort
})
]
}
resource "helm_release" "dashboards" {
name = "${var.opensearch_name}-dashboards"
repository = "https://opensearch-project.github.io/helm-charts"
chart = "${var.opensearch_name}-dashboards"
version = var.opensearch_dashboards_chart_version
namespace = kubernetes_namespace.logging.id
timeout = var.helm_timeout
values = [
templatefile("${path.root}/templates/opensearch/opensearch.tpl", {
nodePort = var.opensearch_dashboards_nodePort
})
]
}