This commit is contained in:
@@ -18,6 +18,24 @@ variable "nginx_sites" {
|
||||
}))
|
||||
|
||||
}
|
||||
variable "deny_ip" {
|
||||
type = list(string)
|
||||
}
|
||||
|
||||
resource "kubernetes_config_map" "deny_ip_configmap" {
|
||||
metadata {
|
||||
name = "deny-ip-terraform"
|
||||
namespace = "reverse-proxy"
|
||||
annotations = {
|
||||
"reloader.stakater.com/match" : "true",
|
||||
}
|
||||
}
|
||||
|
||||
data = {
|
||||
"deny.conf" = templatefile("deny_ip.json.tftpl", {
|
||||
deny_ip = var.deny_ip })
|
||||
}
|
||||
}
|
||||
|
||||
resource "kubernetes_config_map" "websites_configmap" {
|
||||
metadata {
|
||||
|
||||
Reference in New Issue
Block a user