Update ingress-nginx configuration

This commit is contained in:
Rob Watson 2022-05-17 09:16:24 +02:00
parent d57f64effe
commit 5406b52f9a
2 changed files with 9 additions and 3 deletions

View File

@ -2,6 +2,12 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 5m
nginx.ingress.kubernetes.io/server-snippet: |
if ($http_user_agent ~* "BLEXBot|SemrushBot" ) {
return 403;
}
spec:
ingressClassName: nginx
# NOTE: overlays depend on the order of rule entries.

View File

@ -2,9 +2,9 @@
path: /spec/ingressClassName
value: prod-nginx
- op: add
path: /metadata/annotations
value:
cert-manager.io/cluster-issuer: letsencrypt-production
# https://github.com/kubernetes-sigs/kustomize/issues/1439#issuecomment-520614831
path: /metadata/annotations/cert-manager.io~1cluster-issuer
value: letsencrypt-production
- op: replace
path: /spec/tls
value: