imfreedom/k8s-cluster

Parents c7ab1c53a20b
Children a7ecd03be4e8
Add an ingress for planet.pidgin.im that redirects to pidgin.im/post
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/50-planet.pidgin.im.yaml Tue Feb 11 23:44:37 2020 -0600
@@ -0,0 +1,62 @@
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: planet-pidgin-redirect
+ namespace: roost
+spec:
+ redirectRegex:
+ regex: .*
+ replacement: https://pidgin.im/post/
+ permanent: true
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: IngressRoute
+metadata:
+ name: planet-pidgin-http
+ namespace: roost
+spec:
+ entryPoints:
+ - http
+ routes:
+ - match: Host(`planet.pidgin.im`)
+ kind: Rule
+ services:
+ - name: nest
+ port: 3000
+ middlewares:
+ - name: planet-pidgin-redirect
+ - name: https-redirect
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: IngressRoute
+metadata:
+ name: planet-pidgin
+ namespace: roost
+spec:
+ entryPoints:
+ - https
+ routes:
+ - match: Host(`planet.pidgin.im`)
+ kind: Rule
+ services:
+ - name: nest
+ port: 3000
+ middlewares:
+ - name: planet-pidgin-redirect
+ tls:
+ secretName: planet-pidgin-tls
+---
+apiVersion: cert-manager.io/v1alpha2
+kind: Certificate
+metadata:
+ namespace: roost
+ name: planet-pidgin-tls
+spec:
+ secretName: planet-pidgin-tls
+ issuerRef:
+ name: letsencrypt
+ commonName: planet.pidgin.im
+ dnsNames:
+ - planet.pidgin.im
+---