{"id":1818,"date":"2025-06-28T21:55:36","date_gmt":"2025-06-28T19:55:36","guid":{"rendered":"https:\/\/olvas.dev\/?p=1818"},"modified":"2025-06-28T22:27:22","modified_gmt":"2025-06-28T20:27:22","slug":"devops-%d0%b2-%d0%bb%d0%be%d0%ba%d0%b0%d0%bb%d1%8c%d0%bd%d1%8b%d1%85-%d0%be%d0%b1%d0%bb%d0%b0%d0%ba%d0%b0%d1%85-%d0%ba%d0%b0%d0%ba-%d1%81%d1%82%d1%80%d0%be%d0%b8%d1%82%d1%8c-%d0%b2%d1%8b%d1%81%d0%be","status":"publish","type":"post","link":"https:\/\/olvas.dev\/?p=1818","title":{"rendered":"DevOps \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u043a\u0430\u0445: \u043a\u0430\u043a \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u043e\u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 CI\/CD, Kubernetes \u0438 Grafana"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435: DevOps \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439<\/h3>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u043e\u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u0443\u044e fintech-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u0431\u043b\u0430\u043a\u0435, \u0437\u0430\u0434\u0430\u0447\u0430 \u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c\u043e\u0439: \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b, \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043c\u0435\u0441\u0442\u043d\u043e\u0439 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u043e\u0439. \u041e\u0434\u043d\u0430\u043a\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u044b, \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0442\u0438, \u0441\u0442\u0440\u043e\u0433\u0438\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0442\u0440\u0430\u043d\u044b \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u0441\u043a\u0435\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u043a \u043d\u043e\u0432\u044b\u043c \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430\u043c \u0432\u0440\u043e\u0434\u0435 GitLab CI, \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0432\u044b\u0437\u043e\u0432. \u0417\u0430 \u0434\u0432\u0430 \u0433\u043e\u0434\u0430 \u043c\u044b \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0443\u044e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c 10 000 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 (TPS), \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c\u0441\u044f \u0437\u0430 12 \u043c\u0438\u043d\u0443\u0442 \u0438 \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043f\u0438\u043a\u043e\u0432\u044b\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u00ab\u0447\u0435\u0440\u043d\u0430\u044f \u043f\u044f\u0442\u043d\u0438\u0446\u0430\u00bb. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u043c\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 DevOps-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u0431\u043b\u0430\u043a\u0435, \u043a\u0430\u043a\u0438\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0435\u043b\u0438 \u0438 \u043a\u0430\u043a\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u043c\u043e\u0433\u043b\u0438 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0443\u0441\u043f\u0435\u0445\u0430. \u0415\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0432 \u0440\u0435\u0433\u0438\u043e\u043d\u0435, \u0433\u0434\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b, \u043d\u0430\u0448 \u043e\u043f\u044b\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442: \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1.1. \u041f\u043e\u0447\u0435\u043c\u0443 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430?<\/h4>\n\n\n\n<p>\u0417\u0430\u043a\u043e\u043d\u043e\u0434\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u0440\u044f\u0434\u0430 \u0441\u0442\u0440\u0430\u043d, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043d\u0430\u0448\u0443, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0433\u0440\u0430\u0436\u0434\u0430\u043d \u0432 \u043c\u0435\u0441\u0442\u043d\u044b\u0445 \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u0430\u0445, \u0447\u0430\u0441\u0442\u043e \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0433\u043e\u0440\u043e\u0434\u0430\u0445. \u042d\u0442\u043e \u0432\u044b\u043d\u0443\u0434\u0438\u043b\u043e \u043d\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443. \u041f\u043e\u043c\u0438\u043c\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c, \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u043d\u0435\u0435: \u043f\u043e \u043d\u0430\u0448\u0438\u043c \u0440\u0430\u0441\u0447\u0435\u0442\u0430\u043c, \u043e\u043d\u0438 \u043d\u0430 30\u201340% \u0434\u0435\u0448\u0435\u0432\u043b\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432 \u0434\u043b\u044f \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>\u0420\u0435\u0441\u0443\u0440\u0441<\/th><th>\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e ($\/\u043c\u0435\u0441)<\/th><th>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e ($\/\u043c\u0435\u0441)<\/th><\/tr><tr><td>10 \u043d\u043e\u0434 (16 vCPU, 64 \u0413\u0411 RAM)<\/td><td>5000<\/td><td>8000<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u041e\u0434\u043d\u0430\u043a\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u044f \u0441\u043e\u043f\u0440\u044f\u0436\u0435\u043d\u0430 \u0441 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438. \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430 \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a managed Kubernetes \u0438\u043b\u0438 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u0412\u0441\u0435 \u2014 \u043e\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u0432 \u0434\u043e \u0442\u044e\u043d\u0438\u043d\u0433\u0430 PostgreSQL &#8212; \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0421\u0435\u0442\u0435\u0432\u044b\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0432 \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u0445, \u043f\u043e\u0440\u043e\u0439 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u044e\u0449\u0438\u0435 100 \u043c\u0441, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b\u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.2. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430?<\/h4>\n\n\n\n<p>\u0412\u044b\u0441\u043e\u043a\u043e\u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u043d\u0430\u0448\u0435\u043c \u0440\u0435\u0433\u0438\u043e\u043d\u0435 &#8212; \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u0431\u0430\u043d\u043a\u0438 \u0438\u043b\u0438 \u0433\u043e\u0441\u0443\u0434\u0430\u0440\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u043e\u0440\u0442\u0430\u043b\u044b. \u042d\u0442\u043e \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0435 \u043c\u0430\u0440\u043a\u0435\u0442\u043f\u043b\u0435\u0439\u0441\u044b, \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u043d\u043b\u0430\u0439\u043d-\u0431\u0430\u043d\u043a\u0438\u043d\u0433\u0430, \u043b\u043e\u0433\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0438 \u0434\u0430\u0436\u0435 \u0438\u0433\u0440\u043e\u0432\u044b\u0435 \u0441\u0442\u0430\u0440\u0442\u0430\u043f\u044b. \u041d\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 &#8212; \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u0440\u0435\u0434\u0438\u0442\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 &#8212; \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c 10 000 TPS \u0432 \u043f\u0438\u043a\u0435, \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0435\u0436\u0435\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u0435\u0432 \u0437\u0430 5 \u043c\u0438\u043d\u0443\u0442. \u0418 \u0432\u0441\u0435 \u044d\u0442\u043e \u043d\u0430 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435, \u0433\u0434\u0435 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043b\u0438 \u044d\u043f\u043e\u0445\u0443 dial-up.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">2.1. CI\/CD: \u043e\u0442 \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438<\/h4>\n\n\n\n<p>\u041d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043d\u0430\u0448 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 CI\/CD \u0431\u044b\u043b \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u043c: \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0443\u0448\u0430\u0442 \u043a\u043e\u0434 \u0432 GitLab, \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u044b \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442&nbsp;<code>build.tar.gz<\/code>&nbsp;\u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0447\u0435\u0440\u0435\u0437&nbsp;<code>scp<\/code>, \u0430 \u0437\u0430\u0442\u0435\u043c \u0432\u0441\u0435 \u043d\u0430\u0434\u0435\u044e\u0442\u0441\u044f, \u0447\u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u0441\u0447\u0438\u0442\u0430\u043b\u0438 GitLab CI \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u043c, \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044f, \u0447\u0442\u043e \u00ab\u0440\u0430\u043d\u044c\u0448\u0435 \u0438&nbsp;<code>scp<\/code>&nbsp;\u0445\u0432\u0430\u0442\u0430\u043b\u043e\u00bb. \u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u044d\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c.<\/p>\n\n\n\n<p>\u041c\u044b \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0432 GitLab CI \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 Docker-\u043e\u0431\u0440\u0430\u0437\u043e\u0432, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0434\u0435\u043f\u043b\u043e\u044f \u0432 Kubernetes. \u0412\u043e\u0442 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u044b\u0439&nbsp;<code>.gitlab-ci.yml<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>stages:\n  - build\n  - test\n  - scan\n  - deploy\n\nvariables:\n  REGISTRY: \"registry.localcloud\/myapp\"\n  TAG: \"$CI_COMMIT_SHA\"\n\nbuild:\n  stage: build\n  script:\n    - echo \"\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c Docker-\u043e\u0431\u0440\u0430\u0437...\"\n    - docker build --cache-from $REGISTRY:latest -t $REGISTRY:$TAG .\n    - docker push $REGISTRY:$TAG\n  only:\n    - main\n\ntest:\n  stage: test\n  parallel:\n    matrix:\n      - TEST_TYPE: &#91;unit, integration]\n  script:\n    - echo \"\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c $TEST_TYPE \u0442\u0435\u0441\u0442\u044b...\"\n    - docker run $REGISTRY:$TAG pytest --cov=app tests\/$TEST_TYPE\n  only:\n    - main\n\nscan:\n  stage: scan\n  script:\n    - echo \"\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043e\u0431\u0440\u0430\u0437 \u043d\u0430 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0438...\"\n    - docker run aquasec\/trivy image $REGISTRY:$TAG\n  only:\n    - main\n\ndeploy:\n  stage: deploy\n  script:\n    - echo \"\u0414\u0435\u043f\u043b\u043e\u0438\u043c \u0432 Kubernetes...\"\n    - sed -i \"s|TAG|$TAG|g\" k8s\/deployment.yaml\n    - kubectl apply -f k8s\/deployment.yaml\n  environment:\n    name: production\n  only:\n    - main<\/code><\/code><\/pre>\n\n\n\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0435\u0441\u0442\u0440 \u00ab\u0437\u0430\u0432\u0438\u0441\u0430\u043b\u00bb \u043f\u0440\u0438 \u043f\u0443\u0448\u0430\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u043e\u0431\u044a\u0435\u043c\u043e\u043c \u0431\u043e\u043b\u0435\u0435 1 \u0413\u0411 \u0438\u0437-\u0437\u0430 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439.<\/li>\n\n\n\n<li>\u0422\u0435\u0441\u0442\u044b \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u0438 40 \u043c\u0438\u043d\u0443\u0442 \u0438\u0437-\u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.<\/li>\n<\/ul>\n\n\n\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u044d\u0448 Docker-\u043e\u0431\u0440\u0430\u0437\u043e\u0432, \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0432 \u0432\u0440\u0435\u043c\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u0430 60%.<\/li>\n\n\n\n<li>\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u043b\u0438 \u0442\u0435\u0441\u0442\u044b \u043d\u0430 \u044e\u043d\u0438\u0442- \u0438 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u0438\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<code>parallel: matrix<\/code>, \u0447\u0442\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430 20%.<\/li>\n\n\n\n<li>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0441\u0435\u0442\u044c \u043c\u0435\u0436\u0434\u0443 runners \u0438 \u0440\u0435\u0435\u0441\u0442\u0440\u043e\u043c, \u0432\u044b\u0434\u0435\u043b\u0438\u0432 VLAN.<\/li>\n<\/ul>\n\n\n\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/strong>: \u0432\u0440\u0435\u043c\u044f \u0434\u0435\u043f\u043b\u043e\u044f \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0441 2 \u0447\u0430\u0441\u043e\u0432 \u0434\u043e 12 \u043c\u0438\u043d\u0443\u0442. \u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0441\u0442\u0430\u043b \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0434\u0430\u0436\u0435 \u0432 \u043f\u0438\u043a\u043e\u0432\u044b\u0435 \u0440\u0435\u043b\u0438\u0437\u044b.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/2e6\/f2f\/f11\/2e6f2ff11c58aa3d5e22079ca8275220.png\" alt=\"CI\/CD \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\"\/><figcaption class=\"wp-element-caption\">CI\/CD \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">2.2. Kubernetes: \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0441 \u043d\u0443\u043b\u044f<\/h4>\n\n\n\n<p>\u0411\u0435\u0437 managed Kubernetes \u043c\u044b \u043f\u043e\u0434\u043d\u044f\u043b\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0447\u0435\u0440\u0435\u0437&nbsp;<code>kubeadm<\/code>. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0448\u0430\u0433\u0438:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u00a0<code>kubeadm<\/code>,\u00a0<code>kubelet<\/code>\u00a0\u0438\u00a0<code>kubectl<\/code>\u00a0\u043d\u0430 \u043d\u043e\u0434\u044b (16 vCPU, 64 \u0413\u0411 RAM).<\/li>\n\n\n\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 Calico \u0434\u043b\u044f \u0441\u0435\u0442\u0435\u0439:<\/li>\n<\/ul>\n\n\n\n<p><code>kubectl apply -f https:\/\/docs.projectcalico.org\/manifests\/calico.yaml<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u00a0<code>kubelet<\/code>:<\/li>\n<\/ul>\n\n\n\n<p><code>--max-pods=150<br>--kube-reserved=cpu=500m,memory=1Gi<\/code><\/p>\n\n\n\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041d\u043e\u0434\u044b \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u043b\u0438\u0441\u044c \u043d\u0430 90% \u0438\u0437-\u0437\u0430 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/li>\n\n\n\n<li>\u0421\u0435\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b\u0430 50 \u043c\u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 pod\u2019\u0430\u043c\u0438.<\/li>\n<\/ul>\n\n\n\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 Horizontal Pod Autoscaler (HPA) \u0441 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u043c\u0438:<\/li>\n<\/ul>\n\n\n\n<p><code>apiVersion: autoscaling\/v2<br>kind: HorizontalPodAutoscaler<br>metadata:<br>name: myapp-hpa<br>spec:<br>scaleTargetRef:<br>apiVersion: apps\/v1<br>kind: Deployment<br>name: myapp<br>minReplicas: 3<br>maxReplicas: 12<br>metrics:<br>- type: Resource<br>resource:<br>name: cpu<br>target:<br>type: Utilization<br>averageUtilization: 70<br>- type: Pods<br>pods:<br>metric:<br>name: http_requests<br>target:<br>type: AverageValue<br>averageValue: 1000<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f Cluster Autoscaler, \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u043d\u043e\u0432\u044b\u0435 \u043d\u043e\u0434\u044b \u0447\u0435\u0440\u0435\u0437 API \u043e\u0431\u043b\u0430\u043a\u0430.<\/li>\n\n\n\n<li>\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0438 MTU \u0434\u043e 9000 \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0442\u0438.<\/li>\n<\/ul>\n\n\n\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/strong>: \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b 10 000 RPS, \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u043e 2 \u043c\u0438\u043d\u0443\u0442\u044b.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/94b\/f54\/329\/94bf5432942343bc9dcdf43ce0258ac8.png\" alt=\"HPA \u0430\u0432\u0442\u043e\u0448\u043a\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\"\/><figcaption class=\"wp-element-caption\">HPA \u0430\u0432\u0442\u043e\u0448\u043a\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">2.3. PostgreSQL: \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u0441 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f\u043c\u0438<\/h4>\n\n\n\n<p>\u0414\u043b\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 PostgreSQL \u0441 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0435\u0439, \u043f\u043e\u0434\u043d\u044f\u0432 Patroni \u0434\u043b\u044f \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 (HA). \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041f\u0430\u0440\u0442\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u043e\u00a0<code>user_id<\/code>:<\/li>\n<\/ul>\n\n\n\n<p><code><strong>CREATE<\/strong> <strong>TABLE<\/strong> transactions (<br>id BIGSERIAL,<br>user_id <strong>BIGINT<\/strong>,<br>amount <strong>DECIMAL<\/strong>,<br>created_at <strong>TIMESTAMP<\/strong><br>) PARTITION <strong>BY<\/strong> RANGE (user_id);<br><br><strong>CREATE<\/strong> <strong>TABLE<\/strong> transactions_0 PARTITION OF transactions<br>FOR <strong>VALUES<\/strong> <strong>FROM<\/strong> (0) TO (1000000);<br><strong>CREATE<\/strong> <strong>TABLE<\/strong> transactions_1 PARTITION OF transactions<br>FOR <strong>VALUES<\/strong> <strong>FROM<\/strong> (1000000) TO (2000000);<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\u00a0<code>postgresql.conf<\/code>:<\/li>\n<\/ul>\n\n\n\n<p><code>work_mem = 16MB max_connections = 500 shared_buffers = 8GB effective_cache_size = 24GB<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0420\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Patroni \u0441 \u0434\u0432\u0443\u043c\u044f read-only \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u043c\u0438, \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 PgBouncer.<\/li>\n<\/ul>\n\n\n\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u00a0<code>max_connections=100<\/code>\u00a0\u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043b\u043e \u043a \u043e\u0442\u043a\u0430\u0437\u0430\u043c \u0432 \u043f\u0438\u043a\u0435.<\/li>\n\n\n\n<li>\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u043f\u043e\u00a0<code>created_at<\/code>\u00a0\u0437\u0430\u043c\u0435\u0434\u043b\u044f\u043b\u043e \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/li>\n<\/ul>\n\n\n\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0438\u00a0<code>max_connections<\/code>\u00a0\u0434\u043e 500 \u0438 \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 PgBouncer.<\/li>\n\n\n\n<li>\u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u044b:<\/li>\n<\/ul>\n\n\n\n<p><code><strong>CREATE<\/strong> INDEX transactions_created_at_idx <strong>ON<\/strong> transactions (created_at);<\/code><\/p>\n\n\n\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/strong>: \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (P99) \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0441 200 \u043c\u0441 \u0434\u043e 30 \u043c\u0441.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/9ac\/0e6\/726\/9ac0e67264b2d01f976f23cca8e0e9f6.png\" alt=\"PostgreSQL \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430\"\/><figcaption class=\"wp-element-caption\">PostgreSQL \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">2.4. \u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433: \u043e\u043f\u0435\u0440\u0435\u0436\u0430\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/h4>\n\n\n\n<p>\u041c\u044b \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0441\u0442\u0435\u043a \u0438\u0437 Prometheus, Grafana \u0438 Alertmanager. \u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Prometheus:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>scrape_configs:\n  - job_name: 'myapp'\n    static_configs:\n      - targets: &#91;'myapp.localcloud:8080']\n    metrics_path: \/metrics<\/code><\/code><\/pre>\n\n\n\n<p><strong>\u041a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438<\/strong>:<\/p>\n\n\n\n<p>\u041e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043b\u0438 HTTP-\u043e\u0448\u0438\u0431\u043a\u0438:<\/p>\n\n\n\n<p><code>rate(http_requests_total{status=\"500\"}[5m]) > 0.1<\/code><\/p>\n\n\n\n<p>\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043b\u0438 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 API:<\/p>\n\n\n\n<p><code>histogram_quantile(0.99, sum(rate(http_request_duration_seconds_bucket[5m])) by (le))<\/code><\/p>\n\n\n\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Prometheus \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u043b\u0441\u044f \u043f\u0440\u0438 500+ pod\u2019\u0430\u0445.<\/li>\n\n\n\n<li>\u0421\u0435\u0442\u0435\u0432\u044b\u0435 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u043b\u0438 \u0441\u0431\u043e\u0440 \u043c\u0435\u0442\u0440\u0438\u043a.<\/li>\n<\/ul>\n\n\n\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0412\u043d\u0435\u0434\u0440\u0438\u043b\u0438 Thanos \u0434\u043b\u044f \u0434\u043e\u043b\u0433\u043e\u0441\u0440\u043e\u0447\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a:<\/li>\n<\/ul>\n\n\n\n<p><code>thanos:<br>store:<br>enabled: <strong>true<\/strong><\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b \u0441\u0431\u043e\u0440\u0430 \u0434\u043e 30 \u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u043b\u044f \u043d\u0435\u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.<\/li>\n\n\n\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0430\u043b\u0435\u0440\u0442\u044b \u0432 Telegram:<\/li>\n<\/ul>\n\n\n\n<p><code>route:<br>receiver: 'telegram'<br>receivers:<br>- name: 'telegram'<br>telegram_configs:<br>- bot_token: 'YOUR_BOT_TOKEN'<br>chat_id: '-123456789'<\/code><\/p>\n\n\n\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/strong>: MTTR \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u0434\u043e 2 \u043c\u0438\u043d\u0443\u0442, \u0434\u043e\u043b\u044f 500-\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0443\u043f\u0430\u043b\u0430 \u0441 1% \u0434\u043e 0.01%.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/\/post_images\/7e7\/b65\/3e0\/7e7b653e0f907475fe717ff0e948a66b.png\" alt=\"Grafana - \u043f\u0430\u0434\u0435\u043d\u0438\u0435 500-\u0445 \u043e\u0448\u0438\u0431\u043e\u043a\"\/><figcaption class=\"wp-element-caption\">Grafana &#8212; \u043f\u0430\u0434\u0435\u043d\u0438\u0435 500-\u0445 \u043e\u0448\u0438\u0431\u043e\u043a<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0430\u0442\u0440\u0430\u0442<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">3.1. \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c<\/h4>\n\n\n\n<p><strong>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u0430\u043c\u0438<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u00a0<code>kubectl create secret<\/code>, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u043d\u0435\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e. \u041f\u0435\u0440\u0435\u0448\u043b\u0438 \u043d\u0430 HashiCorp Vault:<code>vault kv put secret\/myapp db_password=supersecret<\/code><\/li>\n\n\n\n<li>\u0418\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 Vault \u0441 Kubernetes \u0447\u0435\u0440\u0435\u0437 sidecar-\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b.<\/li>\n<\/ul>\n\n\n\n<p><strong>\u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u0432<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0412\u043d\u0435\u0434\u0440\u0438\u043b\u0438 Trivy \u0432 CI\/CD \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u0435\u0439 (\u0441\u043c. \u044d\u0442\u0430\u043f\u00a0<code>scan<\/code>).<\/li>\n\n\n\n<li>\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438 CVE \u0432 \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Nginx \u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0438 \u043e\u0431\u0440\u0430\u0437.<\/li>\n<\/ul>\n\n\n\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0442\u043e\u043a\u0435\u043d\u044b \u0432\u00a0<code>.env<\/code>.<\/li>\n\n\n\n<li>Trivy \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u043b \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u043d\u0430 5 \u043c\u0438\u043d\u0443\u0442.<\/li>\n<\/ul>\n\n\n\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041f\u0440\u043e\u0432\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430\u043c.<\/li>\n\n\n\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f Trivy.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">3.2. \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0437\u0430\u0442\u0440\u0430\u0442<\/h4>\n\n\n\n<p>\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u043a\u0430 \u0434\u0435\u0448\u0435\u0432\u043b\u0435 \u043d\u0430 30\u201340%, \u043d\u043e \u043d\u0430\u0448 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0438\u0437 10 \u043d\u043e\u0434 ($5000\/\u043c\u0435\u0441) \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 managed-\u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u043b\u043e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u044b &#8212; \u043e\u043a\u043e\u043b\u043e 20 \u0447\u0430\u0441\u043e\u0432 \u0432 \u043c\u0435\u0441\u044f\u0446.<\/p>\n\n\n\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u044f<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<code>kube-reserved<\/code>\u00a0\u0438 HPA.<\/li>\n\n\n\n<li>\u0417\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043f\u0438\u043b\u043e\u0442 ArgoCD \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0435\u043f\u043b\u043e\u0435\u0432.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 DevOps-\u043a\u0443\u043b\u044c\u0442\u0443\u0440\u044b: \u043e\u0442 \u0441\u043a\u0435\u043f\u0442\u0438\u0446\u0438\u0437\u043c\u0430 \u043a \u0432\u043e\u0432\u043b\u0435\u0447\u0435\u043d\u043d\u043e\u0441\u0442\u0438<\/h3>\n\n\n\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b\u0438 \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c CI\/CD \u0438 Kubernetes, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b\u0430 \u044d\u0442\u043e \u0432 \u0448\u0442\u044b\u043a\u0438. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u043b\u0438, \u0447\u0442\u043e \u0443 \u043d\u0438\u0445 \u043d\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u00ab\u044d\u0442\u0438 \u043d\u043e\u0432\u043e\u043c\u043e\u0434\u043d\u044b\u0435 \u0448\u0442\u0443\u043a\u0438\u00bb, \u0430 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u0447\u0438\u0442\u0430\u043b\u0438 Kubernetes \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u043c \u0443\u0441\u043b\u043e\u0436\u043d\u0435\u043d\u0438\u0435\u043c. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0435\u043e\u0434\u043e\u043b\u0435\u0442\u044c \u0441\u043e\u043f\u0440\u043e\u0442\u0438\u0432\u043b\u0435\u043d\u0438\u0435, \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043d\u043e\u0432\u044b\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u0432 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435.<\/p>\n\n\n\n<p>\u041c\u044b \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u0441\u0435\u0440\u0438\u044e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043c\u0438\u0442\u0430\u043f\u043e\u0432, \u0433\u0434\u0435 \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438, \u043a\u0430\u043a CI\/CD \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0443\u0447\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443, \u0430 Kubernetes \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438, \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u0435\u043f\u043b\u043e\u0435\u0432 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u0447\u0430\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u043d\u044c\u0448\u0435 \u0442\u0440\u0430\u0442\u0438\u043b\u0438\u0441\u044c \u043d\u0430&nbsp;<code>scp<\/code>. \u0417\u0430\u0442\u0435\u043c \u043c\u044b \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 DORA-\u043c\u0435\u0442\u0440\u0438\u043a\u0438 (Deploy Frequency, Lead Time for Changes), \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u0438\u0434\u0435\u043b\u0430 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441: \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0434\u0435\u043f\u043b\u043e\u0435\u0432 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0432 \u043c\u0435\u0441\u044f\u0446 \u0434\u043e \u0442\u0440\u0435\u0445 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e. \u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u0430\u043c Grafana \u043f\u043e\u043c\u043e\u0433 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0438\u0445 \u043a\u043e\u0434 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d &#8212; \u043e\u0442 \u043e\u0448\u0438\u0431\u043e\u043a \u0434\u043e \u0437\u0430\u0434\u0435\u0440\u0436\u0435\u043a API.<\/p>\n\n\n\n<p>\u0421\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u044b \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433. \u042d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u043b\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430, \u043d\u043e \u0438 \u0443\u043a\u0440\u0435\u043f\u0438\u043b\u043e \u0434\u043e\u0432\u0435\u0440\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438. \u0422\u0435\u043f\u0435\u0440\u044c DevOps \u0434\u043b\u044f \u043d\u0430\u0441 &#8212; \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u0430 \u043e\u0431\u0449\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u041a\u0435\u0439\u0441: \u043a\u0430\u043a \u043c\u044b \u0441\u043f\u0430\u0441\u043b\u0438 fintech-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443<\/h3>\n\n\n\n<p>\u041d\u0430\u0448\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u0440\u0435\u0434\u0438\u0442\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c 10 000 TPS, \u0434\u0435\u043f\u043b\u043e\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u0437 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u0435\u0432 \u0437\u0430 5 \u043c\u0438\u043d\u0443\u0442. \u041d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u0442\u0440\u0430\u0434\u0430\u043b \u043e\u0442 \u0434\u043e\u043b\u0433\u0438\u0445 \u0434\u0435\u043f\u043b\u043e\u0435\u0432 (2 \u0447\u0430\u0441\u0430), \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430.<\/p>\n\n\n\n<p><strong>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043d\u0430 Go, \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0435 \u0432 Kubernetes.<\/li>\n\n\n\n<li>PostgreSQL \u0441 Patroni \u0438 PgBouncer \u0434\u043b\u044f \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0438 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u0438.<\/li>\n\n\n\n<li>CI\/CD \u0447\u0435\u0440\u0435\u0437 GitLab CI \u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0441\u0431\u043e\u0440\u043a\u0438, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0434\u0435\u043f\u043b\u043e\u044f.<\/li>\n\n\n\n<li>\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0441 Prometheus, Grafana \u0438 Alertmanager.<\/li>\n<\/ul>\n\n\n\n<p><strong>\u0427\u0442\u043e \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041f\u0430\u0440\u0442\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b PostgreSQL \u043f\u043e\u00a0<code>user_id<\/code>, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439.<\/li>\n\n\n\n<li>\u0412\u043d\u0435\u0434\u0440\u0438\u043b\u0438 Redis \u0434\u043b\u044f \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f 80% \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0441\u043d\u0438\u0437\u0438\u0432 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0431\u0430\u0437\u0443.<\/li>\n\n\n\n<li>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 HPA \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0434\u043e\u0432 \u0438 \u0430\u043b\u0435\u0440\u0442\u044b \u043f\u043e \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u043c \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u043c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0438 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438).<\/li>\n\n\n\n<li>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 CI\/CD-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435.<\/li>\n<\/ul>\n\n\n\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0412\u0440\u0435\u043c\u044f \u0434\u0435\u043f\u043b\u043e\u044f \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0441 2 \u0447\u0430\u0441\u043e\u0432 \u0434\u043e 12 \u043c\u0438\u043d\u0443\u0442.<\/li>\n\n\n\n<li>\u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (P99) \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u0430\u0441\u044c \u0434\u043e 30 \u043c\u0441.<\/li>\n\n\n\n<li>MTTR (Mean Time to Recovery) \u0434\u043e\u0441\u0442\u0438\u0433 2 \u043c\u0438\u043d\u0443\u0442.<\/li>\n<\/ul>\n\n\n\n<p>\u042d\u0442\u043e\u0442 \u043a\u0435\u0439\u0441 \u043f\u043e\u043a\u0430\u0437\u0430\u043b, \u0447\u0442\u043e \u0434\u0430\u0436\u0435 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0431\u043b\u0430\u043a\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043d\u0435 \u0443\u0441\u0442\u0443\u043f\u0430\u044e\u0449\u0443\u044e \u043f\u043e \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u043c \u043d\u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6. \u041f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u044b \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f<\/h3>\n\n\n\n<p>\u041c\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c DevOps-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0418\u0418 \u0432 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0435<\/strong>: \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c ELK \u0441 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u043c \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043b\u043e\u0433\u043e\u0432 \u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0431\u043e\u0435\u0432.<\/li>\n\n\n\n<li><strong>Edge Computing<\/strong>: \u0438\u0437\u0443\u0447\u0430\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u043a\u043e\u0432 \u0434\u043b\u044f IoT-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u0445.<\/li>\n\n\n\n<li><strong>Open Source \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b<\/strong>: \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c ArgoCD \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0435\u043f\u043b\u043e\u044f\u043c\u0438 \u0438 Tekton \u0434\u043b\u044f CI\/CD.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435: DevOps \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u043a\u0430\u0445 \u2014 \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e<\/h3>\n\n\n\n<p>\u0420\u0430\u0431\u043e\u0442\u0430 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u0431\u043b\u0430\u043a\u0435 &#8212; \u043a\u0430\u043a \u0440\u0435\u043c\u043e\u043d\u0442 \u043c\u0430\u0448\u0438\u043d\u044b \u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u043c \u0445\u043e\u0434\u0443: \u0441\u043b\u043e\u0436\u043d\u043e, \u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e. \u0421\u0435\u0442\u0435\u0432\u044b\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f, \u0437\u0430\u043a\u043e\u043d\u043e\u0434\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u0432\u044b\u0437\u043e\u0432\u044b, \u043d\u043e \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 &#8212; Kubernetes, Prometheus, Vault &#8212; \u0438 \u0441\u043f\u043b\u043e\u0447\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u0443\u044e \u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u043c\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443.<\/p>\n\n\n\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong>&nbsp;\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0441\u043a\u0440\u044b\u0442\u044b \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c NDA. \u0412\u0441\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435: DevOps \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u043e\u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u0443\u044e fintech-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u0431\u043b\u0430\u043a\u0435, \u0437\u0430\u0434\u0430\u0447\u0430 \u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c\u043e\u0439: \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b, \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043c\u0435\u0441\u0442\u043d\u043e\u0439 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u043e\u0439. \u041e\u0434\u043d\u0430\u043a\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u0442\u0430-\u0446\u0435\u043d\u0442\u0440\u044b, \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0442\u0438, \u0441\u0442\u0440\u043e\u0433\u0438\u0435 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1823,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[159,55,49,60,93,31,30,17,207,510,144],"class_list":["post-1818","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-likbez","tag-ci-cd","tag-devops","tag-docker","tag-gitlab","tag-grafana","tag-k8s","tag-kubernetes","tag-postgresql","tag-prometheus","tag-thanos","tag-vault","entry-card--wide"],"_links":{"self":[{"href":"https:\/\/olvas.dev\/index.php?rest_route=\/wp\/v2\/posts\/1818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/olvas.dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/olvas.dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/olvas.dev\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/olvas.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1818"}],"version-history":[{"count":3,"href":"https:\/\/olvas.dev\/index.php?rest_route=\/wp\/v2\/posts\/1818\/revisions"}],"predecessor-version":[{"id":1825,"href":"https:\/\/olvas.dev\/index.php?rest_route=\/wp\/v2\/posts\/1818\/revisions\/1825"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/olvas.dev\/index.php?rest_route=\/wp\/v2\/media\/1823"}],"wp:attachment":[{"href":"https:\/\/olvas.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/olvas.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/olvas.dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}