Update traefik deployment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2022-01-31 21:15:56 +01:00
parent 0735682969
commit ee4e749cd3
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
4 changed files with 18 additions and 18 deletions

View file

@ -89,8 +89,8 @@
tag: "{{ traefik_version }}"
additionalArguments:
- --configFile=/etc/traefik/traefik.yaml
podSecurityPolicy:
enabled: true
# podSecurityPolicy:
# enabled: true
service:
enabled: false
ingressRoute:

View file

@ -16,10 +16,10 @@ data:
burst: 50
security_headers:
headers:
accessControlAllowMethods: ["GET", "OPTIONS", "PUT"]
accessControlAllowOrigin: "origin-list-or-null"
accessControlMaxAge: 100
addVaryHeader: true
# accessControlAllowMethods: ["GET", "OPTIONS", "PUT"]
# accessControlAllowOrigin: "origin-list-or-null"
# accessControlMaxAge: 100
# addVaryHeader: true
browserXssFilter: true
contentTypeNosniff: true
forceSTSHeader: true

View file

@ -1,12 +0,0 @@
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: traefik-ipwhitelist
spec:
ipWhiteList:
sourceRange:
{% if ingress_whitelist is defined %}
{% for acl_whitelist in ingress_whitelist %}
- {{ acl_whitelist }}
{% endfor %}
{% endif %}

12
todo.sh Normal file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
cat << 'EOF' | kubectl --context my_context apply -f -
---
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
name: traefik
spec:
controller: traefik.io/ingress-controller
EOF