Текущая конфигурация все равно не работает, с чем это может быть связано?
ConfigMap для Ingress
apiVersion: v1
data:
allow-snippet-annotations: "false"
enable-real-ip: "true"
http-snippet: limit_req_zone $http_x_forwarded_for zone=perip:1m rate=10000r/s;
limit_req_zone $http_authorization zone=http_authorization:1m rate=50000r/s;
limit-req: |
zone=perip burst=5000 nodelay;
zone=http_authorization burst=5000 nodelay;
limit-req-status-code: "429"
limit-req-zone-settings: |
$http_x_forwarded_for zone=perip:10m rate=10000r/s;
$http_authorization zone=http_authorization:10m rate=50000r/s;
log-format-escape-json: "true"
log-format-upstream: '{ "remote_addr": "$remote_addr", "remote_port": "$remote_port",
"remote_user": "$remote_user","time_local": "$time_local","msec": "$msec","vhost":
"$host","request": "$request","status": "$status","body_bytes_sent": "$body_bytes_sent","http_referer":
"$http_referer","http_user_agent": "$http_user_agent","http_x_forwarded_for":
"$http_x_forwarded_for","request_time": "$request_time","upstream_cache_status":
"$upstream_cache_status","upstream_status": "$upstream_status","upstream_addr":
"$upstream_addr","upstream_response_time": "$upstream_response_time","uid_set":
"$uid_set","uid_got": "$uid_got","http_cookie": "$http_cookie","connection": "$connection","connection_requests":
"$connection_requests","scheme": "content_length": "$content_length", "request_length":
"$request_length", "request_id": "$request_id" }'
proxy-real-ip-cidr: 51.250.10.162/32
use-forwarded-headers: "true"
use-proxy-protocol: "false"
kind: ConfigMap
metadata:
annotations:
meta.helm.sh/release-name: ingress-nginx
meta.helm.sh/release-namespace: ingress-nginx
creationTimestamp: "2022-07-26T21:15:21Z"
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
app.kubernetes.io/version: 1.3.0
helm.sh/chart: ingress-nginx-4.2.0
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:data: {}
f:metadata:
f:annotations:
.: {}
f:meta.helm.sh/release-name: {}
f:meta.helm.sh/release-namespace: {}
f:labels:
.: {}
f:app.kubernetes.io/component: {}
f:app.kubernetes.io/instance: {}
f:app.kubernetes.io/managed-by: {}
f:app.kubernetes.io/name: {}
f:app.kubernetes.io/part-of: {}
f:app.kubernetes.io/version: {}
f:helm.sh/chart: {}
manager: helm
operation: Update
time: "2022-07-26T21:15:21Z"
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:data:
f:log-format-escape-json: {}
f:log-format-upstream: {}
manager: node-fetch
operation: Update
time: "2022-08-28T20:08:48Z"
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:data:
f:allow-snippet-annotations: {}
f:enable-real-ip: {}
f:http-snippet: {}
f:limit-req: {}
f:limit-req-status-code: {}
f:limit-req-zone-settings: {}
f:proxy-real-ip-cidr: {}
f:use-forwarded-headers: {}
f:use-proxy-protocol: {}
manager: yc-console
operation: Update
time: "2024-11-19T20:16:55Z"
name: ingress-nginx-controller
namespace: ingress-nginx
resourceVersion: "467993593"
uid: 0d282050-73f6-431a-8843-2e4128ce3b65