have the traefik redirect middleware on all clusters
This commit is contained in:
parent
1eed06a1b0
commit
98a49445f3
4
apps/common/kube-system/kustomization.yaml
Normal file
4
apps/common/kube-system/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- k3s-traefik-middleware.yaml
|
|
@ -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:
|
||||
|
|
20
argoapps/common/kube-system.yaml
Normal file
20
argoapps/common/kube-system.yaml
Normal 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
|
Loading…
Reference in a new issue