make dashy publicly accessible [ci skip]

This commit is contained in:
Viktor Barzin 2023-10-23 22:05:54 +00:00
parent a9e8a88e16
commit 3d7ca3c57d
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
3 changed files with 10 additions and 3 deletions

View file

@ -102,8 +102,8 @@ resource "kubernetes_ingress_v1" "dashy" {
namespace = "dashy" namespace = "dashy"
annotations = { annotations = {
"kubernetes.io/ingress.class" = "nginx" "kubernetes.io/ingress.class" = "nginx"
"nginx.ingress.kubernetes.io/auth-url" : "https://oauth2.viktorbarzin.me/oauth2/auth" # "nginx.ingress.kubernetes.io/auth-url" : "https://oauth2.viktorbarzin.me/oauth2/auth"
"nginx.ingress.kubernetes.io/auth-signin" : "https://oauth2.viktorbarzin.me/oauth2/start?rd=/redirect/$http_host$escaped_request_uri" # "nginx.ingress.kubernetes.io/auth-signin" : "https://oauth2.viktorbarzin.me/oauth2/start?rd=/redirect/$http_host$escaped_request_uri"
} }
} }

View file

@ -1,7 +1,7 @@
variable "tls_secret_name" {} variable "tls_secret_name" {}
variable "alertmanager_account_password" {} variable "alertmanager_account_password" {}
variable "idrac_host" { variable "idrac_host" {
default = "idrac" default = "192.168.1.4"
} }
variable "idrac_username" { variable "idrac_username" {
default = "root" default = "root"
@ -296,6 +296,10 @@ resource "kubernetes_config_map" "redfish-config" {
metadata { metadata {
name = "redfish-exporter-config" name = "redfish-exporter-config"
namespace = "monitoring" namespace = "monitoring"
annotations = {
"reloader.stakater.com/match" = "true"
}
} }
data = { data = {
"config.yml" = <<-EOF "config.yml" = <<-EOF
@ -321,6 +325,9 @@ resource "kubernetes_deployment" "idrac-redfish" {
labels = { labels = {
app = "idrac-redfish-exporter" app = "idrac-redfish-exporter"
} }
annotations = {
"reloader.stakater.com/search" = "true"
}
} }
spec { spec {
replicas = 1 replicas = 1

Binary file not shown.