imfreedom/k8s-cluster

a3b962ae862d
Parents 99eb1a5b226a
Children bcdd742bae61
Add common middlewares for the guifications namespace
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/40-common-middleware/guifications.yaml Mon Feb 27 21:27:12 2023 -0600
@@ -0,0 +1,31 @@
+# This file contains common traefik middleware for the guifications namespace.
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: common-headers
+ namespace: guifications
+spec:
+ headers:
+ customResponseHeaders:
+ X-Frame-Options: SAMEORIGIN
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: https-redirect
+ namespace: guifications
+spec:
+ redirectScheme:
+ scheme: https
+ permanent: true
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: hsts-headers
+ namespace: guifications
+spec:
+ headers:
+ stsSeconds: 31536000
+---
--- a/40-common-middleware/kustomization.yaml Mon Feb 27 21:24:29 2023 -0600
+++ b/40-common-middleware/kustomization.yaml Mon Feb 27 21:27:12 2023 -0600
@@ -1,5 +1,6 @@
---
resources:
+ - guifications.yaml
- imfreedom.yaml
- roost.yaml
---