Skip to content
Permalink
Browse files

feat: add service account and netdata to devnet

  • Loading branch information...
etienne-napoleone committed May 16, 2019
1 parent 4653390 commit 4fa2f6a804def68930bd89f059afcfac6f3a9a79
@@ -11,6 +11,8 @@ provider "kubernetes" {
}

provider "helm" {
service_account = "${module.kubernetes.service_account}"

kubernetes {
host = "${module.kubernetes.endpoint}"

@@ -26,6 +28,10 @@ module "kubernetes" {
name = "devnet"
}

module "netdata" {
source = "../modules/netdata"
}

module "tomoscan" {
source = "../modules/tomoscan"

@@ -4,23 +4,21 @@ resource "helm_release" "netdata" {

set {
name = "service.type"
value = "LoadBalancer"
value = "${var.service_type}"
}

set {
name = "master.database.storageclass"
value = "do-block-storage"
value = "${var.storage_class}"
}

set {
name = "master.alarms.storageclass"
value = "do-block-storage"
value = "${var.storage_class}"
}

set {
name = "master.alarms.volumesize"
value = "1Gi"
}

depends_on = ["kubernetes_service_account.helm"]
}
@@ -0,0 +1,9 @@
variable "service_type" {
default = "LoadBalancer"
description = "Kubernetes service type for the main netdata service"
}

variable "storage_class" {
default = "do-block-storage"
description = "Kubernetes storage class used for netdata storage"
}
@@ -13,3 +13,7 @@ output "client_key" {
output "cluster_ca_certificate" {
value = "${base64decode(digitalocean_kubernetes_cluster.cluster.kube_config.0.cluster_ca_certificate)}"
}

output "service_account" {
value = "${kubernetes_service_account.admin.metadata.0.name}"
}

0 comments on commit 4fa2f6a

Please sign in to comment.
You can’t perform that action at this time.