Update ingress-nginx configuration
This commit is contained in:
parent
d57f64effe
commit
5406b52f9a
|
@ -2,6 +2,12 @@ apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: ingress
|
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:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
# NOTE: overlays depend on the order of rule entries.
|
# NOTE: overlays depend on the order of rule entries.
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
path: /spec/ingressClassName
|
path: /spec/ingressClassName
|
||||||
value: prod-nginx
|
value: prod-nginx
|
||||||
- op: add
|
- op: add
|
||||||
path: /metadata/annotations
|
# https://github.com/kubernetes-sigs/kustomize/issues/1439#issuecomment-520614831
|
||||||
value:
|
path: /metadata/annotations/cert-manager.io~1cluster-issuer
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
value: letsencrypt-production
|
||||||
- op: replace
|
- op: replace
|
||||||
path: /spec/tls
|
path: /spec/tls
|
||||||
value:
|
value:
|
||||||
|
|
Loading…
Reference in New Issue