{"id":281405,"date":"2016-11-23T12:25:04","date_gmt":"2016-11-23T09:25:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=281405"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=281405","title":{"rendered":"\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e: \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 CoreOS \u0438 RancherOS"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/58a\/61c\/c94\/58a61cc94dba17ed0c95c76590202ce2.png\" alt=\"CoreOS\" width=\"100%\" height=\"100%\"\/><\/p>\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432&nbsp;\u0441\u0435\u0440\u0432\u0438\u0441 <a href=\"https:\/\/selectel.ru\/services\/vpc\/\" rel=\"nofollow\">\u00ab\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e\u00bb<\/a> \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 \u0441&nbsp;\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 <a href=\"http:\/\/rancher.com\/rancher-os\/\" rel=\"nofollow\">RancherOS<\/a> \u0438&nbsp;\u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0438 \u043e\u0431\u0440\u0430\u0437 <a href=\"https:\/\/coreos.com\/\" rel=\"nofollow\">CoreOS<\/a>.<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0431\u0443\u0434\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432&nbsp;\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445 \u0438&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 &mdash; <a href=\"http:\/\/kubernetes.io\/\" rel=\"nofollow\">Kubernetes<\/a>, <a href=\"https:\/\/docker.github.io\/swarm\/overview\/\" rel=\"nofollow\">Docker Swarm<\/a>, <a href=\"http:\/\/mesos.apache.org\/\" rel=\"nofollow\">Apache Mesos<\/a> \u0438&nbsp;\u0434\u0440\u0443\u0433\u0438\u0445.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<p>CoreOS \u0438&nbsp;RancherOS \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0442&nbsp;\u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 Linux: \u043e\u043d\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043b\u0438\u0448\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432. \u0412&nbsp;\u044d\u0442\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u0435 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u0438&nbsp;\u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440\u044b \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (Python, Ruby \u0438&nbsp;\u0434\u0440\u0443\u0433\u0438\u0445.).<\/p>\n<p>  <\/p>\n<p>\u041d\u0438\u0436\u0435 \u043c\u044b&nbsp;\u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0443 CoreOS \u0438&nbsp;RancherOS, \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 etcd \u0438&nbsp;fleet, \u0430&nbsp;\u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 Docker Swarm \u043d\u0430&nbsp;\u0431\u0430\u0437\u0435 RancherOS.<\/p>\n<p>  <\/p>\n<h3>CoreOS<\/h3>\n<p>  <\/p>\n<p>\u0414\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 <a href=\"https:\/\/coreos.com\/\" rel=\"nofollow\">CoreOS<\/a> \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0438&nbsp;\u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432&nbsp;\u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445.<\/p>\n<p>  <\/p>\n<p>CoreOS \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u043d\u043e\u0434 \u0438&nbsp;\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0432&nbsp;\u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/coreos.com\/etcd\/\" rel=\"nofollow\">etcd<\/a>&nbsp;&mdash; \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u043e\u0434\u0430\u043c\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e&nbsp;\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u0445 \u0432&nbsp;\u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435, \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u0438&nbsp;\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0444\u0430\u0439\u043b\u0430\u043c;<\/li>\n<li><a href=\"https:\/\/www.docker.com\/\" rel=\"nofollow\">Docker<\/a>&nbsp;&mdash; \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u0438&nbsp;\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432;<\/li>\n<li><a href=\"https:\/\/coreos.com\/rkt\/\" rel=\"nofollow\">rkt<\/a>&nbsp;&mdash; \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 Docker, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u0430\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044f\u043c\u0438 CoreOS;<\/li>\n<li><a href=\"https:\/\/coreos.com\/fleet\/\" rel=\"nofollow\">fleet<\/a>&nbsp;&mdash; \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c <a href=\"https:\/\/www.freedesktop.org\/wiki\/Software\/systemd\/\" rel=\"nofollow\">systemd<\/a>-\u0438\u043d\u0441\u0442\u0430\u043d\u0441\u043e\u0432 \u043d\u0430&nbsp;\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u043e\u0434\u0430\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u0438&nbsp;\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043d\u0430&nbsp;\u043c\u0435\u043d\u0435\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0445 \u043d\u043e\u0434\u0430\u0445.<\/li>\n<\/ul>\n<p>  <\/p>\n<h4>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f<\/h4>\n<p>  <\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043c\u0435\u0442\u043e\u0434 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u2015 \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 <a href=\"http:\/\/yaml.org\/\" rel=\"nofollow\">YAML<\/a>&nbsp;\u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 cloud-config.yml. \u042d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 <a href=\"https:\/\/github.com\/coreos\/coreos-cloudinit\" rel=\"nofollow\">Cloud-init<\/a> \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p>  <\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432&nbsp;CoreOS \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f Cloud-init, \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043b\u0438\u0448\u044c \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b \u0441&nbsp;\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 <a href=\"https:\/\/launchpad.net\/cloud-init\" rel=\"nofollow\">Launchpad-cloud-init<\/a>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u0432&nbsp;\u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432&nbsp;\u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u0430\u0445, \u0432&nbsp;\u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438&nbsp;\u0432&nbsp;\u0441\u0435\u0440\u0432\u0438\u0441\u0435 \u00ab\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e\u00bb.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 cloud-config.yml:<\/p>\n<p>  <\/p>\n<pre><code>#cloud-config  # Set hostname hostname: &quot;node01&quot;  # Set ntp servers write_files:     - path: \/etc\/systemd\/timesyncd.conf       content: |         [Time]         NTP=0.ru.pool.ntp.org 1.ru.pool.ntp.org  coreos:     units:     # Configure static network on eth0 interface     - name: iface-eth0.network       runtime: true       content: |         [Match]         Name=eth0          [Network]         DNS=188.93.16.19 \tDNS=188.93.17.19 \tDNS=109.234.159.91         Address=10.11.12.13\/24         Gateway=10.11.12.1      # Change standard SSH port     - name: sshd.socket       command: restart       runtime: true       content: |         [Socket]         ListenStream=2345         FreeBind=true         Accept=yes <\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0443\u0442\u0438\u043b\u0438\u0442\u0430 Cloud-init \u0441\u043c\u0435\u043d\u0438\u0442 \u0445\u043e\u0441\u0442\u043d\u0435\u0439\u043c \u0438&nbsp;\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 22&nbsp;\u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430 SSH, \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0441\u0435\u0442\u044c \u043d\u0430&nbsp;\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 eth0 \u0438&nbsp;\u0434\u043e\u0431\u0430\u0432\u0438\u0442 ntp-\u0441\u0435\u0440\u0432\u0435\u0440\u044b \u0434\u043b\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e&nbsp;\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 cloud-config.yml \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432&nbsp;<a href=\"https:\/\/coreos.com\/os\/docs\/latest\/\" rel=\"nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u0437&nbsp;\u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430 CoreOS \u0432&nbsp;\u0441\u0435\u0440\u0432\u0438\u0441\u0435 \u00ab\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e\u00bb \u0432\u0430\u043c \u043d\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 cloud-config.yml. \u041c\u044b&nbsp;\u0443\u0436\u0435 \u0432\u043d\u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432&nbsp;\u043e\u0431\u0440\u0430\u0437, \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0432&nbsp;\u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432.<\/p>\n<p>  <\/p>\n<p>\u0414\u043e\u0441\u0442\u0443\u043f \u043f\u043e&nbsp;SSH \u043a&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c CoreOS \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e&nbsp;\u043a\u043b\u044e\u0447\u0443, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0423\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f <strong>core<\/strong>.<\/p>\n<p>  <\/p>\n<p>\u0412&nbsp;\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a&nbsp;\u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 cloud-init \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0438 CoreOS \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 <a href=\"https:\/\/coreos.com\/blog\/introducing-ignition.html\" rel=\"nofollow\">Ignition<\/a>. \u042d\u0442\u043e\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 cloud-init \u0438&nbsp;\u0435\u0449\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, &mdash; \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 \u0434\u0438\u0441\u043a\u043e\u0432 \u0438&nbsp;\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c. \u042d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0442\u043e\u043c\u0443, \u0447\u0442\u043e Ignition \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432\u043e&nbsp;\u0432\u0440\u0435\u043c\u044f \u0440\u0430\u043d\u043d\u0438\u0445 \u044d\u0442\u0430\u043f\u043e\u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0432&nbsp;\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Initramfs\" rel=\"nofollow\">initramfs<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0412&nbsp;Ignition \u0434\u043b\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u043e\u0440\u043c\u0430\u0442 <a href=\"http:\/\/www.json.org\/\" rel=\"nofollow\">JSON<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430, \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e Ignition \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0440\u0430\u0437\u0434\u0435\u043b \u0432&nbsp;<a href=\"https:\/\/btrfs.wiki.kernel.org\/index.php\/Main_Page\" rel=\"nofollow\">Btrfs<\/a>, \u0438&nbsp;\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441&nbsp;\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438, \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0432\u044b\u0448\u0435 \u0434\u043b\u044f Cloud-init:<\/p>\n<p>  <\/p>\n<pre><code>{     &quot;ignition&quot;: { &quot;version&quot;: &quot;2.0.0&quot; },     &quot;storage&quot;: {         &quot;filesystems&quot;: [{             &quot;mount&quot;: {                 &quot;device&quot;: &quot;\/dev\/disk\/by-label\/ROOT&quot;,                 &quot;format&quot;: &quot;btrfs&quot;,                 &quot;create&quot;: {                     &quot;force&quot;: true,                     &quot;options&quot;: [ &quot;--label=ROOT&quot; ]                 }             }         }],         &quot;files&quot;: [{             &quot;filesystem&quot;: &quot;root&quot;,             &quot;path&quot;: &quot;\/etc\/systemd\/timesyncd.conf&quot;,             &quot;mode&quot;: 420,             &quot;contents&quot;: { &quot;source&quot;: &quot;data:,%5BTime%5D%0ANTP=0.ru.pool.ntp.org%201.ru.pool.ntp.org%0A&quot; }             },             {             &quot;filesystem&quot;: &quot;root&quot;,             &quot;path&quot;: &quot;\/etc\/hostname&quot;,             &quot;mode&quot;: 420,             &quot;contents&quot;: { &quot;source&quot;: &quot;data:,node01&quot; }             }         ]     },     &quot;networkd&quot;: {         &quot;units&quot;: [{             &quot;name&quot;: &quot;iface-eth0.network&quot;,             &quot;contents&quot;: &quot;[Match]\\nName=eth0\\n\\n[Network]\\nDNS=188.93.16.19\\nDNS=188.93.17.19\\nDNS=109.234.159.91\\nAddress=10.11.12.13\/24\\nGateway=10.11.12.1&quot;         }]     },     &quot;systemd&quot;: {         &quot;units&quot;: [{             &quot;name&quot;: &quot;sshd.socket&quot;,             &quot;command&quot;: &quot;restart&quot;,             &quot;runtime&quot;: true,             &quot;contents&quot;: &quot;[Socket]\\nListenStream=2345\\nFreeBind=true\\nAccept=yes&quot;         }]     } } <\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e&nbsp;\u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u0445 Ignition \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0432&nbsp;<a href=\"https:\/\/coreos.com\/ignition\/docs\/latest\/\" rel=\"nofollow\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>.<\/p>\n<p>  <\/p>\n<h4>\u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 CoreOS<\/h4>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0440\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c CoreOS \u0432&nbsp;<a href=\"https:\/\/support.selectel.ru\/vpc\/projects\/\" rel=\"nofollow\">\u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f VPC<\/a> \u0441\u043e&nbsp;\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c23\/cf8\/065\/c23cf8065bc036ae7cb7753ca9812c5e.png\" alt=\"CoreOS\" width=\"100%\" height=\"100%\"\/><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f <a href=\"https:\/\/coreos.com\/etcd\/docs\/latest\/discovery_protocol.html\" rel=\"nofollow\">discovery-url<\/a> \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430 etcd. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b&nbsp;\u043c\u043e\u0436\u0435\u043c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u043c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c <a href=\"https:\/\/discovery.etcd.io\/\" rel=\"nofollow\">discovery.etcd.io<\/a>. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043d\u0430&nbsp;\u0445\u043e\u0441\u0442\u0435 <strong>node00<\/strong> \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">core@node00 ~ $ curl -w &quot;\\n&quot; 'https:\/\/discovery.etcd.io\/new?size=3' https:\/\/discovery.etcd.io\/ec42cfef0450bd8a99090ee3d3294493 <\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 URL \u0438&nbsp;\u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b etcd \u0432&nbsp;\u0444\u0430\u0439\u043b <strong>\/usr\/share\/oem\/cloud-config.yml<\/strong> \u043d\u0430&nbsp;\u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435:<\/p>\n<p>  <\/p>\n<pre><code>coreos:     etcd2:         discovery: https:\/\/discovery.etcd.io\/ec42cfef0450bd8a99090ee3d3294493         advertise-client-urls: http:\/\/192.168.0.10:2379,http:\/\/192.168.0.10:4001         initial-advertise-peer-urls: http:\/\/192.168.0.10:2380         listen-client-urls: http:\/\/0.0.0.0:2379,http:\/\/0.0.0.0:4001         listen-peer-urls: http:\/\/192.168.0.10:2380      units:         - name: etcd2.service           command: start          - name: fleet.service           command: start <\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432&nbsp;\u0440\u0430\u0437\u0434\u0435\u043b\u0435 etcd2 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442 URL-\u0430\u0434\u0440\u0435\u0441\u0430 \u0432&nbsp;\u0444\u043e\u0440\u043c\u0430\u0442\u0435 <strong>protocol:\/\/address:port<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u0434\u043b\u044f \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u043e\u0434\u044b \u0438&nbsp;\u043e\u0431\u043c\u0435\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0441&nbsp;\u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0447\u043b\u0435\u043d\u0430\u043c\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430.<\/p>\n<p>  <\/p>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b units \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u044e\u043d\u0438\u0442\u0430\u043c\u0438 systemd \u0432&nbsp;\u0441\u0438\u0441\u0442\u0435\u043c\u0435; \u0432&nbsp;\u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d&nbsp;\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442 \u044e\u043d\u0438\u0442\u044b <strong>etc2d.service<\/strong> \u0438&nbsp;<strong>fleet.service<\/strong>.<\/p>\n<p><p>\u0414\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 <strong>node01<\/strong> \u0438&nbsp;<strong>node02<\/strong> \u0432\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432&nbsp;<strong>cloud-config.yml<\/strong>, \u0438\u0437\u043c\u0435\u043d\u0438\u0432 ip-\u0430\u0434\u0440\u0435\u0441 \u0441&nbsp;<strong>192.168.0.10<\/strong>&nbsp;\u043d\u0430 <strong>192.168.0.11<\/strong> \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 <strong>node01<\/strong>, \u0438&nbsp;\u043d\u0430&nbsp;\u0430\u0434\u0440\u0435\u0441 <strong>192.168.0.12<\/strong> \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 <strong>node02<\/strong>.  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0443\u0442\u0438\u043b\u0438\u0442\u0443 Cloud-init \u043d\u0430&nbsp;\u0432\u0441\u0435\u0445 \u0442\u0440\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 (\u043b\u0438\u0431\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u044b):<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">core@node00 ~ $ sudo coreos-cloudinit --from-file \/usr\/share\/oem\/cloud-config.yml <\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 etcd:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">core@node00 ~ $ etcdctl cluster-health member 3aaf91fd1172594e is healthy: got healthy result from http:\/\/192.168.0.11:2379 member 8cf40790248e1dcd is healthy: got healthy result from http:\/\/192.168.0.12:2379 member 96b61f40c082cd0b is healthy: got healthy result from http:\/\/192.168.0.10:2379 cluster is healthy <\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u043e\u0432\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e (\u0432&nbsp;\u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u0438 etcd&nbsp;&mdash; \u043a\u043b\u044e\u0447) \u0441\u043e&nbsp;\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043d\u0430&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0435 <strong>node00<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">core@node00 ~ $ etcdctl set \/common\/cluster-name selectel-test-cluster selectel-test-cluster <\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u0443\u0431\u0435\u0434\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u043d\u0430\u0448 \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u044e\u0447 \u0441\u043e&nbsp;\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0441&nbsp;\u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u043d\u043e\u0434\u044b \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">core@node01 ~ $ etcdctl get common\/cluster-name selectel-test-cluster <\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e, etcd \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u0435\u0442, \u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 fleet.<\/p>\n<p>  <\/p>\n<p>\u0412&nbsp;\u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u044b&nbsp;\u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c fleet \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 Nginx \u0432&nbsp;\u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 Docker. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c systemd-\u044e\u043d\u0438\u0442 <strong>\/etc\/systemd\/system\/nginx.service<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[Unit] Description=Nginx Test Service  [Service] EnvironmentFile=\/etc\/environment ExecStartPre=\/usr\/bin\/docker pull nginx ExecStart=\/usr\/bin\/docker run --rm --name nginx -p 80:80 nginx ExecStop=\/usr\/bin\/docker kill nginx  [X-Fleet] Conflicts=nginx.service <\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>Conflicts<\/strong> \u0432&nbsp;\u0441\u0435\u043a\u0446\u0438\u0438 <strong>X-Fleet<\/strong> \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0434\u0432\u0430 \u0438&nbsp;\u0431\u043e\u043b\u0435\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Nginx \u043d\u0430&nbsp;\u043e\u0434\u043d\u043e\u0439 \u043d\u043e\u0434\u0435, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u00ab\u0440\u0430\u0437\u043c\u0430\u0437\u0430\u0442\u044c\u00bb \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430&nbsp;\u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0438&nbsp;\u043f\u043e\u0432\u044b\u0441\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b X-Fleet, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438 \u044e\u043d\u0438\u0442\u043e\u0432 systemd \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432&nbsp;<a href=\"https:\/\/coreos.com\/fleet\/docs\/latest\/unit-files-and-scheduling.html\" rel=\"nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 fleet<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u043a\u0446\u0438\u0438 \u0432&nbsp;\u0444\u0430\u0439\u043b\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c\u0438 \u0434\u043b\u044f systemd, \u0432\u044b&nbsp;\u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441&nbsp;\u043d\u0438\u043c\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432&nbsp;\u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0432\u043e\u0434\u043d\u043e\u0439 <a href=\"https:\/\/coreos.com\/docs\/launching-containers\/launching\/getting-started-with-systemd\/\" rel=\"nofollow\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438<\/a> \u043e\u0442&nbsp;CoreOS.<\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u044e\u043d\u0438\u0442 <strong>nginx.service<\/strong> \u0432&nbsp;\u043d\u0430\u0448\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 <strong>fleetctl<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">core@node00 ~ $ fleetctl start \/etc\/systemd\/system\/nginx.service Unit nginx.service inactive Unit nginx.service launched on 1ad018e0...\/192.168.0.11 <\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u044b&nbsp;\u043c\u043e\u0436\u0435\u043c \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 Nginx \u0432&nbsp;\u0441\u043f\u0438\u0441\u043a\u0435 \u044e\u043d\u0438\u0442\u043e\u0432 \u043d\u0430&nbsp;\u043b\u044e\u0431\u043e\u0439 \u043d\u043e\u0434\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">core@node02 ~ $ fleetctl list-units UNIT\t\t    MACHINE\t\t\t\t        ACTIVE\tSUB nginx.service\t1ad018e0...\/192.168.0.11\tactive\trunning <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">core@node02 ~ $ fleetctl list-unit-files UNIT\t\t    HASH\tDSTATE\t\tSTATE\t\tTARGET nginx.service\t 0c112c1\tlaunched\tlaunched\t1ad018e0...\/192.168.0.11 <\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u043c\u044b&nbsp;\u0432\u0438\u0434\u0438\u043c, \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441&nbsp;Nginx \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0441\u044f \u043d\u0430&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441&nbsp;ip-\u0430\u0434\u0440\u0435\u0441\u043e\u043c <strong>192.168.0.11<\/strong>, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 <strong>node01<\/strong>.  <\/p>\n<p>\u041c\u044b&nbsp;\u043c\u043e\u0436\u0435\u043c \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u043b\u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 <strong>node01<\/strong>, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e fleet \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0435\u0442 Nginx \u043d\u0430&nbsp;\u0434\u0440\u0443\u0433\u0443\u044e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0443\u044e \u043d\u043e\u0434\u0443.<\/p>\n<p>  <\/p>\n<p>Etcd \u0441\u043e\u043e\u0431\u0449\u0438\u0442 \u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0447\u043b\u0435\u043d\u0430 \u043f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">core@node00 ~ $ etcdctl cluster-health failed to check the health of member 3aaf91fd1172594e on http:\/\/192.168.0.11:2379: Get http:\/\/192.168.0.11:2379\/health: dial tcp 192.168.0.11:2379: i\/o timeout failed to check the health of member 3aaf91fd1172594e on http:\/\/192.168.0.11:4001: Get http:\/\/192.168.0.11:4001\/health: dial tcp 192.168.0.11:4001: i\/o timeout member 3aaf91fd1172594e is unreachable: [http:\/\/192.168.0.11:2379 http:\/\/192.168.0.11:4001] are all unreachable member 8cf40790248e1dcd is healthy: got healthy result from http:\/\/192.168.0.12:2379 member 96b61f40c082cd0b is healthy: got healthy result from http:\/\/192.168.0.10:2379 cluster is healthy <\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u043e&nbsp;\u043a\u0430\u043a \u043c\u044b&nbsp;\u0432\u0438\u0434\u0438\u043c, \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Nginx \u0432&nbsp;\u043d\u043e\u0440\u043c\u0435, \u043e\u043d&nbsp;\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0441\u044f \u043d\u0430&nbsp;\u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043d\u043e\u0434\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">core@node00 ~ $ fleetctl list-units UNIT\t\t    MACHINE\t\t\t\t        ACTIVE\tSUB nginx.service\t4a1ff11c...\/192.168.0.10\tactive\trunning <\/code><\/pre>\n<p>  <\/p>\n<p>\u041c\u044b&nbsp;\u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 etcd + Docker + fleet \u043d\u0430&nbsp;\u0431\u0430\u0437\u0435 CoreOS. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043c\u044b&nbsp;\u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u0440\u0443\u0433\u043e\u0439 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432&nbsp;&mdash; RancherOS, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430&nbsp;CoreOS \u0438&nbsp;\u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432.<\/p>\n<p>  <\/p>\n<h3>RancherOS<\/h3>\n<p>  <\/p>\n<p>\u0414\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 RancherOS \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0444\u043e\u0440\u043a CoreOS. \u041e\u0442\u043b\u0438\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u044d\u0442\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432&nbsp;\u0442\u043e\u043c, \u0447\u0442\u043e \u0432&nbsp;\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u043d\u0435&nbsp;\u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043d\u043e&nbsp;\u0438&nbsp;\u0432\u0441\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0432&nbsp;RancherOS Docker \u0438\u043c\u0435\u0435\u0442 <strong>PID = 1<\/strong>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u044f\u0434\u0440\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p>  <\/p>\n<p>\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0432\u0430 Docker-\u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430; \u043e\u0434\u0438\u043d \u0438\u0437 \u043d\u0438\u0445 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c, \u0432&nbsp;\u043d\u0451\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b udev, acpid, syslog, ntp \u0438&nbsp;\u0434\u0440\u0443\u0433\u0438\u0435 \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 Docker-\u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 (systemd, Upstart, SysV), \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0432&nbsp;\u043e\u0431\u044b\u0447\u043d\u044b\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 Linux.  <\/p>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 Docker-\u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438&nbsp;\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e Docker\u2019\u0430.  <\/p>\n<p>\u0422\u0430\u043a\u043e\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0437\u0430\u0449\u0438\u0442\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u043e\u0442&nbsp;\u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/167\/c9b\/ef8\/167c9bef899af364bb17ff86516badda.png\" alt=\"RancherOS\" width=\"100%\" height=\"100%\"\/><\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a Docker-\u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u0432&nbsp;RancherOS \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043e\u0431\u044b\u0447\u043d\u043e\u0435 Docker-\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435, \u0442\u043e&nbsp;\u043c\u044b&nbsp;\u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/docs.docker.com\/engine\/reference\/commandline\/\" rel=\"nofollow\">\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u043a\u043e\u043c\u0430\u043d\u0434<\/a> Docker \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c\u0438 \u0442\u0430\u043a \u0438&nbsp;\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\"># \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 Docker [rancher@rancher-os ~]$ docker --version Docker version 1.12.1, build 23cf638 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"># \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u043e\u0432\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0438\u0437 Docker Hub [rancher@rancher-os ~]$ docker run -d nginx Unable to find image 'nginx:latest' locally latest: Pulling from library\/nginx \u2026  Status: Downloaded newer image for nginx:latest <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"># \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0441\u043f\u0438\u0441\u043a\u0430 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 [rancher@rancher-os ~]$ docker ps CONTAINER ID        IMAGE               COMMAND                  CREATED              STATUS              PORTS               NAMES 2ec5126e8dd5        nginx               &quot;nginx -g 'daemon off&quot;   About a minute ago   Up About a minute   80\/tcp, 443\/tcp     sad_fermat <\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a&nbsp;\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>system-docker<\/strong> \u0432\u043c\u0435\u0441\u0442\u0435 \u0441&nbsp;\u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 <a href=\"https:\/\/www.sudo.ws\/\" rel=\"nofollow\">sudo<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@rancher-os ~]$ sudo system-docker ps CONTAINER ID        IMAGE                       COMMAND                  CREATED             STATUS              PORTS               NAMES a566d0c7cc4c        rancher\/os-docker:1.12.1    &quot;\/usr\/bin\/user-docker&quot;   8 minutes ago       Up 8 minutes                            docker 8697a04e90a4        rancher\/os-console:v0.6.1   &quot;\/usr\/bin\/ros entrypo&quot;   8 minutes ago       Up 8 minutes                            console c8c337282aaa        rancher\/os-base:v0.6.1      &quot;\/usr\/bin\/ros entrypo&quot;   8 minutes ago       Up 8 minutes                            network 1e55244fc99c        rancher\/os-base:v0.6.1      &quot;\/usr\/bin\/ros entrypo&quot;   8 minutes ago       Up 8 minutes                            ntp fd6a03fdb28f        rancher\/os-udev:v0.6.1      &quot;\/usr\/bin\/ros entrypo&quot;   8 minutes ago       Up 8 minutes                            udev 7e9e50c28651        rancher\/os-acpid:v0.6.1     &quot;\/usr\/bin\/ros entrypo&quot;   8 minutes ago       Up 8 minutes                            acpid 5fec48b060f2        rancher\/os-syslog:v0.6.1    &quot;\/usr\/bin\/ros entrypo&quot;   8 minutes ago       Up 8 minutes                            syslog <\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@rancher-os ~]$ sudo system-docker restart ntp <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f<\/h4>\n<p>  <\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0438\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f cloud-init, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b\u043b \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d \u043d\u0430&nbsp;\u0434\u0432\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b: <a href=\"https:\/\/github.com\/rancher\/os\/tree\/master\/cmd\/cloudinitexecute\" rel=\"nofollow\">cloud-init-execute<\/a> \u0438&nbsp;<a href=\"https:\/\/github.com\/rancher\/os\/tree\/master\/cmd\/cloudinitsave\" rel=\"nofollow\">cloud-init-save<\/a>. \u041f\u043e&nbsp;\u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 \u0441&nbsp;\u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u043c\u0438 cloud-init, \u0432\u0435\u0440\u0441\u0438\u044f RancherOS \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u044f\u0437\u044b\u043a YAML, \u043e\u0434\u043d\u0430\u043a\u043e cloud-config.yml \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 \u043d\u0435&nbsp;\u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441&nbsp;RancherOS.<\/p>\n<p>  <\/p>\n<p>\u0412\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432&nbsp;\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 <a href=\"http:\/\/docs.rancher.com\/os\" rel=\"nofollow\">docs.rancher.com\/os<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0438\u0437&nbsp;\u0444\u0430\u0439\u043b\u043e\u0432, \u0432&nbsp;\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u043d\u0438\u0436\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (\u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0444\u0430\u0439\u043b \u0438\u0437&nbsp;\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442):<\/p>\n<p>  <\/p>\n<ul>\n<li><strong>\/usr\/share\/ros\/os-config.yml<\/strong>&nbsp;&mdash; \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u043e&nbsp;\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e;<\/li>\n<li><strong>\/usr\/share\/ros\/oem\/oem-config.yml<\/strong>&nbsp;&mdash; \u0432&nbsp;\u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0444\u0430\u0439\u043b, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u0435\u0442\u0438, \u0432&nbsp;\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441&nbsp;\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0438\u0437&nbsp;\u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f VPC;<\/li>\n<li>YAML-\u0444\u0430\u0439\u043b\u044b \u0432&nbsp;\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <strong>\/var\/lib\/rancher\/conf\/cloud-config.d\/<\/strong>;<\/li>\n<li><strong>\/var\/lib\/rancher\/conf\/cloud-config.yml<\/strong>&nbsp;&mdash; \u0444\u0430\u0439\u043b, \u0445\u0440\u0430\u043d\u044f\u0449\u0438\u0439 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 ros, \u043e&nbsp;\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b&nbsp;\u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u0434\u0430\u043b\u0435\u0435;<\/li>\n<li>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u044f\u0434\u0440\u0430, \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0441&nbsp;\u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 \u00abrancher\u00bb;<\/li>\n<li><strong>\/var\/lib\/rancher\/conf\/metadata<\/strong>&nbsp;&mdash; \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 cloud-init-save.<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0412\u044b&nbsp;\u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0440\u0438 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u044b ros, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043d\u043e\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432&nbsp;\u0444\u0430\u0439\u043b\u0435 <strong>\/var\/lib\/rancher\/conf\/cloud-config.yml<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@rancher-os ~]$ sudo ros config set rancher.network.dns.nameservers &quot;['188.93.16.19','188.93.17.19', '109.234.159.91']&quot; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@rancher-os ~]$ sudo cat \/var\/lib\/rancher\/conf\/cloud-config.yml rancher:     network:         dns:             nameservers:               - 188.93.16.19               - 188.93.17.19               - 109.234.159.91 <\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0443\u0442\u0438\u043b\u0438\u0442\u0430 ros \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 Docker, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 TLS \u0438&nbsp;SELinux.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430 RancherOS \u0432&nbsp;\u0441\u0435\u0440\u0432\u0438\u0441\u0435 \u00ab\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e\u00bb \u0432\u0430\u043c \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0438 \u0442.\u043f.)<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e&nbsp;\u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c\u0443 \u0432\u0430\u043c\u0438 IP-\u0430\u0434\u0440\u0435\u0441\u0443 \u0432&nbsp;\u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f VPC. \u0412\u044b&nbsp;\u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a&nbsp;\u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b SSH, \u043e\u0434\u043d\u0430\u043a\u043e \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e&nbsp;\u043a\u043b\u044e\u0447\u0443, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u042d\u0442\u043e\u0442 \u043a\u043b\u044e\u0447 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f <strong>rancher<\/strong>.<\/p>\n<p>  <\/p>\n<h4>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438<\/h4>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@rancher-os ~]$ sudo ros os version v0.6.1 <\/code><\/pre>\n<p>  <\/p>\n<p>\u0410&nbsp;\u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u0441\u0435\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0440\u0435\u043b\u0438\u0437\u043e\u0432:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@rancher-os ~]$ sudo ros os list rancher\/os:v0.4.0 remote rancher\/os:v0.4.1 remote rancher\/os:v0.4.2 remote rancher\/os:v0.4.3 remote rancher\/os:v0.4.4 remote rancher\/os:v0.4.5 remote rancher\/os:v0.5.0 remote rancher\/os:v0.6.0 remote rancher\/os:v0.6.1 remote <\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u044b&nbsp;\u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b sudo ros os&nbsp;upgrade, \u043b\u0438\u0431\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e, \u0443\u043a\u0430\u0437\u0430\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>-i<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@rancher-os ~]$ sudo ros os upgrade -i rancher\/os:v0.5.0 <\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0430\u044f \u043d\u0430\u043c\u0438 \u0432\u0435\u0440\u0441\u0438\u044f 0.5.0 \u0441\u0442\u0430\u0440\u0448\u0435, \u0447\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f 0.6.1, \u0442\u043e&nbsp;\u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0434\u0430\u0443\u043d\u0433\u0440\u0435\u0439\u0434<\/p>\n<p>  <\/p>\n<p>\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u0435\u0439 Docker \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e. \u041f\u0440\u0438\u0432\u0435\u0434\u0451\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">#\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 [rancher@rancher-os ~]$ sudo ros engine list disabled docker-1.10.3 disabled docker-1.11.2 current  docker-1.12.1 <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">#\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 1.11.2 [rancher@rancher-os ~]$ sudo ros engine switch docker-1.11.2 INFO[0000] Project [os]: Starting project INFO[0000] [0\/19] [docker]: Starting \u2026 INFO[0010] Recreating docker INFO[0010] [1\/19] [docker]: Started <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041a\u043b\u0430\u0441\u0442\u0435\u0440 Docker Swarm \u043d\u0430&nbsp;RancherOS<\/h4>\n<p>  <\/p>\n<p>\u0412 Docker&nbsp;1.12 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 Docker Swarm, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0447\u0435\u043c\u0443 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0441\u0442\u0430\u043b\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435.<\/p>\n<p>  <\/p>\n<p>\u0412&nbsp;\u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u044b&nbsp;\u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 RancherOS \u0432&nbsp;\u0441\u0435\u0440\u0432\u0438\u0441\u0435 \u00ab\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e\u00bb. \u0412 \u043d\u0451\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f Docker \u0432\u0435\u0440\u0441\u0438\u0438 1.12.1.  <\/p>\n<p>\u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0440\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441\u043e&nbsp;\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/8c0\/64d\/dd8\/8c064ddd8f88d914728beda1ed862554.png\" alt=\"pr-3225-02\" width=\"100%\" height=\"100%\"\/><\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 Docker Swarm, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430&nbsp;\u043d\u043e\u0434\u0435 <strong>manager0<\/strong> \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@manager0 ~]$ docker swarm init --advertise-addr 192.168.0.100 Swarm initialized: current node (8gf95qb6l61v5s6561qx5vfy6) is now a manager.  To add a worker to this swarm, run the following command:      docker swarm join \\         --token SWMTKN-1-0hlhela57gsvxzoaqol70n2b9wos6qlu3ukriry3pcxyb9j2k6-0n1if4hkvdvmrpbb7f3clx1yg \\         192.168.0.100:2377  To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0432\u044b&nbsp;\u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0438\u0437&nbsp;\u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0435\u0439\u0441\u044f \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438, \u043d\u0430&nbsp;\u043d\u043e\u0434\u0430\u0445 <strong>worker0<\/strong> \u0438&nbsp;<strong>worker1<\/strong> \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">docker swarm join \\     --token SWMTKN-1-0hlhela57gsvxzoaqol70n2b9wos6qlu3ukriry3pcxyb9j2k6-0n1if4hkvdvmrpbb7f3clx1yg \\     192.168.0.100:2377 <\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u043d\u043e\u0434 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430&nbsp;<strong>manager0<\/strong> \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@manager0 ~]$ docker node ls ID                           HOSTNAME  STATUS  AVAILABILITY  MANAGER STATUS 366euocei01dw3ay66uwzb3pv    worker0   Ready   Active 67pt4fo5gi13cxkphtfzfbfbo    worker1   Ready   Active 8gf95qb6l61v5s6561qx5vfy6 *  manager0  Ready   Active        Leader <\/code><\/pre>\n<p>  <\/p>\n<p>Docker Swarm \u0433\u043e\u0442\u043e\u0432 \u043a&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e!<\/p>\n<p>  <\/p>\n<p>\u041f\u043e&nbsp;\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u043e\u0432\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u043d\u0430&nbsp;\u0432\u0441\u0435\u0445 \u043d\u043e\u0434\u0430\u0445 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430. \u041f\u043e\u0434\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0438\u0441\u044c \u043d\u0430&nbsp;\u043d\u043e\u0434\u0430\u0445 <strong>worker0<\/strong> \u0438&nbsp;<strong>worker1<\/strong>, \u0430&nbsp;\u043d\u043e\u0434\u0430 <strong>manager0<\/strong> \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0443\u044e \u0440\u043e\u043b\u044c.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u00ab\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u00bb \u043d\u043e\u0434\u044b <strong>manager0<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@manager0 ~]$ docker node update --availability drain manager0 <\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0441\u0435\u0440\u0432\u0438\u0441 \u0441&nbsp;\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u043c Nginx:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@manager0 ~]$ docker service create --name webserver --replicas 1 --publish 80:80 nginx <\/code><\/pre>\n<p>  <\/p>\n<p>\u0412&nbsp;\u043e\u0442\u0432\u0435\u0442 \u043c\u044b&nbsp;\u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u0435\u0440\u0432\u0438\u0441\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">av1qvj32mz8vwkwihf0lauiz8 <\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u043f\u043b\u0438\u043a \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u043e&nbsp;0, \u0430&nbsp;\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0430\u044f\u0441\u044f \u043a&nbsp;\u044d\u0442\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0438\u0441\u0443, \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432&nbsp;\u0441\u0442\u0430\u0442\u0443\u0441\u0435 \u00abPreparing\u00bb:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@manager0 ~]$ docker service ls ID            NAME       REPLICAS  IMAGE  COMMAND av1qvj32mz8v  webserver  0\/1       nginx <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@manager0 ~]$ docker service ps webserver ID                         NAME         IMAGE  NODE     DESIRED STATE  CURRENT STATE                 ERROR cjxkza3qzx5m73bgbls0r26m6  webserver.1  nginx  worker1  Running        Preparing about a minute ago <\/code><\/pre>\n<p>  <\/p>\n<p>\u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 Nginx \u0431\u0443\u0434\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043a\u0430\u0447\u0430\u043d \u0438\u0437&nbsp;Docker Hub, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f \u043d\u0430&nbsp;\u00abRunning\u00bb:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@manager0 ~]$ docker service ls ID            NAME       REPLICAS  IMAGE  COMMAND av1qvj32mz8v  webserver  1\/1       nginx <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@manager0 ~]$ docker service ps webserver ID                         NAME         IMAGE  NODE     DESIRED STATE  CURRENT STATE          ERROR cjxkza3qzx5m73bgbls0r26m6  webserver.1  nginx  worker1  Running        Running 8 minutes ago <\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u043c\u044b&nbsp;\u0432\u0438\u0434\u0438\u043c, \u0441\u0435\u0440\u0432\u0438\u0441 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0441\u044f \u043d\u0430&nbsp;\u043d\u043e\u0434\u0435 <strong>worker1<\/strong> (\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432&nbsp;\u0441\u0442\u043e\u043b\u0431\u0446\u0435 \u00abNODE\u00bb). \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u043c \u044d\u0442\u0443 \u043d\u043e\u0434\u0443 \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f VPC \u0438&nbsp;\u0441\u043d\u043e\u0432\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 <strong>webserver<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@manager0 ~]$ docker service ps webserver ID                         NAME             IMAGE  NODE     DESIRED STATE  CURRENT STATE             ERROR 5lwf4z54p74qtoopuilshw204  webserver.1      nginx  worker0  Running        Preparing 32 seconds ago cjxkza3qzx5m73bgbls0r26m6   \\_ webserver.1  nginx  worker1  Shutdown       Running 16 minutes ago <\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u0442\u0430\u0442\u0443\u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u043d\u0430&nbsp;\u00abPreparing\u00bb, Docker Swarm \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0430&nbsp;\u0434\u0440\u0443\u0433\u0443\u044e \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u043d\u043e\u0434\u0443 <strong>worker0<\/strong>, \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441&nbsp;\u0442\u0435\u043c, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u043d\u0430&nbsp;\u043d\u043e\u0434\u0443 <strong>worker0<\/strong> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043e\u0431\u0440\u0430\u0437 Nginx \u0438\u0437&nbsp;Docker Hub.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0437\u0430 \u0441\u0435\u0440\u0432\u0438\u0441 webserver \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f \u043d\u0430&nbsp;\u043d\u043e\u0434\u0435 <strong>worker0<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@manager0 ~]$ docker service ps webserver ID                         NAME             IMAGE  NODE     DESIRED STATE  CURRENT STATE               ERROR 5lwf4z54p74qtoopuilshw204  webserver.1      nginx  worker0  Running        Running about a minute ago cjxkza3qzx5m73bgbls0r26m6   \\_ webserver.1  nginx  worker1  Shutdown       Running 19 minutes ago <\/code><\/pre>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u044f \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0441&nbsp;\u0443\u043f\u0430\u0432\u0448\u0435\u0439 \u043d\u043e\u0434\u044b, \u043c\u044b&nbsp;\u043c\u043e\u0436\u0435\u043c \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u043f\u043b\u0438\u043a \u044d\u0442\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430.<\/p>\n<p>  <\/p>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 (\u043d\u0435&nbsp;\u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u043e\u0434\u0443 <strong>worker1<\/strong>&nbsp;\u043e\u0431\u0440\u0430\u0442\u043d\u043e):<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@manager0 ~]$ docker service update --replicas 2 webserver <\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u0435\u0440\u0432\u0438\u0441 \u043d\u0430\u0447\u043d\u0435\u0442 \u0440\u0435\u043f\u043b\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430&nbsp;\u0432\u0442\u043e\u0440\u0443\u044e \u043d\u043e\u0434\u0443 <strong>worker1<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">[rancher@manager0 ~]$ docker service ps webserver ID                         NAME             IMAGE  NODE     DESIRED STATE  CURRENT STATE            ERROR 5lwf4z54p74qtoopuilshw204  webserver.1      nginx  worker0  Running        Running 11 minutes ago cjxkza3qzx5m73bgbls0r26m6   \\_ webserver.1  nginx  worker1  Shutdown       Complete 6 minutes ago f3o7icke69zw83ag92ywol0dr  webserver.2      nginx  worker1  Running        Preparing 2 seconds ago <\/code><\/pre>\n<p>  <\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>  <\/p>\n<p>\u0412&nbsp;\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b&nbsp;\u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043b\u0438 \u043e\u0431\u0437\u043e\u0440 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 Linux, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0438&nbsp;\u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u043e\u043c \u0438\u0437&nbsp;\u0438\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432.<\/p>\n<p>  <\/p>\n<p>\u0411\u0443\u0434\u0435\u043c \u0440\u0430\u0434\u044b, \u0435\u0441\u043b\u0438 \u0432\u044b&nbsp;\u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f CoreOS, RancherOS \u0438&nbsp;\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0438\u043c&nbsp;\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c.<\/p>\n<\/p>\n<\/p>\n<\/p>\n<\/p>\n<p> \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:\/\/habrahabr.ru\/post\/315930\/\"> https:\/\/habrahabr.ru\/post\/315930\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/58a\/61c\/c94\/58a61cc94dba17ed0c95c76590202ce2.png\" alt=\"CoreOS\" width=\"100%\" height=\"100%\"\/><\/p>\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432&nbsp;\u0441\u0435\u0440\u0432\u0438\u0441 <a href=\"https:\/\/selectel.ru\/services\/vpc\/\" rel=\"nofollow\">\u00ab\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u043b\u0430\u043a\u043e\u00bb<\/a> \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 \u0441&nbsp;\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 <a href=\"http:\/\/rancher.com\/rancher-os\/\" rel=\"nofollow\">RancherOS<\/a> \u0438&nbsp;\u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0438 \u043e\u0431\u0440\u0430\u0437 <a href=\"https:\/\/coreos.com\/\" rel=\"nofollow\">CoreOS<\/a>.<\/p>\n<p>  <\/p>\n<p>\u042d\u0442\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0431\u0443\u0434\u0443\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432&nbsp;\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445 \u0438&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 &mdash; <a href=\"http:\/\/kubernetes.io\/\" rel=\"nofollow\">Kubernetes<\/a>, <a href=\"https:\/\/docker.github.io\/swarm\/overview\/\" rel=\"nofollow\">Docker Swarm<\/a>, <a href=\"http:\/\/mesos.apache.org\/\" rel=\"nofollow\">Apache Mesos<\/a> \u0438&nbsp;\u0434\u0440\u0443\u0433\u0438\u0445.<\/p>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-281405","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/281405","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=281405"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/281405\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=281405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=281405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=281405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}