{"id":342329,"date":"2022-12-08T21:00:26","date_gmt":"2022-12-08T21:00:26","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=342329"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2022-12-08T21:00:26","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=342329","title":{"rendered":"<span>Kubernetes the hard way (\u042d\u0432\u043e\u043b\u044e\u0446\u0438\u044f \u0427\u0430\u0441\u0442\u044c 1)<\/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\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442. \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0414\u043e\u0431\u0440\u044b\u0439 \u041a\u043e\u0442\u00a0<a href=\"https:\/\/t.me\/Dobry_kot\" rel=\"noopener noreferrer nofollow\">Telegram<\/a>.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0432 Yandex Cloud \u043d\u0430\u0448\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c terraform.<\/p>\n<p>\u041e\u0442 \u043a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u0432\u0430\u00a0<a href=\"https:\/\/t.me\/fraima_ru\" rel=\"noopener noreferrer nofollow\">FR-Solutions<\/a>\u00a0\u0438 \u043f\u0440\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435\u00a0<a href=\"https:\/\/habr.com\/users\/irbgeo\" rel=\"noopener noreferrer nofollow\">@irbgeo<\/a>\u00a0<a href=\"https:\/\/t.me\/irbgeo\" rel=\"noopener noreferrer nofollow\">Telegram<\/a>\u00a0: \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0441\u0435\u0440\u0438\u044e \u0441\u0442\u0430\u0442\u0435\u0439 \u043e K8S.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e0b\/e7b\/0e4\/e0be7b0e4e1598f16ffe1bf0af99fa6d.png\" alt=\"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438\" title=\"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438\" width=\"auto\" height=\"auto\" data-src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e0b\/e7b\/0e4\/e0be7b0e4e1598f16ffe1bf0af99fa6d.png\"\/><figcaption>\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438<\/figcaption><\/figure>\n<h3>\u041e\u0441\u0432\u0435\u0436\u0438\u043c \u0432\u043e\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f<\/h3>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/699074\/\" rel=\"noopener noreferrer nofollow\">\u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u043c\u044b \u0440\u0430\u0441\u0441\u043f\u0438\u0441\u0430\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f Kubernetes \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0433\u043e\u043b\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u0438 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 &#8212; \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043d\u043e \u0432 \u043d\u0430\u0448\u0438\u0445 \u0440\u0435\u0430\u043b\u0438\u044f\u0445 \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044e. <\/p>\n<p>* \u041f\u043e\u043a\u0430 \u043f\u0438\u0441\u0430\u043b\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044e, \u0438\u0441\u043f\u044b\u0442\u0430\u043b\u0438 \u043c\u043e\u0440\u0435 \u044d\u043c\u043e\u0446\u0438\u0439 \u043a\u0430\u043a \u043e\u0442 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u0442\u0430\u043a \u0438  \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e \u043f\u043e\u0437\u0436\u0435.<\/p>\n<h2>\u041e\u0442\u0440\u0438\u0446\u0430\u043d\u0438\u0435<\/h2>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0441 \u043c\u043e\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0431\u044b\u043b\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0430 Ansible. \u0412\u0441\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c \u043b\u0430\u043c\u043f\u043e\u0432\u043e, \u043f\u0430\u0440\u0430 \u0442\u0430\u0441\u043e\u043a \u0442\u0430\u043c, \u043f\u0430\u0440\u0430 \u0442\u0443\u0442 \u0438 \u0447\u0435\u0440\u0435\u0437 \u043c\u0435\u0441\u044f\u0446 \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u043f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f IaC \u043a\u0443\u0431\u0435\u0440\u0430 \u043d\u0430 Ansible, \u043d\u043e \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u044f \u043f\u0438\u0441\u0430\u043b \u043d\u0430 Ansible, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u043b, \u0447\u0442\u043e \u0435\u0433\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e &#8212; \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0432 \u043e\u0431\u043b\u0430\u043a\u0435.<\/p>\n<p>\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 terraform, \u0438 \u043f\u0435\u0440\u0432\u0430\u044f \u043c\u044b\u0441\u043b\u044c \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u043b\u0430\u0441\u044c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0440\u0435\u0441\u0442\u0438\u0442\u044c \u0443\u0436\u0430 \u0441 \u0435\u0436\u043e\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0435 5 \u043c\u0435\u0442\u0440\u043e\u0432 \u043a\u043e\u043b\u044e\u0447\u0435\u0439 \u043f\u0440\u043e\u0432\u043e\u043b\u043a\u0438. <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u0435\u0441\u044c\u043c\u0430 \u043d\u0435\u043f\u043b\u043e\u0445\u043e, \u043d\u043e \u0432 \u0445\u043e\u0434\u0435 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043e\u0442 Ansible \u043c\u043e\u0436\u043d\u043e  \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u0430 Terraform. \u0421\u0432\u044f\u0437\u0430\u043d\u043e \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 kubernetes \u043c\u043e\u0438\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c &#8212; \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 Cloud-INIT \u0438 \u0432\u043e\u0442 \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0440\u0430\u0441\u0447\u0435\u0445\u043b\u044f\u0442\u044c Ansible \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c. \u041d\u0443 \u0447\u0442\u043e, \u0441\u043a\u0430\u0437\u0430\u043d\u043e &#8212; \u0441\u0434\u0435\u043b\u0430\u043d\u043e! \u041f\u043e\u0448\u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 Terraform.<\/p>\n<h2>\u0413\u043d\u0435\u0432<\/h2>\n<p>\u0411\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0435\u0440\u0432\u043e\u0432 \u0441\u043a\u0443\u0448\u0430\u043b \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f Vault, \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0433\u043e \u043a\u043e\u0434\u043e\u0432\u0430\u044f \u0431\u0430\u0437\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u043e\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432 \u043d\u0430\u0448\u0435\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438. \u0421\u0430\u043c\u044b\u0435 \u0442\u0440\u0443\u0434\u043e\u0435\u043c\u043a\u0438\u0435 \u0447\u0430\u0441\u0442\u0438:<\/p>\n<ol>\n<li>\n<p><a href=\"https:\/\/github.com\/fraima\/kubernetes\/blob\/main\/modules\/k8s-config-vars\/locals.certs.tf\" rel=\"noopener noreferrer nofollow\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> \u0434\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432. \u0412 \u043d\u0435\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0432\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f:<\/p>\n<ol>\n<li>\n<p> \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u043e\u043b\u0435\u0439.<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0437\u0430\u043a\u0430\u0437\u0430 Key-keeper.<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0435\u0439\u0444\u043e\u0432 \u0438 \u0438\u0445 CA.<\/p>\n<\/li>\n<li>\n<p>\u041c\u0435\u0442\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a.<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0438 \u0430\u043f\u043f\u0440\u043e\u043b\u0435\u0439.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0440\u0435\u0448\u0438\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 &#8212; \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 \u0412\u041c \u043c\u0430\u0441\u0442\u0435\u0440\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u0447\u0435\u0440\u0435\u0437 Cloud-Init &#8212; \u043c\u044b \u0441\u043e\u0442\u0432\u043e\u0440\u0438\u043b\u0438 \u043c\u043e\u043d\u0441\u0442\u0440\u0430. (\u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 Yandex Cloud \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b terraform provider \u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 LockBox, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0447\u0435\u0440\u0435\u0437 IAM) &#8212; \u0441\u043a\u043e\u0440\u043e \u043f\u043e\u0444\u0438\u043a\u0441\u0438\u043c.<\/p>\n<h2>\u0422\u043e\u0440\u0433<\/h2>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u0437\u0430\u0434\u0438\u0437\u0430\u0439\u043d\u0438\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0443\u044e, \u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u044b\u0441\u043e\u043a\u043e\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0438 \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0441\u0445\u0435\u043c\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/18f\/5b6\/cbc\/18f5b6cbc7d3ddd0d198304369effb2c.png\" width=\"1680\" height=\"957\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/18f\/5b6\/cbc\/18f5b6cbc7d3ddd0d198304369effb2c.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u043d\u0446\u0435\u043f\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u0441\u0442\u0430\u043b\u0438 Stateless \u0438 \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0438 \u0447\u0442\u043e\u0431\u044b, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0447\u0435\u0433\u043e, \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u0435\u0437 \u0442\u0440\u0443\u0434\u0430 \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0440\u0430\u0442\u044c (\u0434\u0430\u0436\u0435 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u0438\u043f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b).<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u044c, \u0442\u0440\u0435\u0431\u0443\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432:<\/p>\n<ol>\n<li>\n<p>\u0411\u0430\u0437\u0430 Etcd \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u0430 \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0434\u0438\u0441\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u0435\u0437\u0436\u0430\u0442\u044c \u043d\u0430 \u043d\u043e\u0434\u0443 \u0441\u0430\u043c\u0438 (\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 key-keeper).<\/p>\n<\/li>\n<li>\n<p>\u0412\u0435\u0441\u044c \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d \u0432 Cloud-init.<\/p>\n<\/li>\n<li>\n<p>\u0423 \u0412\u041c \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0435 A \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<\/li>\n<\/ol>\n<p>\u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0443\u0437\u043b\u0430\u043c\u0438 \u043c\u0430\u0441\u0442\u0435\u0440\u043e\u0432 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0433\u0438\u0431\u043a\u043e.<\/p>\n<h2>\u0414\u0435\u043f\u0440\u0435\u0441\u0441\u0438\u044f<\/h2>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043d\u0430 \u0442\u0435\u0440\u0440\u0430\u0444\u043e\u0440\u043c\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0430 \u043a\u0430\u043a \u043e\u0434\u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0440\u0435\u043f\u043a\u0430 <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/134\/3e5\/b63\/1343e5b63e10265ba92e998a981d43af.jpeg\" width=\"185\" height=\"273\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/134\/3e5\/b63\/1343e5b63e10265ba92e998a981d43af.jpeg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u0447\u0430\u0441\u0442\u043e \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u0438\u043b\u0438 \u0434\u0435\u0431\u0430\u0433\u0430 \u0441\u0442\u0430\u0440\u043e\u0433\u043e. \u0411\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0440\u0430\u0441\u043f\u0438\u043b\u0438\u0442\u044c \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u0438 \u0432\u0441\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u0447\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 &#171;\u0430 \u043a\u0430\u043a \u043b\u0443\u0447\u0448\u0435?&#187;.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/426\/662\/05f\/42666205ffac2e0b6a16567a44db1136.png\" width=\"815\" height=\"897\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/426\/662\/05f\/42666205ffac2e0b6a16567a44db1136.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043e\u0441\u043d\u043e\u0432\u0435 \u043b\u0435\u0436\u0438\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c yandex-cluster, \u0432 \u043d\u0435\u043c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0438 \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0434\u0443\u043b\u044f.<\/p>\n<details class=\"spoiler\">\n<summary>init<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"bash\">module \"k8s-yandex-cluster\" {     source = \"..\/modules\/k8s-yandex-cluster\"     cluster_name    = var.cluster_name     base_domain     = \"dobry-kot.ru\"     vault_server    = \"http:\/\/193.32.219.99:9200\/\"          service_cidr    = \"29.64.0.0\/16\"      master_group = {         name    = \"master\" # \u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u0434\u043b\u044f \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432.         count   = 1          vpc_id  = yandex_vpc_network.cluster-vpc.id              default_subnet_id = yandex_vpc_subnet.master-subnets[\"ru-central1-a\"].id         default_zone      = \"ru-central1-a\"          subnet_id_overwrite = {             master-1 = {                 subnet  = yandex_vpc_subnet.master-subnets[\"ru-central1-a\"].id                 zone    = \"ru-central1-a\"             }             master-2 = {                 subnet  = yandex_vpc_subnet.master-subnets[\"ru-central1-b\"].id                 zone    = \"ru-central1-b\"             }             master-3 = {                 subnet  = yandex_vpc_subnet.master-subnets[\"ru-central1-c\"].id                 zone    = \"ru-central1-c\"             }         }         resources = {           core            = 6           memory          = 12           core_fraction   = 100           etcd_disk       = 60           first_disk      = 30         }         os_image = \"fd8kdq6d0p8sij7h5qe3\"         ssh_username = \"dkot\"         ssh_rsa_path = \"~\/.ssh\/id_rsa.pub\"     } } <\/code><\/pre>\n<p>vault_server &#8212; \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u043a\u0430\u0437\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 \u0441 \u043d\u043e\u0434\u044b<\/p>\n<p>subnet_id_overwrite &#8212; \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0435\u0441\u043b\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043c\u0430\u0441\u0442\u0435\u0440\u0430 \u0440\u0430\u0437\u043d\u0435\u0441\u0442\u0438 \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u043e\u0434\u0441\u0435\u0442\u044f\u043c \u0438 \u0437\u043e\u043d\u0430\u043c<\/p>\n<p>master_group &#8212; \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u043c\u0430\u0441\u0442\u0435\u0440\u043e\u0432<\/p>\n<\/div>\n<\/details>\n<p>\u0414\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 Control Plane \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c VPC \u0438 \u043f\u043e\u0434\u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u043c\u0430\u0441\u0442\u0435\u0440\u043e\u0432, \u0430 \u0432 Vault \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438.<\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u043c\u043e\u0434\u0443\u043b\u044c <strong>k8s-config-vars &#8212; <\/strong>\u0432 \u044d\u0442\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0438 \u0440\u0430\u0441\u0442\u0435\u043a\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u043c\u043e\u0434\u0443\u043b\u044f\u043c \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u044b, \u043c\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0431\u0443\u0434\u0443\u0449\u0435\u0439 \u043d\u043e\u0434\u044b <strong>Cloud-init<\/strong> \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0432 <strong>Vault<\/strong>. \u041e\u0442 <strong>k8s-vault-master <\/strong>\u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e\u043a\u0435\u043d \u0438 \u043f\u043e\u0434\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u043c \u0432 <strong>Coud-init.<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u0443\u0437\u043b\u044b \u0441 \u043d\u0430\u0448\u0438\u043c\u0438 <strong>Cloud-Init<\/strong> \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c\u0438.<\/p>\n<h2>\u041f\u0440\u0438\u043d\u044f\u0442\u0438\u0435<\/h2>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/bd7\/c35\/9d9\/bd7c359d94f978e7b5369faad62603b4.jpg\" width=\"1200\" height=\"675\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bd7\/c35\/9d9\/bd7c359d94f978e7b5369faad62603b4.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0438\u0442\u043e\u0433 \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f <strong>Yandex Cloud<\/strong> \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e Control Plane Kubernetes. \u041a\u043e\u0433\u0434\u0430 \u044f \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u044f \u043f\u0440\u044f\u043c \u043f\u043e\u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0441\u0435\u0431\u044f \u0420\u0438\u043a\u043e\u043c \u041e\u0433\u0443\u0440\u0447\u0438\u043a\u043e\u043c!<\/p>\n<p>\u042d\u043c\u043e\u0446\u0438\u0439 \u044d\u0442\u043e \u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0440\u043e\u0434\u0438\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0438 \u043d\u0435 \u0432\u0441\u0435 \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u044b\u0435.  \u0421\u0430\u043c\u043e\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u043e\u0434\u0443\u043b\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u0435\u0440\u0440\u0430\u0444\u043e\u0440\u043c\u0430. \u0412 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0435, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e. <\/p>\n<h2>\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435?<\/h2>\n<p>\u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0443\u0436\u0435 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0443<a href=\"https:\/\/github.com\/fraima\/kubernetes\/blob\/main\/README.md\" rel=\"noopener noreferrer nofollow\"> \u044d\u0442\u043e\u0433\u043e \u0444\u043b\u043e\u0443 <\/a><\/p>\n<p>\u0412\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435:<\/p>\n<ol>\n<li>\n<p>\u041a\u043e\u043d\u0442\u0440\u043e\u043b \u041f\u043b\u0435\u0439\u043d K8S \u0432 HA \u0440\u0435\u0436\u0438\u043c\u0435<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0439 \u0432\u043e\u0440\u043a\u043b\u043e\u0443\u0434 Cilium, CoreDNS, YandexCSIDriver, YandexCloudController, Gatekeeper, Certmanager, ClusterMachineApprover<\/p>\n<\/li>\n<li>\n<p>\u0412 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0441\u044f Worker \u0443\u0437\u0435\u043b &#8212; \u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c\u0438 \u043e\u0442 \u0432\u043e\u043b\u0442\u0430, \u043d\u043e \u0432\u044b\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043a\u0443\u0431\u043e\u043c (\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043c\u0430\u0433\u0438\u0438 &#8212; \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043f\u043e\u0437\u0436\u0435)<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0435\u0440\u0435\u0434 \u0441\u043e\u0431\u043e\u0439 \u0441\u0442\u0430\u0432\u0438\u043c \u0446\u0435\u043b\u0438 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u0440\u043e\u0431\u043a\u0443 \u0441 \u0431\u0435\u0441\u0442\u043f\u0440\u0430\u043a\u0442\u0438\u0441\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f Data-Plane (\u0437\u0430\u043a\u0430\u0437 workers).<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0441 etcd-backup-restore \u0438 yandex s3.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SSO \u043d\u0430 \u0431\u0430\u0437\u0435 Keycloak.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0410\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0435\u0440.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 GO \u0440\u0435\u043d\u0434\u0435\u0440 cloud-init.<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0442\u044c RBAC \u0434\u043b\u044f \u043c\u0430\u0441\u0442\u0435\u0440\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0430\u0441\u0442\u0435\u0440\u0430 c instances \u043d\u0430 group-instances<\/p>\n<\/li>\n<\/ul>\n<h2>\u0412\u0438\u0448\u0435\u043d\u043a\u0430 \u043d\u0430 \u0442\u043e\u0440\u0442\u0435<\/h2>\n<details class=\"spoiler\">\n<summary>\u0421\u0442\u0430\u0442\u0443\u0441<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"bash\">root@master-3-cluster-2:\/home\/dkot# kg no -o wide NAME                 STATUS   ROLES                  AGE     VERSION    INTERNAL-IP   EXTERNAL-IP     OS-IMAGE             KERNEL-VERSION      CONTAINER-RUNTIME master-1-cluster-2   Ready    control-plane,master   2m50s   v1.23.12   10.1.0.11     51.250.66.122   Ubuntu 20.04.4 LTS   5.4.0-124-generic   containerd:\/\/1.6.8 master-2-cluster-2   Ready    control-plane,master   2m53s   v1.23.12   10.2.0.33     84.201.139.95   Ubuntu 20.04.4 LTS   5.4.0-124-generic   containerd:\/\/1.6.8 master-3-cluster-2   Ready    control-plane,master   2m55s   v1.23.12   10.3.0.21     51.250.40.244   Ubuntu 20.04.4 LTS   5.4.0-124-generic   containerd:\/\/1.6.8 <\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0441\u0431\u043e\u0440\u043a\u0438 <\/p>\n<pre><code class=\"bash\">root@master-2-cluster-2:\/home\/dkot# kg no -o wide NAME                 STATUS   ROLES                  AGE   VERSION    INTERNAL-IP   EXTERNAL-IP     OS-IMAGE                       KERNEL-VERSION    CONTAINER-RUNTIME master-1-cluster-2   Ready    &lt;none>                 37s   v1.23.12   10.1.0.12     62.84.119.244   Debian GNU\/Linux 10 (buster)   4.19.0-18-amd64   containerd:\/\/1.6.8 master-2-cluster-2   Ready    control-plane,master   12m   v1.23.12   10.2.0.16     51.250.27.187   Debian GNU\/Linux 10 (buster)   4.19.0-18-amd64   containerd:\/\/1.6.8 master-3-cluster-2   Ready    control-plane,master   12m   v1.23.12   10.3.0.13     51.250.45.49    Debian GNU\/Linux 10 (buster)   4.19.0-18-amd64   containerd:\/\/1.6.8 <\/code><\/pre>\n<pre><code>root@master-2-cluster-2:\/home\/dkot# kg po -A NAMESPACE            NAME                                             READY   STATUS    RESTARTS        AGE fraima-ccm           cluster-machine-approver-679bdb498-rv4fs         1\/1     Running   0               11m fraima-ccm           yandex-cloud-controller-manager-vzxm8            1\/1     Running   2 (2m2s ago)    11m fraima-ccm           yandex-cloud-controller-manager-z8694            1\/1     Running   2 (2m21s ago)   11m fraima-certmanager   cert-manager-7b7db46cc-q7qfs                     1\/1     Running   0               11m fraima-certmanager   cert-manager-cainjector-5bc7858445-s29pr         1\/1     Running   0               11m fraima-certmanager   cert-manager-webhook-5f9bc5fd88-qrqss            1\/1     Running   0               11m fraima-cni           cilium-g6pj2                                     1\/1     Running   0               13m fraima-cni           cilium-k4gqk                                     1\/1     Running   0               13m fraima-cni           cilium-operator-77d7d656d9-4t29t                 1\/1     Running   0               13m fraima-cni           cilium-operator-77d7d656d9-tcpn5                 1\/1     Running   0               13m fraima-cni           cilium-xw7tm                                     1\/1     Running   0               13m fraima-csi           csi-controller-656b87cd-ll7nn                    6\/6     Running   1 (8s ago)      11m fraima-csi           csi-node-fz4fd                                   3\/3     Running   0               11m fraima-csi           csi-node-n4wgg                                   3\/3     Running   1 (2m13s ago)   11m fraima-csi           csi-node-vtnwv                                   3\/3     Running   1 (2m37s ago)   11m fraima-dns           coredns-6f67cdb5c-5x82v                          1\/1     Running   0               12m fraima-dns           coredns-6f67cdb5c-8nx9d                          1\/1     Running   0               12m fraima-dns           coredns-6f67cdb5c-jfsvx                          0\/1     Running   0               12m fraima-gatekeeper    gatekeeper-audit-6b8d6d54d7-xc57p                1\/1     Running   0               11m fraima-gatekeeper    gatekeeper-controller-manager-597b75cb8b-8qkqj   0\/1     Running   0               11m fraima-gatekeeper    gatekeeper-controller-manager-597b75cb8b-q7dzg   1\/1     Running   0               11m fraima-gatekeeper    gatekeeper-controller-manager-597b75cb8b-qp9g4   1\/1     Running   0               11m kube-system          etcd-master-1-cluster-2                          1\/1     Running   0               53s kube-system          etcd-master-2-cluster-2                          1\/1     Running   0               12m kube-system          etcd-master-3-cluster-2                          1\/1     Running   0               12m kube-system          kube-apiserver-master-1-cluster-2                1\/1     Running   0               53s kube-system          kube-apiserver-master-2-cluster-2                1\/1     Running   0               2m58s kube-system          kube-apiserver-master-3-cluster-2                1\/1     Running   0               2m56s kube-system          kube-controller-manager-master-1-cluster-2       1\/1     Running   0               53s kube-system          kube-controller-manager-master-2-cluster-2       1\/1     Running   0               12m kube-system          kube-controller-manager-master-3-cluster-2       1\/1     Running   0               11m kube-system          kube-scheduler-master-1-cluster-2                1\/1     Running   0               53s kube-system          kube-scheduler-master-2-cluster-2                1\/1     Running   0               12m kube-system          kube-scheduler-master-3-cluster-2                1\/1     Running   0               11m <\/code><\/pre>\n<p>\u041a\u0430\u043a \u043e\u0431\u0435\u0449\u0430\u043b, \u043d\u0430\u043b\u0435\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0430\u0436\u0435 \u0442\u0438\u043f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<\/div>\n<\/details>\n<h2>\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u0447\u0442\u0438\u0432\u043e<\/h2>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/699074\/\" rel=\"noopener noreferrer nofollow\">Kubernetes The Hard Way <\/a><br \/><a href=\"https:\/\/github.com\/fraima\/kubernetes\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/fraima\/kubernetes<\/a><br \/><a href=\"https:\/\/github.com\/fraima\/key-keeper\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/fraima\/key-keeper<\/a><\/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\/post\/704410\/\"> https:\/\/habr.com\/ru\/post\/704410\/<\/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\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442. \u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0414\u043e\u0431\u0440\u044b\u0439 \u041a\u043e\u0442\u00a0<a href=\"https:\/\/t.me\/Dobry_kot\" rel=\"noopener noreferrer nofollow\">Telegram<\/a>.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0432 Yandex Cloud \u043d\u0430\u0448\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c terraform.<\/p>\n<p>\u041e\u0442 \u043a\u043e\u043b\u043b\u0435\u043a\u0442\u0438\u0432\u0430\u00a0<a href=\"https:\/\/t.me\/fraima_ru\" rel=\"noopener noreferrer nofollow\">FR-Solutions<\/a>\u00a0\u0438 \u043f\u0440\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435\u00a0<a href=\"https:\/\/habr.com\/users\/irbgeo\" rel=\"noopener noreferrer nofollow\">@irbgeo<\/a>\u00a0<a href=\"https:\/\/t.me\/irbgeo\" rel=\"noopener noreferrer nofollow\">Telegram<\/a>\u00a0: \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0441\u0435\u0440\u0438\u044e \u0441\u0442\u0430\u0442\u0435\u0439 \u043e K8S.<\/p>\n<figure class=\"\"><figcaption>\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438<\/figcaption><\/figure>\n<h3>\u041e\u0441\u0432\u0435\u0436\u0438\u043c \u0432\u043e\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u044f<\/h3>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/699074\/\" rel=\"noopener noreferrer nofollow\">\u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u043c\u044b \u0440\u0430\u0441\u0441\u043f\u0438\u0441\u0430\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441 \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f Kubernetes \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0433\u043e\u043b\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u0438 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 &#8212; \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043d\u043e \u0432 \u043d\u0430\u0448\u0438\u0445 \u0440\u0435\u0430\u043b\u0438\u044f\u0445 \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044e. <\/p>\n<p>* \u041f\u043e\u043a\u0430 \u043f\u0438\u0441\u0430\u043b\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044e, \u0438\u0441\u043f\u044b\u0442\u0430\u043b\u0438 \u043c\u043e\u0440\u0435 \u044d\u043c\u043e\u0446\u0438\u0439 \u043a\u0430\u043a \u043e\u0442 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u0442\u0430\u043a \u0438  \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e \u043f\u043e\u0437\u0436\u0435.<\/p>\n<h2>\u041e\u0442\u0440\u0438\u0446\u0430\u043d\u0438\u0435<\/h2>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0441 \u043c\u043e\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0431\u044b\u043b\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0430 Ansible. \u0412\u0441\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c \u043b\u0430\u043c\u043f\u043e\u0432\u043e, \u043f\u0430\u0440\u0430 \u0442\u0430\u0441\u043e\u043a \u0442\u0430\u043c, \u043f\u0430\u0440\u0430 \u0442\u0443\u0442 \u0438 \u0447\u0435\u0440\u0435\u0437 \u043c\u0435\u0441\u044f\u0446 \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u043f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f IaC \u043a\u0443\u0431\u0435\u0440\u0430 \u043d\u0430 Ansible, \u043d\u043e \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u044f \u043f\u0438\u0441\u0430\u043b \u043d\u0430 Ansible, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u043b, \u0447\u0442\u043e \u0435\u0433\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e &#8212; \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0432 \u043e\u0431\u043b\u0430\u043a\u0435.<\/p>\n<p>\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 terraform, \u0438 \u043f\u0435\u0440\u0432\u0430\u044f \u043c\u044b\u0441\u043b\u044c \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u043b\u0430\u0441\u044c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0440\u0435\u0441\u0442\u0438\u0442\u044c \u0443\u0436\u0430 \u0441 \u0435\u0436\u043e\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0435 5 \u043c\u0435\u0442\u0440\u043e\u0432 \u043a\u043e\u043b\u044e\u0447\u0435\u0439 \u043f\u0440\u043e\u0432\u043e\u043b\u043a\u0438. <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u0435\u0441\u044c\u043c\u0430 \u043d\u0435\u043f\u043b\u043e\u0445\u043e, \u043d\u043e \u0432 \u0445\u043e\u0434\u0435 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u043e\u0442 Ansible \u043c\u043e\u0436\u043d\u043e  \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u0430 Terraform. \u0421\u0432\u044f\u0437\u0430\u043d\u043e \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 kubernetes \u043c\u043e\u0438\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c &#8212; \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 Cloud-INIT \u0438 \u0432\u043e\u0442 \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0440\u0430\u0441\u0447\u0435\u0445\u043b\u044f\u0442\u044c Ansible \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c. \u041d\u0443 \u0447\u0442\u043e, \u0441\u043a\u0430\u0437\u0430\u043d\u043e &#8212; \u0441\u0434\u0435\u043b\u0430\u043d\u043e! \u041f\u043e\u0448\u043b\u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 Terraform.<\/p>\n<h2>\u0413\u043d\u0435\u0432<\/h2>\n<p>\u0411\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0435\u0440\u0432\u043e\u0432 \u0441\u043a\u0443\u0448\u0430\u043b \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f Vault, \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u0433\u043e \u043a\u043e\u0434\u043e\u0432\u0430\u044f \u0431\u0430\u0437\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u043e\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432 \u043d\u0430\u0448\u0435\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438. \u0421\u0430\u043c\u044b\u0435 \u0442\u0440\u0443\u0434\u043e\u0435\u043c\u043a\u0438\u0435 \u0447\u0430\u0441\u0442\u0438:<\/p>\n<ol>\n<li>\n<p><a href=\"https:\/\/github.com\/fraima\/kubernetes\/blob\/main\/modules\/k8s-config-vars\/locals.certs.tf\" rel=\"noopener noreferrer nofollow\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f<\/a> \u0434\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432. \u0412 \u043d\u0435\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0432\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f:<\/p>\n<ol>\n<li>\n<p> \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u043e\u043b\u0435\u0439.<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0437\u0430\u043a\u0430\u0437\u0430 Key-keeper.<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0435\u0439\u0444\u043e\u0432 \u0438 \u0438\u0445 CA.<\/p>\n<\/li>\n<li>\n<p>\u041c\u0435\u0442\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a.<\/p>\n<\/li>\n<li>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0438 \u0430\u043f\u043f\u0440\u043e\u043b\u0435\u0439.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0440\u0435\u0448\u0438\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 &#8212; \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0432 \u0412\u041c \u043c\u0430\u0441\u0442\u0435\u0440\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0442\u043e\u043a\u0435\u043d \u0447\u0435\u0440\u0435\u0437 Cloud-Init &#8212; \u043c\u044b \u0441\u043e\u0442\u0432\u043e\u0440\u0438\u043b\u0438 \u043c\u043e\u043d\u0441\u0442\u0440\u0430. (\u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 Yandex Cloud \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b terraform provider \u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 LockBox, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0447\u0435\u0440\u0435\u0437 IAM) &#8212; \u0441\u043a\u043e\u0440\u043e \u043f\u043e\u0444\u0438\u043a\u0441\u0438\u043c.<\/p>\n<h2>\u0422\u043e\u0440\u0433<\/h2>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u0437\u0430\u0434\u0438\u0437\u0430\u0439\u043d\u0438\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0443\u044e, \u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u044b\u0441\u043e\u043a\u043e\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0438 \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0441\u0445\u0435\u043c\u0435.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u043d\u0446\u0435\u043f\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u0441\u0442\u0430\u043b\u0438 Stateless \u0438 \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0438 \u0447\u0442\u043e\u0431\u044b, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0447\u0435\u0433\u043e, \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u0435\u0437 \u0442\u0440\u0443\u0434\u0430 \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0440\u0430\u0442\u044c (\u0434\u0430\u0436\u0435 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u0438\u043f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b).<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u044c, \u0442\u0440\u0435\u0431\u0443\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u043e\u0432:<\/p>\n<ol>\n<li>\n<p>\u0411\u0430\u0437\u0430 Etcd \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0432\u044b\u043d\u0435\u0441\u0435\u043d\u0430 \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0434\u0438\u0441\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u0435\u0437\u0436\u0430\u0442\u044c \u043d\u0430 \u043d\u043e\u0434\u0443 \u0441\u0430\u043c\u0438 (\u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 key-keeper).<\/p>\n<\/li>\n<li>\n<p>\u0412\u0435\u0441\u044c \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d \u0432 Cloud-init.<\/p>\n<\/li>\n<li>\n<p>\u0423 \u0412\u041c \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0435 A \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<\/li>\n<\/ol>\n<p>\u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0443\u0437\u043b\u0430\u043c\u0438 \u043c\u0430\u0441\u0442\u0435\u0440\u043e\u0432 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0433\u0438\u0431\u043a\u043e.<\/p>\n<h2>\u0414\u0435\u043f\u0440\u0435\u0441\u0441\u0438\u044f<\/h2>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043d\u0430 \u0442\u0435\u0440\u0440\u0430\u0444\u043e\u0440\u043c\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0430 \u043a\u0430\u043a \u043e\u0434\u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0440\u0435\u043f\u043a\u0430 <\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438 \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u0447\u0430\u0441\u0442\u043e \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u043e\u0432\u043e\u0433\u043e \u0438\u043b\u0438 \u0434\u0435\u0431\u0430\u0433\u0430 \u0441\u0442\u0430\u0440\u043e\u0433\u043e. \u0411\u044b\u043b\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0440\u0430\u0441\u043f\u0438\u043b\u0438\u0442\u044c \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u0438 \u0432\u0441\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b, \u0447\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u043e \u043c\u043d\u043e\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 &#171;\u0430 \u043a\u0430\u043a \u043b\u0443\u0447\u0448\u0435?&#187;.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043e\u0441\u043d\u043e\u0432\u0435 \u043b\u0435\u0436\u0438\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c yandex-cluster, \u0432 \u043d\u0435\u043c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0438 \u043a\u0430\u0441\u0442\u043e\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0434\u0443\u043b\u044f.<\/p>\n<details class=\"spoiler\">\n<summary>init<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"bash\">module \"k8s-yandex-cluster\" {     source = \"..\/modules\/k8s-yandex-cluster\"     cluster_name    = var.cluster_name     base_domain     = \"dobry-kot.ru\"     vault_server    = \"http:\/\/193.32.219.99:9200\/\"          service_cidr    = \"29.64.0.0\/16\"      master_group = {         name    = \"master\" # \u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u0434\u043b\u044f \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432.         count   = 1          vpc_id  = yandex_vpc_network.cluster-vpc.id              default_subnet_id = yandex_vpc_subnet.master-subnets[\"ru-central1-a\"].id         default_zone      = \"ru-central1-a\"          subnet_id_overwrite = {             master-1 = {                 subnet  = yandex_vpc_subnet.master-subnets[\"ru-central1-a\"].id                 zone    = \"ru-central1-a\"             }             master-2 = {                 subnet  = yandex_vpc_subnet.master-subnets[\"ru-central1-b\"].id                 zone    = \"ru-central1-b\"             }             master-3 = {                 subnet  = yandex_vpc_subnet.master-subnets[\"ru-central1-c\"].id                 zone    = \"ru-central1-c\"             }         }         resources = {           core            = 6           memory          = 12           core_fraction   = 100           etcd_disk       = 60           first_disk      = 30         }         os_image = \"fd8kdq6d0p8sij7h5qe3\"         ssh_username = \"dkot\"         ssh_rsa_path = \"~\/.ssh\/id_rsa.pub\"     } } <\/code><\/pre>\n<p>vault_server &#8212; \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u043a\u0430\u0437\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 \u0441 \u043d\u043e\u0434\u044b<\/p>\n<p>subnet_id_overwrite &#8212; \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0435\u0441\u043b\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043c\u0430\u0441\u0442\u0435\u0440\u0430 \u0440\u0430\u0437\u043d\u0435\u0441\u0442\u0438 \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u043e\u0434\u0441\u0435\u0442\u044f\u043c \u0438 \u0437\u043e\u043d\u0430\u043c<\/p>\n<p>master_group &#8212; \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u043c\u0430\u0441\u0442\u0435\u0440\u043e\u0432<\/p>\n<\/div>\n<\/details>\n<p>\u0414\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 Control Plane \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c VPC \u0438 \u043f\u043e\u0434\u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u043c\u0430\u0441\u0442\u0435\u0440\u043e\u0432, \u0430 \u0432 Vault \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438.<\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u043c\u043e\u0434\u0443\u043b\u044c <strong>k8s-config-vars &#8212; <\/strong>\u0432 \u044d\u0442\u043e\u043c \u043c\u043e\u0434\u0443\u043b\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0438 \u0440\u0430\u0441\u0442\u0435\u043a\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u043c\u043e\u0434\u0443\u043b\u044f\u043c \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u044b, \u043c\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0431\u0443\u0434\u0443\u0449\u0435\u0439 \u043d\u043e\u0434\u044b <strong>Cloud-init<\/strong> \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0432 <strong>Vault<\/strong>. \u041e\u0442 <strong>k8s-vault-master <\/strong>\u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e\u043a\u0435\u043d \u0438 \u043f\u043e\u0434\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u043c \u0432 <strong>Coud-init.<\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u0443\u0437\u043b\u044b \u0441 \u043d\u0430\u0448\u0438\u043c\u0438 <strong>Cloud-Init<\/strong> \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c\u0438.<\/p>\n<h2>\u041f\u0440\u0438\u043d\u044f\u0442\u0438\u0435<\/h2>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0438\u0442\u043e\u0433 \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f <strong>Yandex Cloud<\/strong> \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e Control Plane Kubernetes. \u041a\u043e\u0433\u0434\u0430 \u044f \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u044f \u043f\u0440\u044f\u043c \u043f\u043e\u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0441\u0435\u0431\u044f \u0420\u0438\u043a\u043e\u043c \u041e\u0433\u0443\u0440\u0447\u0438\u043a\u043e\u043c!<\/p>\n<p>\u042d\u043c\u043e\u0446\u0438\u0439 \u044d\u0442\u043e \u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0440\u043e\u0434\u0438\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0438 \u043d\u0435 \u0432\u0441\u0435 \u043f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u044b\u0435.  \u0421\u0430\u043c\u043e\u0439 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0431\u044b\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u043e\u0434\u0443\u043b\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u0430\u043c\u043e\u0433\u043e \u0442\u0435\u0440\u0440\u0430\u0444\u043e\u0440\u043c\u0430. \u0412 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0435, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e. <\/p>\n<h2>\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435?<\/h2>\n<p>\u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0443\u0436\u0435 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043f\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0443<a href=\"https:\/\/github.com\/fraima\/kubernetes\/blob\/main\/README.md\" rel=\"noopener noreferrer nofollow\"> \u044d\u0442\u043e\u0433\u043e \u0444\u043b\u043e\u0443 <\/a><\/p>\n<p>\u0412\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435:<\/p>\n<ol>\n<li>\n<p>\u041a\u043e\u043d\u0442\u0440\u043e\u043b \u041f\u043b\u0435\u0439\u043d K8S \u0432 HA \u0440\u0435\u0436\u0438\u043c\u0435<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b\u0439 \u0432\u043e\u0440\u043a\u043b\u043e\u0443\u0434 Cilium, CoreDNS, YandexCSIDriver, YandexCloudController, Gatekeeper, Certmanager, ClusterMachineApprover<\/p>\n<\/li>\n<li>\n<p>\u0412 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0441\u044f Worker \u0443\u0437\u0435\u043b &#8212; \u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c\u0438 \u043e\u0442 \u0432\u043e\u043b\u0442\u0430, \u043d\u043e \u0432\u044b\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043a\u0443\u0431\u043e\u043c (\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043c\u0430\u0433\u0438\u0438 &#8212; \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043f\u043e\u0437\u0436\u0435)<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0435\u0440\u0435\u0434 \u0441\u043e\u0431\u043e\u0439 \u0441\u0442\u0430\u0432\u0438\u043c \u0446\u0435\u043b\u0438 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u0440\u043e\u0431\u043a\u0443 \u0441 \u0431\u0435\u0441\u0442\u043f\u0440\u0430\u043a\u0442\u0438\u0441\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p>\u0414\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f Data-Plane (\u0437\u0430\u043a\u0430\u0437 workers).<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0441 etcd-backup-restore \u0438 yandex s3.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SSO \u043d\u0430 \u0431\u0430\u0437\u0435 Keycloak.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0410\u0432\u0442\u043e\u0441\u043a\u0435\u0439\u043b\u0435\u0440.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 GO \u0440\u0435\u043d\u0434\u0435\u0440 cloud-init.<\/p>\n<\/li>\n<li>\n<p>\u041e\u0442\u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0442\u044c RBAC \u0434\u043b\u044f \u043c\u0430\u0441\u0442\u0435\u0440\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0430\u0441\u0442\u0435\u0440\u0430 c instances \u043d\u0430 group-instances<\/p>\n<\/li>\n<\/ul>\n<h2>\u0412\u0438\u0448\u0435\u043d\u043a\u0430 \u043d\u0430 \u0442\u043e\u0440\u0442\u0435<\/h2>\n<details class=\"spoiler\">\n<summary>\u0421\u0442\u0430\u0442\u0443\u0441<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"bash\">root@master-3-cluster-2:\/home\/dkot# kg no -o wide NAME                 STATUS   ROLES                  AGE     VERSION    INTERNAL-IP   EXTERNAL-IP     OS-IMAGE             KERNEL-VERSION      CONTAINER-RUNTIME master-1-cluster-2   Ready    control-plane,master   2m50s   v1.23.12   10.1.0.11     51.250.66.122   Ubuntu 20.04.4 LTS   5.4.0-124-generic   containerd:\/\/1.6.8 master-2-cluster-2   Ready    control-plane,master   2m53s   v1.23.12   10.2.0.33     84.201.139.95   Ubuntu 20.04.4 LTS   5.4.0-124-generic   containerd:\/\/1.6.8 master-3-cluster-2   Ready    control-plane,master   2m55s   v1.23.12   10.3.0.21     51.250.40.244   Ubuntu 20.04.4 LTS   5.4.0-124-generic   containerd:\/\/1.6.8 <\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0441\u0431\u043e\u0440\u043a\u0438 <\/p>\n<pre><code class=\"bash\">root@master-2-cluster-2:\/home\/dkot# kg no -o wide NAME                 STATUS   ROLES                  AGE   VERSION    INTERNAL-IP   EXTERNAL-IP     OS-IMAGE                       KERNEL-VERSION    CONTAINER-RUNTIME master-1-cluster-2   Ready    &lt;none>                 37s   v1.23.12   10.1.0.12     62.84.119.244   Debian GNU\/Linux 10 (buster)   4.19.0-18-amd64   containerd:\/\/1.6.8 master-2-cluster-2   Ready    control-plane,master   12m   v1.23.12   10.2.0.16     51.250.27.187   Debian GNU\/Linux 10 (buster)   4.19.0-18-amd64   containerd:\/\/1.6.8 master-3-cluster-2   Ready    control-plane,master   12m   v1.23.12   10.3.0.13     51.250.45.49    Debian GNU\/Linux 10 (buster)   4.19.0-18-amd64   containerd:\/\/1.6.8 <\/code><\/pre>\n<pre><code>root@master-2-cluster-2:\/home\/dkot# kg po -A NAMESPACE            NAME                                             READY   STATUS    RESTARTS        AGE fraima-ccm           cluster-machine-approver-679bdb498-rv4fs         1\/1     Running   0               11m fraima-ccm           yandex-cloud-controller-manager-vzxm8            1\/1     Running   2 (2m2s ago)    11m fraima-ccm           yandex-cloud-controller-manager-z8694            1\/1     Running   2 (2m21s ago)   11m fraima-certmanager   cert-manager-7b7db46cc-q7qfs                     1\/1     Running   0               11m fraima-certmanager   cert-manager-cainjector-5bc7858445-s29pr         1\/1     Running   0               11m fraima-certmanager   cert-manager-webhook-5f9bc5fd88-qrqss            1\/1     Running   0               11m fraima-cni           cilium-g6pj2                                     1\/1     Running   0               13m fraima-cni           cilium-k4gqk                                     1\/1     Running   0               13m fraima-cni           cilium-operator-77d7d656d9-4t29t                 1\/1     Running   0               13m fraima-cni           cilium-operator-77d7d656d9-tcpn5                 1\/1     Running   0               13m fraima-cni           cilium-xw7tm                                     1\/1     Running   0               13m fraima-csi           csi-controller-656b87cd-ll7nn                    6\/6     Running   1 (8s ago)      11m fraima-csi           csi-node-fz4fd                                   3\/3     Running   0               11m fraima-csi           csi-node-n4wgg                                   3\/3     Running   1 (2m13s ago)   11m fraima-csi           csi-node-vtnwv                                   3\/3     Running   1 (2m37s ago)   11m fraima-dns           coredns-6f67cdb5c-5x82v                          1\/1     Running   0               12m fraima-dns           coredns-6f67cdb5c-8nx9d                          1\/1     Running   0               12m fraima-dns<\/code><\/pre>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-342329","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342329","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=342329"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342329\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=342329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=342329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=342329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}