{"id":307892,"date":"2020-08-03T09:00:27","date_gmt":"2020-08-03T09:00:27","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=307892"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=307892","title":{"rendered":"Kubernetes tips &amp; tricks: \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0434\u043b\u044f kubectl"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/512762\/\">\u0412\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043c\u044b \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0434\u0435\u043b\u0438\u043c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u043d\u0438\u044f\u043c\u0438: \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0432\u0438\u0434\u0435 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0445 wiki-\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439, \u043d\u043e \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 Slack (\u0430 \u0447\u0442\u043e\u0431\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0442\u0435\u0440\u044f\u043b\u043e\u0441\u044c, \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u0443\u043c\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u043e\u0438\u0441\u043a\u0430, \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f\u2026). \u0423 \u043d\u0430\u0441 \u043d\u0430\u043a\u043e\u043f\u0438\u043b\u043e\u0441\u044c \u0443\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0445 \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043e\u043a \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0432 Kubernetes \u0441 kubectl. \u041f\u0440\u043e \u043d\u0438\u0445 \u0438 \u043f\u043e\u0439\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-o\/rb\/nz\/-orbnzg04igjb7nhzdh0y485pa8.png\"><\/p>\n<p>  \u041a\u0430\u043a\u0438\u0435-\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043c\u043e\u0433\u0443\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0432\u0441\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0439 \u043e\u0431\u044b\u0434\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439, \u043d\u043e \u0435\u0441\u043b\u0438 \u043d\u0430\u0439\u0434\u0443\u0442\u0441\u044f \u0438 \u0442\u0435, \u043a\u0442\u043e \u043e\u0442\u043a\u0440\u043e\u0435\u0442 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043d\u043e\u0432\u043e\u0435, \u0443\u043b\u0443\u0447\u0448\u0438\u0432 \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0441\u0432\u043e\u044e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c, \u2014 \u0446\u0435\u043b\u044c \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0442\u0430.<a name=\"habracut\"><\/a><\/p>\n<p>  <i><strong>NB<\/strong>: \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u043d\u0438\u0436\u0435 \u043a\u043e\u043c\u0430\u043d\u0434 \u0431\u044b\u043b\u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430\u0448\u0438\u043c\u0438 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0430\u043c\u0438, \u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u2014 \u043d\u0430\u0439\u0434\u0435\u043d\u044b \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430. \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d\u0438 \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u0438 \u043f\u0440\u0438\u0437\u043d\u0430\u043d\u044b \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c\u0438.<\/i><\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043f\u043e\u0435\u0445\u0430\u043b\u0438!<\/p>\n<h2>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 pod&#8217;\u043e\u0432 \u0438 \u0443\u0437\u043b\u043e\u0432<\/h2>\n<p>  <\/p>\n<ol>\n<li>\u0414\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 pod&#8217;\u043e\u0432 \u0438\u0437 \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432 \u0438\u043c\u0451\u043d \u043f\u0443\u0442\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0430 <code>--all-namespaces<\/code> \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u043c \u043d\u0438 \u0434\u043b\u044f \u043a\u043e\u0433\u043e. \u041d\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u0442\u0430\u043a \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u043a \u043d\u0435\u043c\u0443, \u0447\u0442\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u2014 <code>-A<\/code> (\u043f\u043e \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u043c\u0435\u0440\u0435, \u0442\u0430\u043a\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0440\u0435\u043b\u0438\u0437\u0430 Kubernetes 1.15).<\/li>\n<li> \u041a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0435 pod&#8217;\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0432 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 (\u0442.\u0435. \u043d\u0435 <code>Running<\/code>)?\n<pre><code class=\"bash\">kubectl get pods -A --field-selector=status.phase!=Running | grep -v Complete <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/h3\/wg\/l2\/h3wgl2hcy3t_pgrm-bagppkrsfe.png\"><\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u043f\u0440\u0438\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c\u0441\u044f \u043a <code>--field-selector<\/code> \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e (\u0441\u043c. <a href=\"https:\/\/kubernetes.io\/docs\/concepts\/overview\/working-with-objects\/field-selectors\/\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/a>).<\/li>\n<li> \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0443\u0437\u043b\u043e\u0432 \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u043e\u0431\u044a\u0435\u043c\u0430 \u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438:\n<pre><code class=\"bash\">kubectl get no -o json | \\   jq -r '.items | sort_by(.status.capacity.memory)[]|[.metadata.name,.status.capacity.memory]| @tsv' <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/dm\/vn\/ga\/dmvngaibjad6h4nkqu1-yqr9as0.png\"><\/li>\n<li> \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0443\u0437\u043b\u043e\u0432 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e pod&#8217;\u043e\u0432 \u043d\u0430 \u043d\u0438\u0445:\n<pre><code class=\"bash\">kubectl get po -o json --all-namespaces | \\   jq '.items | group_by(.spec.nodeName) | map({&quot;nodeName&quot;: .[0].spec.nodeName, &quot;count&quot;: length}) | sort_by(.count)' <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/eh\/gh\/f8\/ehghf8yzi49w7g7_xctxh39p_pk.png\"><\/li>\n<li> \u0411\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 DaemonSet \u043d\u0435 \u0432\u044b\u0435\u0445\u0430\u043b \u043d\u0430 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0443\u0437\u0435\u043b. \u0418\u0441\u043a\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u2014 \u0443\u0442\u043e\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u0430\u043d\u044f\u0442\u0438\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u043e\u0442 \u043c\u0438\u043d\u0438-\u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0443\u0437\u043b\u043e\u0432, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 <strong>\u043d\u0435<\/strong> \u0432\u044b\u0435\u0445\u0430\u043b\u0438 DaemonSet&#8217;\u044b:\n<pre><code class=\"bash\">ns=my-namespace pod_template=my-pod kubectl get node | grep -v \\&quot;$(kubectl -n ${ns} get pod --all-namespaces -o wide | fgrep ${pod_template} | awk '{print $8}' | xargs -n 1 echo -n &quot;\\|&quot; | sed 's\/[[:space:]]*\/\/g')\\&quot; <\/code><\/pre>\n<\/li>\n<li> \u0412\u043e\u0442 \u0442\u0430\u043a \u0441 <code>kubectl top<\/code> \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c pod&#8217;\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u044e\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0438\u043b\u0438 \u043f\u0430\u043c\u044f\u0442\u0438:\n<pre><code class=\"bash\"># cpu kubectl top pods -A | sort --reverse --key 3 --numeric # memory kubectl top pods -A | sort --reverse --key 4 --numeric<\/code><\/pre>\n<\/li>\n<li> \u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0441\u043f\u0438\u0441\u043a\u0430 pod&#8217;\u043e\u0432 \u2014 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u043e\u0432:\n<pre><code class=\"bash\">kubectl get pods --sort-by=.status.containerStatuses[0].restartCount<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/cw\/zh\/px\/cwzhpxlgc1akjxknzk-euvvahac.png\"><\/p>\n<p>  \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438 \u043f\u043e \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u043e\u043b\u044f\u043c (\u0441\u043c. <a href=\"https:\/\/kubernetes.io\/docs\/reference\/generated\/kubernetes-api\/v1.18\/#podstatus-v1-core\">PodStatus<\/a> \u0438 <a href=\"https:\/\/kubernetes.io\/docs\/reference\/generated\/kubernetes-api\/v1.18\/#containerstatus-v1-core\">ContainerStatus<\/a>).<\/li>\n<\/ol>\n<p>  <\/p>\n<h2>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0440\u0443\u0433\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/h2>\n<p>  <\/p>\n<ol>\n<li> \u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b Ingress&#8217;\u0430, \u043c\u044b \u043d\u0435\u0438\u0437\u0431\u0435\u0436\u043d\u043e \u0434\u043e\u0445\u043e\u0434\u0438\u043c \u0434\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0438 \u0434\u0430\u043b\u0435\u0435 \u0438\u0449\u0435\u043c pod&#8217;\u044b \u043f\u043e \u0435\u0433\u043e \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0443. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0438\u0441\u043a\u0430\u043b \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0432 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043d\u043e \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043f\u043e\u0437\u0436\u0435 \u043d\u0430\u0447\u0430\u043b \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c <code>-o wide<\/code>:\n<pre><code class=\"bash\">kubectl -n jaeger get svc -o wide NAME                            TYPE        CLUSTER-IP        EXTERNAL-IP   PORT(S)                                  AGE   SELECTOR  jaeger-cassandra                ClusterIP   None              &lt;none&gt;        9042\/TCP                                 77d   app=cassandracluster,cassandracluster=jaeger-cassandra,cluster=jaeger-cassandra<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u043b\u0435\u0433\u043a\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c, \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 pod&#8217;\u044b.<\/li>\n<li> \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e pod&#8217;\u0430 \u0435\u0433\u043e limits \u0438 requests:\n<pre><code class=\"bash\">kubectl get pods -n my-namespace -o=custom-columns='NAME:spec.containers[*].name,MEMREQ:spec.containers[*].resources.requests.memory,MEMLIM:spec.containers[*].resources.limits.memory,CPUREQ:spec.containers[*].resources.requests.cpu,CPULIM:spec.containers[*].resources.limits.cpu'<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/5e\/rv\/r6\/5ervr6m0o01lkg_6s7dnahn0bhc.png\"><\/li>\n<li> \u0423 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>kubectl run<\/code> (\u0430 \u0442\u0430\u043a\u0436\u0435 <code>create<\/code>, <code>apply<\/code>, <code>patch<\/code>) \u0435\u0441\u0442\u044c \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0434\u043e \u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u2014 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0444\u043b\u0430\u0433 <code>--dry-run<\/code>. \u0410 \u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u043a\u0443\u043f\u0435 \u0441 <code>-o yaml<\/code>, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u0439 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:\n<pre><code class=\"bash\">kubectl run test --image=grafana\/grafana --dry-run -o yaml  apiVersion: apps\/v1 kind: Deployment metadata:   creationTimestamp: null   labels:     run: test   name: test spec:   replicas: 1   selector:     matchLabels:       run: test   strategy: {}   template:     metadata:       creationTimestamp: null       labels:         run: test     spec:       containers:       - image: grafana\/grafana         name: test         resources: {} status: {} <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0444\u0430\u0439\u043b, \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0430\u0440\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445\/\u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 \u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435.<\/li>\n<li> \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u0435 \u043f\u043e \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u0443 \u043a\u0430\u043a\u043e\u0433\u043e-\u043b\u0438\u0431\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u0430:\n<pre><code class=\"bash\">kubectl explain hpa  KIND:     HorizontalPodAutoscaler VERSION:  autoscaling\/v1  DESCRIPTION:      configuration of a horizontal pod autoscaler.  FIELDS:    apiVersion    &lt;string&gt;      APIVersion defines the versioned schema of this representation of an      object. Servers should convert recognized schemas to the latest internal      value, and may reject unrecognized values. More info:      https:\/\/git.k8s.io\/community\/contributors\/devel\/api-conventions.md#resources     kind    &lt;string&gt;      Kind is a string value representing the REST resource this object      represents. Servers may infer this from the endpoint the client submits      requests to. Cannot be updated. In CamelCase. More info:      https:\/\/git.k8s.io\/community\/contributors\/devel\/api-conventions.md#types-kinds     metadata    &lt;Object&gt;      Standard object metadata. More info:      https:\/\/git.k8s.io\/community\/contributors\/devel\/api-conventions.md#metadata     spec    &lt;Object&gt;      behaviour of autoscaler. More info:      https:\/\/git.k8s.io\/community\/contributors\/devel\/api-conventions.md#spec-and-status.     status    &lt;Object&gt;      current information about the autoscaler.<\/code><\/pre>\n<p>  \u041f\u043e\u043b\u043d\u0430\u044f \u0438 \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f!<\/li>\n<\/ol>\n<p>  <\/p>\n<h2>\u0421\u0435\u0442\u0438<\/h2>\n<p>  <\/p>\n<ol>\n<li> \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u0443\u0437\u043b\u043e\u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:\n<pre><code class=\"bash\">kubectl get nodes -o json | \\   jq -r '.items[].status.addresses[]? | select (.type == &quot;InternalIP&quot;) | .address' | \\   paste -sd &quot;\\n&quot; - <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/p8\/9e\/il\/p89eily3zmvc6a4vjxgwmji_wjm.png\"><\/li>\n<li> \u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0432\u0441\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0438 nodePort, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0442:\n<pre><code class=\"bash\">kubectl get --all-namespaces svc -o json | \\   jq -r '.items[] | [.metadata.name,([.spec.ports[].nodePort | tostring ] | join(&quot;|&quot;))]| @tsv' <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wa\/-j\/mt\/wa-jmt3guqxmtfxkoit7zxs4jic.png\"><\/li>\n<li> \u0412 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445, \u043a\u043e\u0433\u0434\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 CNI (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441 Flannel), \u0434\u043b\u044f \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u043e\u0433\u043e pod&#8217;\u0430 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b. \u0417\u0434\u0435\u0441\u044c \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u0433\u043e\u0434\u044f\u0442\u0441\u044f \u043f\u043e\u0434\u0441\u0435\u0442\u0438 pod&#8217;\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435:\n<pre><code class=\"bash\">kubectl get nodes -o jsonpath='{.items[*].spec.podCIDR}' | tr &quot; &quot; &quot;\\n&quot; <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/5v\/sa\/yl\/5vsayl5imukxs_mzni-wzyygfoq.png\"><\/li>\n<\/ol>\n<p>  <\/p>\n<h2>\u041b\u043e\u0433\u0438<\/h2>\n<p>  <\/p>\n<ol>\n<li> \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u043e\u0432 pod&#8217;\u0430 c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c timestamp \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0435\u0433\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f:\n<pre><code class=\"bash\">kubectl -n my-namespace logs -f my-pod --timestamps  2020-07-08T14:01:59.581788788Z fail: Microsoft.EntityFrameworkCore.Query[10100] <\/code><\/pre>\n<p>  \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435, \u043d\u0435 \u0442\u0430\u043a \u043b\u0438?<\/li>\n<li> \u041d\u0435 \u0436\u0434\u0438\u0442\u0435, \u043f\u043e\u043a\u0430 \u0432\u044b\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0432\u0435\u0441\u044c \u043b\u043e\u0433 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 pod&#8217;\u0430 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <code>--tail<\/code>:\n<pre><code class=\"bash\">kubectl -n my-namespace logs -f my-pod --tail=50 <\/code><\/pre>\n<\/li>\n<li> \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043b\u043e\u0433\u0438 \u0441\u043e \u0432\u0441\u0435\u0445 <i>\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432<\/i> pod&#8217;\u0430:\n<pre><code class=\"bash\">kubectl -n my-namespace logs -f my-pod --all-containers <\/code><\/pre>\n<\/li>\n<li> \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043b\u043e\u0433\u0438 \u0441\u043e \u0432\u0441\u0435\u0445 pod&#8217;\u043e\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 label&#8217;\u0430:\n<pre><code class=\"bash\">kubectl -n my-namespace logs -f -l app=nginx<\/code><\/pre>\n<\/li>\n<li> \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043b\u043e\u0433\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0443\u043f\u0430\u043b:\n<pre><code class=\"bash\">kubectl -n my-namespace logs my-pod --previous <\/code><\/pre>\n<\/li>\n<\/ol>\n<p>  <\/p>\n<h2>\u0414\u0440\u0443\u0433\u0438\u0435 \u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f<\/h2>\n<p>  <\/p>\n<ol>\n<li> \u041a\u0430\u043a \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u0435\u043a\u0440\u0435\u0442\u044b \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0451\u043d \u0432 \u0434\u0440\u0443\u0433\u043e\u0435?\n<pre><code class=\"bash\">kubectl get secrets -o json --namespace namespace-old | \\   jq '.items[].metadata.namespace = &quot;namespace-new&quot;' | \\   kubectl create-f  - <\/code><\/pre>\n<\/li>\n<li> \u0411\u044b\u0441\u0442\u0440\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432:\n<pre><code class=\"bash\">openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout tls.key -out tls.crt -subj &quot;\/CN=grafana.mysite.ru\/O=MyOrganization&quot; kubectl -n myapp create secret tls selfsecret --key tls.key --cert tls.crt<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>  <\/p>\n<h2>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043f\u043e \u0442\u0435\u043c\u0435<\/h2>\n<p>  \u0412\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u2014 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0445\u043e\u0436\u0438\u0445 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u043e\u0432 \u0438 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439, \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435:<\/p>\n<ul>\n<li> <a href=\"https:\/\/kubernetes.io\/ru\/docs\/reference\/kubectl\/cheatsheet\/\">\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 (cheatsheet)<\/a> \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Kubernetes;<\/li>\n<li> <a href=\"https:\/\/linuxacademy.com\/blog\/containers\/kubernetes-cheat-sheet\/\">\u041a\u0440\u0430\u0442\u043a\u043e\u0435 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0438 \u043d\u0435\u043f\u043b\u043e\u0445\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0430 (2 \u0441\u0442\u0440.)<\/a> \u043e\u0442 Linux Academy, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u043c \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0430\u043c:\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/og\/ga\/iy\/oggaiyo77-oxyi-1lpwagx5hd1i.png\"><\/li>\n<li> <a href=\"https:\/\/www.bluematador.com\/learn\/kubectl-cheatsheet\">\u0412\u0435\u0441\u044c\u043c\u0430 \u043e\u0431\u0448\u0438\u0440\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u0430\u043d\u0434<\/a> \u043e\u0442 Blue Matador, \u0440\u0430\u0437\u0431\u0438\u0442\u044b\u0439 \u043f\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u043c;<\/li>\n<li> <a href=\"https:\/\/gist.github.com\/pydevops\/0efd399befd960b5eb18d40adb68ef83\">\u041f\u043e\u0434\u0431\u043e\u0440\u043a\u0430 \u0441\u0441\u044b\u043b\u043e\u043a \u0432 gist&#8217;\u0435<\/a> \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438, \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u043e \u0442\u0435\u043c\u0435 \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b;<\/li>\n<li> <a href=\"https:\/\/github.com\/RehanSaeed\/Kubernetes-Cheat-Sheet\">GitHub-\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 Kubernetes-Cheat-Sheet<\/a> \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u044d\u043d\u0442\u0443\u0437\u0438\u0430\u0441\u0442\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0440\u0430\u0437\u0431\u0438\u0442\u044b\u0435 \u043f\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c;<\/li>\n<li> <a href=\"https:\/\/github.com\/ahmetb\/kubectl-aliases\">GitHub-\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 kubectl-aliases<\/a> \u2014 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0440\u0430\u0439 \u0434\u043b\u044f \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0435\u0439 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0439.<\/li>\n<\/ul>\n<p>  <\/p>\n<h2>P.S.<\/h2>\n<p>  \u0427\u0438\u0442\u0430\u0439\u0442\u0435 \u0442\u0430\u043a\u0436\u0435 \u0432 \u043d\u0430\u0448\u0435\u043c \u0431\u043b\u043e\u0433\u0435:<\/p>\n<ul>\n<li> \u00ab<a href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/333956\/\">\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u0441\u043e\u0432\u0435\u0442\u044b \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 Kubernetes \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443 kubectl<\/a>\u00bb;<\/li>\n<li> \u00ab<a href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/341606\/\">\u041a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Kubernetes \u0447\u0435\u0440\u0435\u0437 kubectl<\/a>\u00bb;<\/li>\n<li> \u00ab<a href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/506948\/\">\u041e\u0431\u0437\u043e\u0440 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0434\u043b\u044f Kubernetes<\/a>\u00bb.<\/li>\n<\/ul>\n<\/div>\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:\/\/habr.com\/ru\/company\/flant\/blog\/512762\/\"> https:\/\/habr.com\/ru\/company\/flant\/blog\/512762\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/512762\/\">\u0412\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043c\u044b \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0434\u0435\u043b\u0438\u043c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u043d\u0438\u044f\u043c\u0438: \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0432\u0438\u0434\u0435 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0445 wiki-\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439, \u043d\u043e \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 Slack (\u0430 \u0447\u0442\u043e\u0431\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0442\u0435\u0440\u044f\u043b\u043e\u0441\u044c, \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u0443\u043c\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u043e\u0438\u0441\u043a\u0430, \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f\u2026). \u0423 \u043d\u0430\u0441 \u043d\u0430\u043a\u043e\u043f\u0438\u043b\u043e\u0441\u044c \u0443\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0445 \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043e\u043a \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0432 Kubernetes \u0441 kubectl. \u041f\u0440\u043e \u043d\u0438\u0445 \u0438 \u043f\u043e\u0439\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-o\/rb\/nz\/-orbnzg04igjb7nhzdh0y485pa8.png\"><\/p>\n<p>  \u041a\u0430\u043a\u0438\u0435-\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043c\u043e\u0433\u0443\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0432\u0441\u0435\u0434\u043d\u0435\u0432\u043d\u043e\u0439 \u043e\u0431\u044b\u0434\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439, \u043d\u043e \u0435\u0441\u043b\u0438 \u043d\u0430\u0439\u0434\u0443\u0442\u0441\u044f \u0438 \u0442\u0435, \u043a\u0442\u043e \u043e\u0442\u043a\u0440\u043e\u0435\u0442 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043d\u043e\u0432\u043e\u0435, \u0443\u043b\u0443\u0447\u0448\u0438\u0432 \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0441\u0432\u043e\u044e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c, \u2014 \u0446\u0435\u043b\u044c \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0442\u0430.<\/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-307892","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/307892","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=307892"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/307892\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=307892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=307892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=307892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}