Hello all, I am beginner in kubernetes and i am trying to creating a kubernetes yaml file with kind "Deployment" using traefik .
spec:
replacePathRegex:
regex: ^/v1/storage/(.*)
replacement: /v1/$1
I am using replacePathRegex as mentioned in this blog https://doc.traefik.io/traefik/middlewares/http/replacepathregex/
.
But when i try to apply this yaml file i am getting an error saying
error: error validating "storage-deployment.yaml": error validating data: ValidationError(Deployment.spec): unknown field "replacePathRegex" in io.k8s.api.apps.v1.DeploymentSpec; if you choose to ignore these errors, turn validation off with --validate=false
Can anyone help me to solve this issue. Thanks in advance!