mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Use treafik ingress controller instead of nginx
This commit is contained in:
parent
ed24aa4f8d
commit
d8d9733ed9
25 changed files with 187 additions and 325 deletions
45
roles/ingress/templates/traefik-ingress-configmap.yml.j2
Normal file
45
roles/ingress/templates/traefik-ingress-configmap.yml.j2
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
kind: ConfigMap
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: traefik-config
|
||||
namespace: kube-system
|
||||
labels:
|
||||
app: traefik-ingress-controller
|
||||
data:
|
||||
traefik.toml: |-
|
||||
checkNewVersion = false
|
||||
IdleTimeout = "180s"
|
||||
MaxIdleConnsPerHost = 500
|
||||
logLevel = "INFO"
|
||||
defaultEntryPoints = ["http", "https"]
|
||||
|
||||
[retry]
|
||||
attempts = 3
|
||||
|
||||
[kubernetes]
|
||||
|
||||
[web]
|
||||
address = ":8081"
|
||||
|
||||
[acme]
|
||||
email = "letsencrypt.account@banditlair.com"
|
||||
storage = "traefik/acme/account"
|
||||
entryPoint = "https"
|
||||
OnHostRule = true
|
||||
onDemand = true
|
||||
acmeLogging = true
|
||||
# TODO Remove this line when going to prod
|
||||
caServer = "https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||
|
||||
[[acme.domains]]
|
||||
main = "{{ scaleway_reverse_ipaddr }}"
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.http]
|
||||
address = ":80"
|
||||
compress = true
|
||||
[entryPoints.http.redirect]
|
||||
entryPoint = "https"
|
||||
[entryPoints.https]
|
||||
address = ":443"
|
||||
[entryPoints.https.tls]
|
||||
Loading…
Add table
Add a link
Reference in a new issue