add meshcentral and diun[ci skip]

This commit is contained in:
Viktor Barzin 2024-08-18 18:14:17 +00:00
parent 64ba541412
commit b54fbf72fd
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
7 changed files with 197 additions and 1 deletions

View file

@ -1,4 +1,6 @@
variable "tls_secret_name" {}
variable "diun_nfty_token" {}
variable "docker_config" {}
resource "kubernetes_namespace" "diun" {
metadata {
@ -28,6 +30,9 @@ resource "kubernetes_config_map" "docker-config" {
}
}
data = {
"config.json" = var.docker_config
}
}
resource "kubernetes_service_account" "diun" {
@ -125,6 +130,10 @@ resource "kubernetes_deployment" "diun" {
name = "DIUN_NOTIF_NTFY_TOPIC"
value = "diun-updates"
}
env {
name = "DIUN_NOTIF_NTFY_TOKEN"
value = var.diun_nfty_token
}
env {
name = "LOG_LEVEL"
value = "debug"