imfreedom/k8s-cluster

fc71e853c3aa
Add a new deployment for moving the imf wiki to mkdocs
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: planet-pidgin-redirect
spec:
redirectRegex:
regex: .*
replacement: https://pidgin.im/post/
permanent: true
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: planet-pidgin-http
spec:
entryPoints:
- http
routes:
- match: Host(`planet.pidgin.im`)
kind: Rule
services:
- name: pidgin-im
port: 3000
middlewares:
- name: planet-pidgin-redirect
- name: https-redirect
- name: hsts-headers
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: planet-pidgin
spec:
entryPoints:
- https
routes:
- match: Host(`planet.pidgin.im`)
kind: Rule
services:
- name: pidgin-im
port: 3000
middlewares:
- name: planet-pidgin-redirect
tls:
secretName: planet-pidgin-tls
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: planet-pidgin-tls
spec:
secretName: planet-pidgin-tls
issuerRef:
name: letsencrypt
commonName: planet.pidgin.im
dnsNames:
- planet.pidgin.im
---