mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
[TRAEFIK] Move to NodePort
This commit is contained in:
parent
7f035cc032
commit
7c01d60812
3 changed files with 14 additions and 19 deletions
|
|
@ -10,7 +10,6 @@ variable "cluster_ca_certificate" {
|
||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
provider "kubernetes" {
|
provider "kubernetes" {
|
||||||
host = "https://ran.gensokyo.zone:6443"
|
host = "https://ran.gensokyo.zone:6443"
|
||||||
client_certificate = var.client_certificate
|
client_certificate = var.client_certificate
|
||||||
|
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
resource "helm_release" "metallb" {
|
|
||||||
name = "metallb"
|
|
||||||
repository = "https://metallb.github.io/metallb"
|
|
||||||
chart = "metallb"
|
|
||||||
create_namespace = true
|
|
||||||
namespace = "metallb-system"
|
|
||||||
|
|
||||||
timeout = var.helm_timeout
|
|
||||||
cleanup_on_fail = true
|
|
||||||
force_update = true
|
|
||||||
|
|
||||||
values = [
|
|
||||||
yamlencode({
|
|
||||||
})
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/*resource "helm_release" "traefik" {
|
resource "helm_release" "traefik" {
|
||||||
name = "traefik"
|
name = "traefik"
|
||||||
repository = "https://traefik.github.io/charts"
|
repository = "https://traefik.github.io/charts"
|
||||||
chart = "traefik"
|
chart = "traefik"
|
||||||
|
|
@ -14,6 +14,18 @@
|
||||||
deployment = {
|
deployment = {
|
||||||
replicas = 1
|
replicas = 1
|
||||||
}
|
}
|
||||||
|
ports = {
|
||||||
|
traefik = {
|
||||||
|
web = {
|
||||||
|
hostPort = 80
|
||||||
|
expose = false
|
||||||
|
}
|
||||||
|
websecure = {
|
||||||
|
hostPort = 443
|
||||||
|
expose = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}*/
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue