Нужна помощь в настройке ingress внутри k8s, мне нужно засунуть в ingress следующий server-snippet.
location ~ ^/(sitemap) {
rewrite ^/(.*)$ /animori/public/$1 break;
proxy_pass https://minio.animori.tv;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
Падает ошибка:
for: "ingress.yaml": error when patching "ingress.yaml": admission webhook "validate.nginx.ingress.kubernetes.io" denied the request: annotation group ServerSnippet contains risky annotation based on ingress configuration
Как я понял, нужно выставить
allow-snippet-annotations: "true"
use-forwarded-headers: "true"
внутри конфига ingress-nginx-controller, но ошибка продолжила падать.