I have an application on a Kubernetes cluster that is deployed through Helm. The ingress controller is installed by the command:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.47.0/deploy/static/provider/baremetal/deploy.yaml
How to hide the nginx version from header responce?
At this moment I have next ingress:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/server-tokens: "off"
So maybe i need change to
traefik.ingress.kubernetes.io/response-headers
: and some rules...
I'm checking response with curl -IL mysite.com
In response i got next: Server: nginx/1.21.3
Give me and advice please)
i'm added nginx.ingress.kubernetes.io/server-tokens: "off"
but it not help me.
Expect to hide nginx version with helm update
or kubectl install
new ingress yaml