imfreedom/k8s-cluster
Clone
Summary
Browse
Changes
Graph
make traefik our first port as that's what's going to be used for health checks on the load balancer and there's multiple pods for it
2021-06-17, Gary Kramlich
68bfde843f14
make traefik our first port as that's what's going to be used for health checks on the load balancer and there's multiple pods for it
# This is just the http and https ingresses for pidginchat.com and the tls
# certificate. The rest of the xmpp configuration is in the vhost for this
# domain in 50-xmpp.imfreedom.org.
---
apiVersion
:
traefik.containo.us/v1alpha1
kind
:
IngressRoute
metadata
:
name
:
pidginchat-http
namespace
:
roost
spec
:
entryPoints
:
-
http
routes
:
-
match
:
Host(`pidginchat.com`) || Host(`www.pidginchat.com`)
kind
:
Rule
services
:
-
name
:
prosody
port
:
5280
middlewares
:
-
name
:
https-redirect
---
apiVersion
:
traefik.containo.us/v1alpha1
kind
:
IngressRoute
metadata
:
name
:
pidginchat-https
namespace
:
roost
spec
:
entryPoints
:
-
https
routes
:
-
match
:
Host(`pidginchat.com`) || Host(`www.pidginchat.com`)
kind
:
Rule
services
:
-
name
:
prosody
port
:
5280
middlewares
:
-
name
:
common-headers
-
name
:
hsts-headers
tls
:
secretName
:
pidginchat-tls
---
apiVersion
:
cert-manager.io/v1alpha2
kind
:
Certificate
metadata
:
namespace
:
roost
name
:
pidginchat-tls
spec
:
secretName
:
pidginchat-tls
issuerRef
:
name
:
letsencrypt
commonName
:
pidginchat.com
dnsNames
:
-
pidginchat.com
-
www.pidginchat.com
---