disable reverse proxy and add extra site
This commit is contained in:
+17
-1
@@ -14,7 +14,7 @@ resource "kubernetes_ingress_v1" "automatic_ingress" {
|
||||
ingress_class_name = "traefik"
|
||||
# Dynamic TLS configuration for cert-manager
|
||||
tls {
|
||||
hosts = [join(".", [coalesce(each.value.domain_name, each.key), "geeraert.eu"])]
|
||||
hosts = [join(".", [coalesce(each.value.domain_name, each.key), "geeraert.eu"]),join(".", [coalesce(each.value.domain_name, each.key), "tryton.geeraert.eu"])]
|
||||
secret_name = "${each.key}-tls-secret" # cert-manager will create and manage this secret automatically
|
||||
}
|
||||
|
||||
@@ -34,6 +34,22 @@ resource "kubernetes_ingress_v1" "automatic_ingress" {
|
||||
}
|
||||
}
|
||||
}
|
||||
rule {
|
||||
host = join(".", [coalesce(each.value.domain_name, each.key), "tryton.geeraert.eu"])
|
||||
http {
|
||||
path {
|
||||
path = "/"
|
||||
backend {
|
||||
service {
|
||||
name = "${each.key}-svc"
|
||||
port {
|
||||
number = each.value.service_port[0] #selecting the first of the list
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+21
-58
@@ -1,42 +1,33 @@
|
||||
kubernetes = {
|
||||
reverse-proxy = {
|
||||
enabled = false
|
||||
echo = {
|
||||
#enabled = false
|
||||
#docker = true
|
||||
image = "nginx:latest"
|
||||
service_port = [80, 443]
|
||||
service_type = "NodePort"
|
||||
image = "ealen/echo-server:latest"
|
||||
service_port = [4580]
|
||||
external_port = true
|
||||
service_type = "NodePort"
|
||||
#command = ["-text=Hello authenticated world!"]
|
||||
pvc = {
|
||||
sites-terraform = {
|
||||
#requires to run the reverse proxy terraform with the kubernetes enabled
|
||||
mount_path = "/etc/nginx/conf.d/"
|
||||
host_path = "/data/kubernetes/reverse-proxy/reverse-proxy-sites"
|
||||
#config_map = sites-terraform
|
||||
echo-config = {
|
||||
mount_path = "/app/configs"
|
||||
}
|
||||
|
||||
reverse-proxy-log = {
|
||||
name = "reverse-proxy-log"
|
||||
mount_path = "/var/log/nginx/"
|
||||
host_path = "/data/kubernetes/reverse-proxy/reverse-proxy-log"
|
||||
|
||||
}
|
||||
|
||||
reverse-proxy-ssl = {
|
||||
name = "reverse-proxy-ssl"
|
||||
mount_path = "/etc/nginx/ssl/"
|
||||
host_path = "/data/kubernetes/reverse-proxy/reverse-proxy-ssl"
|
||||
|
||||
}
|
||||
nginx-configfile = {
|
||||
name = "nginx-configfile"
|
||||
mount_path = "/etc/nginx/nginx.conf"
|
||||
host_path = "/data/kubernetes/reverse-proxy/reverse-proxy-configfile/nginx.conf"
|
||||
|
||||
echo-testing = {
|
||||
mount_path = "/app/test"
|
||||
}
|
||||
}
|
||||
environment = {
|
||||
PORT = {
|
||||
value = 4580
|
||||
}
|
||||
PAPERLESS_REDIS = {
|
||||
value = "redis://paperless-redis-svc:6379"
|
||||
}
|
||||
database = {
|
||||
value = "datgg"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
gitea = {
|
||||
#enabled = false
|
||||
#docker = true
|
||||
@@ -102,35 +93,7 @@ kubernetes = {
|
||||
}
|
||||
|
||||
|
||||
echo = {
|
||||
#enabled = false
|
||||
#docker = true
|
||||
image = "ealen/echo-server:latest"
|
||||
service_port = [4580]
|
||||
external_port = true
|
||||
service_type = "NodePort"
|
||||
#command = ["-text=Hello authenticated world!"]
|
||||
pvc = {
|
||||
echo-config = {
|
||||
mount_path = "/app/configs"
|
||||
}
|
||||
echo-testing = {
|
||||
mount_path = "/app/test"
|
||||
}
|
||||
}
|
||||
environment = {
|
||||
PORT = {
|
||||
value = 4580
|
||||
}
|
||||
PAPERLESS_REDIS = {
|
||||
value = "redis://paperless-redis-svc:6379"
|
||||
}
|
||||
database = {
|
||||
value = "datgg"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
bitwarden-admin = {
|
||||
|
||||
Reference in New Issue
Block a user