-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkibana.tf
27 lines (22 loc) · 1.26 KB
/
kibana.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
# now let's install kibana, in this setup using template_file option to create values file
# for kibana we're going to use the same username/password as with elastic
# username: elastic
# password: 'terraform output -json'
# https://artifacthub.io/packages/helm/elastic/kibana
# specifing specific package we're going to use
resource "helm_release" "kibana" {
name = "kibana"
# using elastic as our helm resource
repository = "https://helm.elastic.co"
chart = "kibana"
version = "8.5.1"
# looks like we can't install multiple packages at the same time
# let's wait until the elastic installation has finished.
depends_on = [resource.helm_release.elasticsearch, resource.akamai_dns_record.kibana-hostname]
# now let's some helm specific vars that will be used during the installation
# https://artifacthub.io/packages/helm/elastic/kibana
# let's use some local values file to enable our ingress controller
# ingress controller will also enable basic auth with bcrypt password stored in kubernetes
# > templatefile("${path.module}/backends.tftpl", { port = 8080, ip_addrs = ["10.0.0.1", "10.0.0.2"] })
values = [templatefile("${path.module}/values/kibana-values.tftpl", { secret_name = var.private_key, kibana_hostname = var.kibana_hostname })]
}