adding ingress helm
This commit is contained in:
+1
-1
@@ -96,7 +96,7 @@ resource "kubernetes_deployment_v1" "database-automatic" {
|
||||
name = "${each.key}-db-backup"
|
||||
|
||||
host_path {
|
||||
path = join("/", [var.storage_path.fast_access,"Backup", coalesce(each.value.namespace, each.value.connected_namespace, each.key), "${each.key}-db-backup"])
|
||||
path = join("/", [var.storage_path.fast_access, "Backup", coalesce(each.value.namespace, each.value.connected_namespace, each.key), "${each.key}-db-backup"])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -198,7 +198,7 @@ resource "kubernetes_deployment_v1" "automatic" {
|
||||
name = "${each.key}-db-backup"
|
||||
|
||||
host_path {
|
||||
path = join("/", [var.storage_path.fast_access,"Backup", coalesce(each.value.namespace, each.value.connected_namespace, each.key), "${each.key}-db-backup"])
|
||||
path = join("/", [var.storage_path.fast_access, "Backup", coalesce(each.value.namespace, each.value.connected_namespace, each.key), "${each.key}-db-backup"])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
#install traffei9k
|
||||
|
||||
/*helm repo add traefik https://traefik.github.io/charts
|
||||
helm repo update
|
||||
|
||||
helm install traefik traefik/traefik \
|
||||
--namespace traefik \
|
||||
--create-namespace \
|
||||
--set ports.web.nodePort=80 \
|
||||
--set ports.websecure.nodePort=443 \
|
||||
--set service.type=NodePort
|
||||
*/
|
||||
|
||||
|
||||
|
||||
resource "helm_release" "nginx_ingress" {
|
||||
name = "traefik"
|
||||
repository = "https://traefik.github.io/charts"
|
||||
chart = "traefik"
|
||||
version = "v41.7.1"
|
||||
namespace = "traefik"
|
||||
set = [
|
||||
{
|
||||
name = "ports.web.nodePort"
|
||||
value = "80"
|
||||
},
|
||||
{
|
||||
name = "ports.websecure.nodePort"
|
||||
value = "443"
|
||||
},
|
||||
{
|
||||
name = "service.type"
|
||||
value = "NodePort"
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
@@ -15,6 +15,11 @@ provider "kubernetes" {
|
||||
provider "docker" {
|
||||
host = "unix:///var/run/docker.sock"
|
||||
}
|
||||
provider "helm" {
|
||||
kubernetes = {
|
||||
config_path = "~/.kube/config"
|
||||
}
|
||||
}
|
||||
|
||||
variable "kubernetes" {
|
||||
type = map(object({
|
||||
|
||||
@@ -11,7 +11,7 @@ kubernetes = {
|
||||
#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
|
||||
#config_map = sites-terraform
|
||||
}
|
||||
|
||||
reverse-proxy-log = {
|
||||
|
||||
Reference in New Issue
Block a user