Hello everyone, I need some advice. Currently my k8s cluster using traefik v1.7.x for the ingress rule. I use helm to install the traefik. I also apply some ingress yaml that look like this:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
namespace: myapp
name: demo.mydomain.com
annotations:
kubernetes.io/ingress.class: traefik
ingress.kubernetes.io/custom-response-headers: 'X-Powered-By:Love||X-Server:Love||Server:Love||Cache-Control:max-age=2592000,public'
ingress.kubernetes.io/browser-xss-filter: 'true'
ingress.kubernetes.io/content-type-nosniff: 'true'
traefik.ingress.kubernetes.io/redirect-entry-point: https
traefik.ingress.kubernetes.io/redirect-permanent: "true"
ingress.kubernetes.io/frame-deny: "true"
ingress.kubernetes.io/custom-frame-options-value: "SAMEORIGIN"
ingress.kubernetes.io/content-security-policy: upgrade-insecure-requests
#traefik.ingress.kubernetes.io/affinity: "true"
traefik.ingress.kubernetes.io/buffering: |-
maxrequestbodybytes: 10485760
memrequestbodybytes: 10485760
maxresponsebodybytes: 10485761
memresponsebodybytes: 10485760
retryexpression: IsNetworkError() && Attempts() <= 2
traefik.ingress.kubernetes.io/rate-limit: |
extractorfunc: client.ip
rateset:
wlc:
period: 1s
average: 50
burst: 100
spec:
rules:
- host: demo.mydomain.com
http:
paths:
- path: /
backend:
serviceName: myapache
servicePort: 80
Now, I want to upgrade to traefik v2.x.x for future proof. How to upgrade with less hassle? Or any step by step that I can read?
Thank you very much