have the traefik redirect middleware on all clusters

This commit is contained in:
Tobias Brunner 2024-03-12 20:59:49 +01:00
parent 1eed06a1b0
commit 98a49445f3
Signed by: tobru
SSH key fingerprint: SHA256:kywVhvCA+MIxL6eBgoQa+BfC/ROJqcfD2bpy1PR6Ebk
4 changed files with 24 additions and 9 deletions

View file

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- k3s-traefik-middleware.yaml

View file

@ -49,15 +49,6 @@ spec:
runAsNonRoot: false
runAsUser: 0
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: redirect-https
spec:
redirectScheme:
scheme: https
permanent: true
---
apiVersion: v1
kind: Service
metadata:

View file

@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: kube-system
namespace: argocd
spec:
generators:
- clusters: {}
template:
metadata:
name: '{{name}}-kube-system'
spec:
project: system
source:
path: 'apps/common/kube-system'
repoURL: https://git.tbrnt.ch/tobru/gitops-zurrli.git
targetRevision: HEAD
destination:
server: '{{server}}'
namespace: kube-system