helmify
This commit is contained in:
35
helm/templates/middleware.yaml
Normal file
35
helm/templates/middleware.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
{{ if .Values.middleware.basicauth }}
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: basic-auth
|
||||
namespace: kube-system
|
||||
spec:
|
||||
basicAuth:
|
||||
secret: authsecret
|
||||
removeHeader: true
|
||||
{{ end }}
|
||||
---
|
||||
{{ if .Values.middleware.redirectscheme }}
|
||||
# Redirect to https
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: httpsredirect
|
||||
namespace: kube-system
|
||||
spec:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
permanent: true
|
||||
{{ end }}
|
||||
---
|
||||
{{ if .Values.middleware.stricttransport }}
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: stricttransport
|
||||
namespace: kube-system
|
||||
spec:
|
||||
headers:
|
||||
stsSeconds: 15552000
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user