{"id":356382,"date":"2024-05-20T23:28:26","date_gmt":"2024-05-20T23:28:26","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=356382"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-05-20T23:28:26","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=356382","title":{"rendered":"<span>\u0410\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0438\u043d\u0433 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 Ingress \u0432 Kubernetes<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Ingress \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Prometheus, KEDA \u0438 Locust \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043a\u0430. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ea8\/e93\/0a4\/ea8e930a4550306f1e8e1a9584bee232.png\" width=\"780\" height=\"440\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ea8\/e93\/0a4\/ea8e930a4550306f1e8e1a9584bee232.png\"\/><\/figure>\n<p>\u0427\u0442\u043e\u0431\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ol>\n<li>\n<p>\u041c\u0435\u0442\u0440\u0438\u043a\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443).<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043b\u043b\u0435\u043a\u0442\u043e\u0440 \u043c\u0435\u0442\u0440\u0438\u043a (\u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a).<\/p>\n<\/li>\n<li>\n<p>\u0410\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0435\u0440 (\u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445).<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/41b\/b6a\/366\/41bb6a36631efa5d8af610548119c3ef.png\" alt=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" title=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" width=\"720\" height=\"541\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/41b\/b6a\/366\/41bb6a36631efa5d8af610548119c3ef.png\"\/><\/p>\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0447\u043d\u0451\u043c \u0441 \u043c\u0435\u0442\u0440\u0438\u043a.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e <a href=\"https:\/\/kubernetes.github.io\/ingress-nginx\/user-guide\/monitoring\/\"><u>\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c nginx-ingress \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a Prometheus<\/u><\/a>. \u0414\u043b\u044f \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>nginx_connections_active<\/code>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ce6\/193\/0a0\/ce61930a0114bb043117dd0733575800.png\" alt=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" title=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" width=\"720\" height=\"541\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ce6\/193\/0a0\/ce61930a0114bb043117dd0733575800.png\"\/><\/p>\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u0439\u0442\u0438 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a. \u041a\u0430\u043a \u0432\u044b \u0443\u0436\u0435 \u0434\u043e\u0433\u0430\u0434\u0430\u043b\u0438\u0441\u044c, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Prometheus. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 Nginx-ingress \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u0434\u043b\u044f Prometheus, <a href=\"https:\/\/github.com\/prometheus-community\/helm-charts\"><u>\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0435\u0437 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 Kubernetes<\/u><\/a>.<\/p>\n<pre><code>$ helm repo add prometheus-community https:\/\/prometheus-community.github.io\/helm-charts \"prometheus-community\" has been added to your repositories $ helm install prometheus prometheus-community\/prometheus NAME: prometheus NAMESPACE: default STATUS: deployed REVISION: 1 TEST SUITE: None<\/code><\/pre>\n<p>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b Locust \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043d\u0430 Ingress, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0432\u0441\u0435 \u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0433\u043b\u0430\u0434\u043a\u043e. \u041e\u0442\u043a\u0440\u044b\u0432 \u043f\u0440\u0438\u0431\u043e\u0440\u043d\u0443\u044e \u043f\u0430\u043d\u0435\u043b\u044c Prometheus, \u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b, \u0447\u0442\u043e \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u043c\u0435\u0440\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ffa\/5b5\/0e4\/ffa5b50e477c03659360021fee9fe372.gif\" alt=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" title=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" width=\"1000\" height=\"416\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ffa\/5b5\/0e4\/ffa5b50e477c03659360021fee9fe372.gif\"\/><\/p>\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u043f\u0430\u0437\u043b\u043e\u043c \u0441\u0442\u0430\u043b \u0430\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0435\u0440. \u042f \u0440\u0435\u0448\u0438\u043b \u0432\u044b\u0431\u0440\u0430\u0442\u044c <a href=\"https:\/\/keda.sh\/\"><u>KEDA<\/u><\/a>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e:<\/p>\n<ol>\n<li>\n<p>\u042d\u0442\u043e \u0430\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0435\u0440 <a href=\"https:\/\/github.com\/kubernetes-sigs\/metrics-server\"><u>\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043c\u0435\u0442\u0440\u0438\u043a<\/u><\/a> (\u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430).<\/p>\n<\/li>\n<li>\n<p>\u041e\u043d \u043f\u0440\u043e\u0449\u0435 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435, \u0447\u0435\u043c \u0430\u0434\u0430\u043f\u0442\u0435\u0440 Prometheus.<\/p>\n<\/li>\n<li>\n<p>\u042f \u043c\u043e\u0433\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/keda.sh\/docs\/2.10\/scalers\/prometheus\/\"><u>Horizontal Pod Autoscaler \u0441 PromQL<\/u><\/a>.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/868\/040\/e78\/868040e7850829f7a2c1182ee0309beb.png\" alt=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" title=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" width=\"720\" height=\"541\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/868\/040\/e78\/868040e7850829f7a2c1182ee0309beb.png\"\/><\/p>\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 KEDA \u043c\u043d\u0435 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e <a href=\"https:\/\/keda.sh\/docs\/2.10\/concepts\/scaling-deployments\/#scaledobject-spec\"><u>\u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 ScaledObject<\/u><\/a>, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043c\u0435\u0442\u0440\u0438\u043a (Prometheus) \u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 PromQL).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8e9\/3f0\/78b\/8e93f078bc2b08475fc5114ab55fa7e3.png\" alt=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" title=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" width=\"720\" height=\"541\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8e9\/3f0\/78b\/8e93f078bc2b08475fc5114ab55fa7e3.png\"\/><\/p>\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>KEDA \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0434\u043b\u044f \u043c\u0435\u043d\u044f HPA. \u042f \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b \u0442\u0435\u0441\u0442\u044b \u0441 Locust \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u043b, \u043a\u0430\u043a \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u043f\u043b\u0438\u043a \u043f\u043e \u043c\u0435\u0440\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 Nginx Ingress!<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8df\/7a3\/6ee\/8df7a36eecf1bbc8f83a854c8cbefbef.gif\" alt=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" title=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" width=\"1000\" height=\"636\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8df\/7a3\/6ee\/8df7a36eecf1bbc8f83a854c8cbefbef.gif\"\/><\/p>\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u043d\u0430 \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435? \u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u044e\u0449\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432?\u00a0<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043e\u043d\u0438 \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u0442\u043e \u043e\u0442\u0432\u0435\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439. \u041e\u0434\u043d\u0430\u043a\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0445\u043e\u0434\u043d\u043e\u0439 \u043f\u0443\u0442\u044c.<\/p>\n<p><a href=\"https:\/\/github.com\/kedacore\/http-add-on\"><u>KEDA \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 HTTP-\u043d\u0430\u0434\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/u><\/a> \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 HTTP. \u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442? KEDA \u0438\u0436\u0435\u043a\u0442\u0438\u0442 \u043f\u0440\u043e\u043a\u0441\u0438 sidecar \u0432 \u0432\u0430\u0448 pod, \u0447\u0442\u043e\u0431\u044b \u0432\u0435\u0441\u044c HTTP-\u0442\u0440\u0430\u0444\u0438\u043a \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u043c. \u0417\u0430\u0442\u0435\u043c \u043e\u043d \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0432\u044b\u0434\u0430\u0435\u0442 \u043c\u0435\u0442\u0440\u0438\u043a\u0438. \u0418\u043c\u0435\u044f \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439 \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0435\u0440.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0f7\/1e1\/a3b\/0f71e1a3b23a649a7660e9a5054266c4.png\" alt=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" title=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" width=\"720\" height=\"541\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0f7\/1e1\/a3b\/0f71e1a3b23a649a7660e9a5054266c4.png\"\/><\/p>\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e KEDA \u2014 \u043d\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u041c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <a href=\"https:\/\/github.com\/kubernetes-sigs\/prometheus-adapter\"><u>Prometheus Adapter<\/u><\/a>. \u041c\u0435\u0442\u0440\u0438\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0438\u0437 Nginx \u0432 Prometheus, \u0430 \u0437\u0430\u0442\u0435\u043c \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0438\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u0434\u043b\u044f Kubernetes. \u041e\u0442\u0442\u0443\u0434\u0430 \u043e\u043d\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u044e\u0442\u0441\u044f Horizontal Pod Autoscaler.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/615\/a5d\/e87\/615a5de87b7711feb3437a3a5ca0da28.png\" alt=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" title=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" width=\"720\" height=\"541\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/615\/a5d\/e87\/615a5de87b7711feb3437a3a5ca0da28.png\"\/><\/p>\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041b\u0443\u0447\u0448\u0435 \u043b\u0438 \u044d\u0442\u043e, \u0447\u0435\u043c KEDA? \u041e\u043d\u0438 \u043f\u043e\u0445\u043e\u0436\u0438, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u0431\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0438 \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0438\u0437 Prometheus. \u041e\u0434\u043d\u0430\u043a\u043e KEDA \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u043e\u0439, \u0430 Adapter \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441 Prometheus.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/91b\/82a\/be1\/91b82abe18f87311e1ef15c8eaf860f8.png\" alt=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" title=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\" width=\"720\" height=\"541\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/91b\/82a\/be1\/91b82abe18f87311e1ef15c8eaf860f8.png\"\/><\/p>\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u0415\u0441\u0442\u044c \u043b\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442 \u0443 KEDA?<\/p>\n<p>\u041f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/custom-pod-autoscaler.readthedocs.io\/en\/latest\/\"><u>Custom Pod Autoscaler<\/u><\/a> \u043f\u0440\u0438\u0437\u0432\u0430\u043d \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0435\u0440 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u043c. \u041e\u0434\u043d\u0430\u043a\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u044d\u0442\u0438 \u043f\u043e\u0434\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f (\u0442.\u0435. \u043d\u0430 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c), \u0430 \u043d\u0435 \u043d\u0430 \u0441\u0431\u043e\u0440 \u043c\u0435\u0442\u0440\u0438\u043a.<\/p>\n<details class=\"spoiler\">\n<summary>\u042d\u0442\u0438 \u0441\u0441\u044b\u043b\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u044b:<\/summary>\n<div class=\"spoiler__content\">\n<p><a href=\"https:\/\/keda.sh\/docs\/2.10\/scalers\/prometheus\/\">https:\/\/keda.sh\/docs\/2.10\/scalers\/prometheus\/<\/a><\/p>\n<p><a href=\"https:\/\/sysdig.com\/blog\/kubernetes-hpa-prometheus\/\">https:\/\/sysdig.com\/blog\/kubernetes-hpa-prometheus\/<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/nginxinc\/nginx-prometheus-exporter#exported-metrics\">https:\/\/github.com\/nginxinc\/nginx-prometheus-exporter#exported-metrics<\/a><\/p>\n<p><a href=\"https:\/\/learnk8s.io\/scaling-celery-rabbitmq-kubernetes\">https:\/\/learnk8s.io\/scaling-celery-rabbitmq-kubernetes<\/a><\/p>\n<\/div>\n<\/details>\n<hr\/>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u043e\u0431 \u0430\u0432\u0442\u043e\u0441\u043a\u043b\u0435\u0439\u043d\u0438\u0433\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 Kubernetes \u0438 \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0435 \u0432 \u0421\u043b\u0451\u0440\u043c \u043d\u0430 \u043a\u0443\u0440\u0441<a href=\"https:\/\/slurm.io\/kubernetes-megapotok?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=kubernetes-megapotok&amp;utm_content=article_02-09-2023&amp;utm_term=@Liloon21\"> Kubernetes: \u041c\u0435\u0433\u0430<\/a>. \u041d\u0430 \u043d\u0451\u043c \u0432\u044b:\u00a0<\/p>\n<ul>\n<li>\n<p>\u0418\u0437\u0443\u0447\u0438\u0442\u0435 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 production-ready \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u0442\u0435\u0441\u044c \u0441 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430\u043c\u0438 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0443\u0447\u0438\u0442\u0435\u0441\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0451\u0442\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 \u043a\u0443\u0440\u0441 \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0441 Kubernetes \u0438 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432 \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442 \u0438 \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0442\u043e\u043d\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439. <\/p>\n<p>? \u041f\u043e\u043b\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043a\u0443\u0440\u0441\u0430 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435<a href=\"https:\/\/slurm.io\/kubernetes-megapotok?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=kubernetes-megapotok&amp;utm_content=article_02-09-2023&amp;utm_term=@Liloon21\"> \u043d\u0430 \u043d\u0430\u0448\u0435\u043c \u0441\u0430\u0439\u0442\u0435<\/a>.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u0432\u0435\u0431\u0438\u043d\u0430\u0440\u0430 <a href=\"https:\/\/www.youtube.com\/live\/zmP4y4EDOvc?si=DdtKQdwKGr7DmL-s\"><u>\u0412\u0435\u0447\u0435\u0440\u043d\u0435\u0439 \u0448\u043a\u043e\u043b\u044b Kubernetes \u043e\u0431 \u0430\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0438\u043d\u0433\u0435<\/u><\/a> \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0435 \u0421\u043b\u0451\u0440\u043c\u0430.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/764740\/\"> https:\/\/habr.com\/ru\/articles\/764740\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Ingress \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Prometheus, KEDA \u0438 Locust \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043a\u0430. <\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0427\u0442\u043e\u0431\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ol>\n<li>\n<p>\u041c\u0435\u0442\u0440\u0438\u043a\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443).<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u043b\u043b\u0435\u043a\u0442\u043e\u0440 \u043c\u0435\u0442\u0440\u0438\u043a (\u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a).<\/p>\n<\/li>\n<li>\n<p>\u0410\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0435\u0440 (\u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445).<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\">\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0447\u043d\u0451\u043c \u0441 \u043c\u0435\u0442\u0440\u0438\u043a.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e <a href=\"https:\/\/kubernetes.github.io\/ingress-nginx\/user-guide\/monitoring\/\"><u>\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c nginx-ingress \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a Prometheus<\/u><\/a>. \u0414\u043b\u044f \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code>nginx_connections_active<\/code>.<\/p>\n<figure class=\"full-width\">\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430\u0439\u0442\u0438 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a. \u041a\u0430\u043a \u0432\u044b \u0443\u0436\u0435 \u0434\u043e\u0433\u0430\u0434\u0430\u043b\u0438\u0441\u044c, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Prometheus. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 Nginx-ingress \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u0434\u043b\u044f Prometheus, <a href=\"https:\/\/github.com\/prometheus-community\/helm-charts\"><u>\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0435\u0437 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 Kubernetes<\/u><\/a>.<\/p>\n<pre><code>$ helm repo add prometheus-community https:\/\/prometheus-community.github.io\/helm-charts \"prometheus-community\" has been added to your repositories $ helm install prometheus prometheus-community\/prometheus NAME: prometheus NAMESPACE: default STATUS: deployed REVISION: 1 TEST SUITE: None<\/code><\/pre>\n<p>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b Locust \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043d\u0430 Ingress, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0432\u0441\u0435 \u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0433\u043b\u0430\u0434\u043a\u043e. \u041e\u0442\u043a\u0440\u044b\u0432 \u043f\u0440\u0438\u0431\u043e\u0440\u043d\u0443\u044e \u043f\u0430\u043d\u0435\u043b\u044c Prometheus, \u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b, \u0447\u0442\u043e \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u043c\u0435\u0440\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435.<\/p>\n<figure class=\"full-width\">\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u043f\u0430\u0437\u043b\u043e\u043c \u0441\u0442\u0430\u043b \u0430\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0435\u0440. \u042f \u0440\u0435\u0448\u0438\u043b \u0432\u044b\u0431\u0440\u0430\u0442\u044c <a href=\"https:\/\/keda.sh\/\"><u>KEDA<\/u><\/a>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e:<\/p>\n<ol>\n<li>\n<p>\u042d\u0442\u043e \u0430\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0435\u0440 <a href=\"https:\/\/github.com\/kubernetes-sigs\/metrics-server\"><u>\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u043c\u0435\u0442\u0440\u0438\u043a<\/u><\/a> (\u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0434\u0432\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430).<\/p>\n<\/li>\n<li>\n<p>\u041e\u043d \u043f\u0440\u043e\u0449\u0435 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435, \u0447\u0435\u043c \u0430\u0434\u0430\u043f\u0442\u0435\u0440 Prometheus.<\/p>\n<\/li>\n<li>\n<p>\u042f \u043c\u043e\u0433\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/keda.sh\/docs\/2.10\/scalers\/prometheus\/\"><u>Horizontal Pod Autoscaler \u0441 PromQL<\/u><\/a>.<\/p>\n<\/li>\n<\/ol>\n<figure class=\"full-width\">\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 KEDA \u043c\u043d\u0435 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e <a href=\"https:\/\/keda.sh\/docs\/2.10\/concepts\/scaling-deployments\/#scaledobject-spec\"><u>\u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 ScaledObject<\/u><\/a>, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043c\u0435\u0442\u0440\u0438\u043a (Prometheus) \u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 PromQL).<\/p>\n<figure class=\"full-width\">\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>KEDA \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0434\u043b\u044f \u043c\u0435\u043d\u044f HPA. \u042f \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b \u0442\u0435\u0441\u0442\u044b \u0441 Locust \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u043b, \u043a\u0430\u043a \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u043f\u043b\u0438\u043a \u043f\u043e \u043c\u0435\u0440\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 Nginx Ingress!<\/p>\n<figure class=\"full-width\">\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u043d\u0430 \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435? \u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u044e\u0449\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432?\u00a0<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043e\u043d\u0438 \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u0442\u043e \u043e\u0442\u0432\u0435\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439. \u041e\u0434\u043d\u0430\u043a\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0445\u043e\u0434\u043d\u043e\u0439 \u043f\u0443\u0442\u044c.<\/p>\n<p><a href=\"https:\/\/github.com\/kedacore\/http-add-on\"><u>KEDA \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 HTTP-\u043d\u0430\u0434\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u0434\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/u><\/a> \u043f\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 HTTP. \u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442? KEDA \u0438\u0436\u0435\u043a\u0442\u0438\u0442 \u043f\u0440\u043e\u043a\u0441\u0438 sidecar \u0432 \u0432\u0430\u0448 pod, \u0447\u0442\u043e\u0431\u044b \u0432\u0435\u0441\u044c HTTP-\u0442\u0440\u0430\u0444\u0438\u043a \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u043c. \u0417\u0430\u0442\u0435\u043c \u043e\u043d \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0432\u044b\u0434\u0430\u0435\u0442 \u043c\u0435\u0442\u0440\u0438\u043a\u0438. \u0418\u043c\u0435\u044f \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439 \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0435\u0440.<\/p>\n<figure class=\"full-width\">\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e KEDA \u2014 \u043d\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u041c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <a href=\"https:\/\/github.com\/kubernetes-sigs\/prometheus-adapter\"><u>Prometheus Adapter<\/u><\/a>. \u041c\u0435\u0442\u0440\u0438\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0438\u0437 Nginx \u0432 Prometheus, \u0430 \u0437\u0430\u0442\u0435\u043c \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0438\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u0434\u043b\u044f Kubernetes. \u041e\u0442\u0442\u0443\u0434\u0430 \u043e\u043d\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u044e\u0442\u0441\u044f Horizontal Pod Autoscaler.<\/p>\n<figure class=\"full-width\">\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u041b\u0443\u0447\u0448\u0435 \u043b\u0438 \u044d\u0442\u043e, \u0447\u0435\u043c KEDA? \u041e\u043d\u0438 \u043f\u043e\u0445\u043e\u0436\u0438, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u0431\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0438 \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0438\u0437 Prometheus. \u041e\u0434\u043d\u0430\u043a\u043e KEDA \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u043e\u0439, \u0430 Adapter \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441 Prometheus.<\/p>\n<figure class=\"full-width\">\n<div><figcaption><a href=\"https:\/\/itnext.io\/autoscaling-ingress-controllers-in-kubernetes-c64b47088485\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a<\/a><\/figcaption><\/div>\n<\/figure>\n<p>\u0415\u0441\u0442\u044c \u043b\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442 \u0443 KEDA?<\/p>\n<p>\u041f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <a href=\"https:\/\/custom-pod-autoscaler.readthedocs.io\/en\/latest\/\"><u>Custom Pod Autoscaler<\/u><\/a> \u043f\u0440\u0438\u0437\u0432\u0430\u043d \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0435\u0440 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u043c. \u041e\u0434\u043d\u0430\u043a\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u044d\u0442\u0438 \u043f\u043e\u0434\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f (\u0442.\u0435. \u043d\u0430 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c), \u0430 \u043d\u0435 \u043d\u0430 \u0441\u0431\u043e\u0440 \u043c\u0435\u0442\u0440\u0438\u043a.<\/p>\n<details class=\"spoiler\">\n<summary>\u042d\u0442\u0438 \u0441\u0441\u044b\u043b\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0442\u0435\u043c\u044b:<\/summary>\n<div class=\"spoiler__content\">\n<p><a href=\"https:\/\/keda.sh\/docs\/2.10\/scalers\/prometheus\/\">https:\/\/keda.sh\/docs\/2.10\/scalers\/prometheus\/<\/a><\/p>\n<p><a href=\"https:\/\/sysdig.com\/blog\/kubernetes-hpa-prometheus\/\">https:\/\/sysdig.com\/blog\/kubernetes-hpa-prometheus\/<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/nginxinc\/nginx-prometheus-exporter#exported-metrics\">https:\/\/github.com\/nginxinc\/nginx-prometheus-exporter#exported-metrics<\/a><\/p>\n<p><a href=\"https:\/\/learnk8s.io\/scaling-celery-rabbitmq-kubernetes\">https:\/\/learnk8s.io\/scaling-celery-rabbitmq-kubernetes<\/a><\/p>\n<\/div>\n<\/details>\n<hr\/>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u043e\u0431 \u0430\u0432\u0442\u043e\u0441\u043a\u043b\u0435\u0439\u043d\u0438\u0433\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 Kubernetes \u0438 \u043d\u0430\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0435 \u0432 \u0421\u043b\u0451\u0440\u043c \u043d\u0430 \u043a\u0443\u0440\u0441<a href=\"https:\/\/slurm.io\/kubernetes-megapotok?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=kubernetes-megapotok&amp;utm_content=article_02-09-2023&amp;utm_term=@Liloon21\"> Kubernetes: \u041c\u0435\u0433\u0430<\/a>. \u041d\u0430 \u043d\u0451\u043c \u0432\u044b:\u00a0<\/p>\n<ul>\n<li>\n<p>\u0418\u0437\u0443\u0447\u0438\u0442\u0435 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 production-ready \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0435\u0442\u0435\u0441\u044c \u0441 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430\u043c\u0438 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u043e\u0442\u043a\u0430\u0437\u043e\u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0443\u0447\u0438\u0442\u0435\u0441\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u0431\u0435\u0440\u0451\u0442\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 \u043a\u0443\u0440\u0441 \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0441 Kubernetes \u0438 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432 \u0437\u0430\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442 \u0438 \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0442\u043e\u043d\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439. <\/p>\n<p>? \u041f\u043e\u043b\u043d\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043a\u0443\u0440\u0441\u0430 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435<a href=\"https:\/\/slurm.io\/kubernetes-megapotok?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=kubernetes-megapotok&amp;utm_content=article_02-09-2023&amp;utm_term=@Liloon21\"> \u043d\u0430 \u043d\u0430\u0448\u0435\u043c \u0441\u0430\u0439\u0442\u0435<\/a>.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0437\u0430\u043f\u0438\u0441\u044c \u0432\u0435\u0431\u0438\u043d\u0430\u0440\u0430 <a href=\"https:\/\/www.youtube.com\/live\/zmP4y4EDOvc?si=DdtKQdwKGr7DmL-s\"><u>\u0412\u0435\u0447\u0435\u0440\u043d\u0435\u0439 \u0448\u043a\u043e\u043b\u044b Kubernetes \u043e\u0431 \u0430\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0438\u043d\u0433\u0435<\/u><\/a> \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0435 \u0421\u043b\u0451\u0440\u043c\u0430.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/764740\/\"> https:\/\/habr.com\/ru\/articles\/764740\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-356382","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/356382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=356382"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/356382\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=356382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=356382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=356382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}