{"id":344,"date":"2018-12-10T12:41:23","date_gmt":"2018-12-10T09:41:23","guid":{"rendered":"https:\/\/artem.services\/?p=344"},"modified":"2019-07-01T13:07:10","modified_gmt":"2019-07-01T10:07:10","slug":"sdk-google-cloud-%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=344","title":{"rendered":"SDK Google Cloud &#8212; \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-full wp-image-347 aligncenter\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/12\/GCP-Logo.png\" alt=\"\" width=\"955\" height=\"312\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/12\/GCP-Logo.png 955w, https:\/\/artem.services\/wp-content\/uploads\/2018\/12\/GCP-Logo-300x98.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2018\/12\/GCP-Logo-768x251.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2018\/12\/GCP-Logo-954x312.png 954w\" sizes=\"(max-width: 955px) 100vw, 955px\" \/><\/p>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 &quot;<strong>Google Cloud Console<\/strong>&quot;, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0433\u043e \u0435\u0449\u0435 \u043d\u0435\u0442.<\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c &quot;<strong>AIM and administration<\/strong>&quot; &#8212; &quot;<strong>Service accounts<\/strong>&quot;. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043b\u044f <strong>SDK<\/strong>, \u0442\u0430\u043a \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412\u044b\u0431\u0435\u0440\u0435\u043c \u0441\u0432\u043e\u0439 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0438 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c &quot;<strong>Action<\/strong>&quot; &#8212; &quot;<strong>Create key<\/strong>&quot;, \u0443\u043a\u0430\u0436\u0435\u043c \u0442\u0438\u043f \u043a\u043b\u044e\u0447\u0430 &quot;<strong>JSON<\/strong>&quot;.<\/p>\n<p>(<strong>!<\/strong>) \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u0435\u0433\u043e \u0432 \u043d\u0430\u0434\u0435\u0436\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0441\u044b\u043b\u0430\u0439\u0442\u0435 \u043f\u043e \u043f\u043e\u0447\u0442\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0430\u0448\u0435\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0443.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 <strong>API<\/strong> \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u043e\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430. \u041c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0431\u044b\u043b \u0442\u043e\u043b\u044c\u043a\u043e &quot;<strong>Compute Engine<\/strong>&quot;, \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435:<\/p>\n<pre>https:\/\/console.cloud.google.com\/apis\/library?project=YOU_PROJECT_NAME&amp;orgonly=true<\/pre>\n<p>\u0413\u0434\u0435 &quot;<strong>YOU_PROJECT_NAME<\/strong>&quot; \u0438\u043c\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 <strong>GCloud<\/strong>:<\/h4>\n<p>\u0414\u043b\u044f Linux \u0438 MacOS:<\/p>\n<p>\u0412\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<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncurl https:\/\/sdk.cloud.google.com | bash\r\n<\/pre>\n<p>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0443:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nexec -l $SHELL\r\n<\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c &quot;<strong>gcloud init<\/strong>&quot; \u0434\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 gcloud environment:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ngcloud init\r\n<\/pre>\n<p>\u0412\u0430\u0441 \u043f\u0435\u0440\u0435\u0431\u0440\u043e\u0441\u0438\u0442 \u043d\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0439\u0442\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u0431\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ngcloud init --console-only\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u0418\u043d\u0442\u0435\u0440\u0433\u0440\u0430\u0446\u0438\u044f \u0441 <strong>kubectl<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ngcloud container clusters get-credentials KUBERNETES_CLUSTER_NAME --zone ZONE_NAME --project YOU_PROJECT_NAME\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 &quot;Google Cloud Console&quot;, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0433\u043e \u0435\u0449\u0435 \u043d\u0435\u0442. \u0417\u0430\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c &quot;AIM and administration&quot; &#8212; &quot;Service accounts&quot;. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043b\u044f SDK, \u0442\u0430\u043a \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0412\u044b\u0431\u0435\u0440\u0435\u043c \u0441\u0432\u043e\u0439 \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0438 \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c &quot;Action&quot; &#8212; &quot;Create key&quot;, \u0443\u043a\u0430\u0436\u0435\u043c \u0442\u0438\u043f \u043a\u043b\u044e\u0447\u0430 &quot;JSON&quot;. (!) &hellip; <a href=\"https:\/\/artem.services\/?p=344\" class=\"more-link\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c<span class=\"screen-reader-text\"> &quot;SDK Google Cloud &#8212; \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430&quot;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[87],"tags":[107,106,105],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/344"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=344"}],"version-history":[{"count":6,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/344\/revisions"}],"predecessor-version":[{"id":1243,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/344\/revisions\/1243"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}