Update ingress-nginx configuration
This commit is contained in:
parent
d57f64effe
commit
5406b52f9a
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue