Update traefik deployment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0735682969
commit
ee4e749cd3
4 changed files with 18 additions and 18 deletions
|
|
@ -89,8 +89,8 @@
|
||||||
tag: "{{ traefik_version }}"
|
tag: "{{ traefik_version }}"
|
||||||
additionalArguments:
|
additionalArguments:
|
||||||
- --configFile=/etc/traefik/traefik.yaml
|
- --configFile=/etc/traefik/traefik.yaml
|
||||||
podSecurityPolicy:
|
# podSecurityPolicy:
|
||||||
enabled: true
|
# enabled: true
|
||||||
service:
|
service:
|
||||||
enabled: false
|
enabled: false
|
||||||
ingressRoute:
|
ingressRoute:
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@ data:
|
||||||
burst: 50
|
burst: 50
|
||||||
security_headers:
|
security_headers:
|
||||||
headers:
|
headers:
|
||||||
accessControlAllowMethods: ["GET", "OPTIONS", "PUT"]
|
# accessControlAllowMethods: ["GET", "OPTIONS", "PUT"]
|
||||||
accessControlAllowOrigin: "origin-list-or-null"
|
# accessControlAllowOrigin: "origin-list-or-null"
|
||||||
accessControlMaxAge: 100
|
# accessControlMaxAge: 100
|
||||||
addVaryHeader: true
|
# addVaryHeader: true
|
||||||
browserXssFilter: true
|
browserXssFilter: true
|
||||||
contentTypeNosniff: true
|
contentTypeNosniff: true
|
||||||
forceSTSHeader: true
|
forceSTSHeader: true
|
||||||
|
|
|
||||||
|
|
@ -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
12
todo.sh
Normal 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
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue