imfreedom/k8s-cluster

Parents 8dc2d827f064
Children bdedc678022e
move 50-planet.pidgin.im to kustomize and point it's IngressRoute to a real service
--- a/50-planet.pidgin.im.yaml Thu Jun 17 01:57:22 2021 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,63 +0,0 @@
----
-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
- - name: hsts-headers
----
-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
----
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/50-planet.pidgin.im/kustomization.yaml Thu Jun 17 02:06:07 2021 -0500
@@ -0,0 +1,5 @@
+---
+namespace: roost
+resources:
+ - manifest.yaml
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/50-planet.pidgin.im/manifest.yaml Thu Jun 17 02:06:07 2021 -0500
@@ -0,0 +1,59 @@
+---
+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/v1alpha2
+kind: Certificate
+metadata:
+ name: planet-pidgin-tls
+spec:
+ secretName: planet-pidgin-tls
+ issuerRef:
+ name: letsencrypt
+ commonName: planet.pidgin.im
+ dnsNames:
+ - planet.pidgin.im
+---