{"id":5375,"date":"2022-06-30T16:53:40","date_gmt":"2022-06-30T14:53:40","guid":{"rendered":"https:\/\/help.libyanspider.com\/ar\/?post_type=ht_kb&#038;p=5375"},"modified":"2022-06-30T16:53:42","modified_gmt":"2022-06-30T14:53:42","slug":"assigning-kubernetes-pods-to-specific-nodes-ls-cloud","status":"publish","type":"ht_kb","link":"https:\/\/help.libyanspider.com\/ar\/kb-article\/assigning-kubernetes-pods-to-specific-nodes-ls-cloud\/","title":{"rendered":"\u062a\u0639\u064a\u064a\u0646 Kubernetes pods \u0644\u0639\u0642\u062f \u0645\u062d\u062f\u062f\u0629 &#8211; \u0633\u062d\u0627\u0628\u0629 \u0627\u0644\u0639\u0646\u0643\u0628\u0648\u062a"},"content":{"rendered":"\n<p>\u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0645\u062c\u0645\u0648\u0639\u0627\u062a \u0627\u0644\u0639\u0645\u0627\u0644 \u060c \u064a\u0645\u0643\u0646\u0643 \u062a\u0639\u064a\u064a\u0646 pod \u0641\u064a Kubernetes \u0644\u0639\u0642\u062f \u0645\u062d\u062f\u062f\u0629. \u0639\u0646\u062f \u0625\u0646\u0634\u0627\u0621 \u0645\u062c\u0645\u0648\u0639\u0629 \u0639\u0645\u0627\u0644\u064a\u0629 \u0645\u062e\u0635\u0635\u0629 \u060c \u062a\u062a\u0645 \u0625\u0636\u0627\u0641\u0629 \u062a\u0633\u0645\u064a\u0629 \u0639\u0642\u062f\u0647\u0627 \u0628\u0627\u0633\u0645 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629. \u0625\u0630\u0627 \u0643\u0646\u062a \u062a\u0631\u064a\u062f \u062c\u062f\u0648\u0644\u0629 \u0627\u0644\u0640pod \u0627\u0644\u062e\u0627\u0635 \u0628\u0643 \u0639\u0644\u0649 \u0639\u0642\u062f\u0629 \u0645\u0646 \u0645\u062c\u0645\u0648\u0639\u0629 \u0639\u0645\u0627\u0644 \u0645\u0639\u064a\u0646\u0629 \u060c \u0623\u0636\u0641 \u0642\u0633\u0645 \u0645\u062d\u062f\u062f \u0627\u0644\u0639\u0642\u062f\u0629 node selector \u0645\u0639 \u062a\u0633\u0645\u064a\u0629 \u0627\u0644\u0639\u0642\u062f\u0629 \u0625\u0644\u0649 \u0645\u0644\u0641 \u062a\u0643\u0648\u064a\u0646 \u0627\u0644\u0640 pod.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0644\u0625\u0646\u0634\u0627\u0621 pod \u0633\u064a\u062a\u0645 \u062c\u062f\u0648\u0644\u062a\u0647\u0627 \u0639\u0644\u0649 \u0639\u0642\u062f\u0629 \u0645\u0639\u064a\u0646\u0629<\/h3>\n\n\n\n<p>\u0627\u0646\u0642\u0631 \u0639\u0644\u0649&nbsp;<strong>+ Create<\/strong>&nbsp;\u0641\u064a \u0644\u0648\u062d\u0629 \u062a\u062d\u0643\u0645 Kubernetes \u0648\u062d\u062f\u062f \u0645\u0644\u0641 YAML \u0627\u0644\u0630\u064a \u064a\u062d\u062f\u062f \u0647\u0630\u0627 \u0627\u0644\u0643\u0627\u0626\u0646. \u0639\u0644\u0649 \u0633\u0628\u064a\u0644 \u0627\u0644\u0645\u062b\u0627\u0644:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apiVersion: v1\nkind: Pod\nmetadata:\n  name: nginx\n  labels:\n    env: test\nspec:\n  containers:\n  - name: nginx\n    image: nginx\n    imagePullPolicy: IfNotPresent\n  nodeSelector:\n    magnum.openstack.org\/nodegroup: mygroup<\/pre>\n\n\n\n<p>\u0647\u0630\u0627 \u0627\u0644\u0628\u064a\u0627\u0646 \u064a\u0648\u0636\u062d \u0627\u0644\u0640pod&nbsp;<code>nginx<\/code>&nbsp;\u0627\u0644\u0630\u064a \u0633\u064a\u062a\u0645 \u062a\u0639\u064a\u064a\u0646\u0647 \u0625\u0644\u0649 \u0639\u0642\u062f\u0629 \u0645\u0646 \u0645\u062c\u0645\u0648\u0639\u0629 \u0627\u0644\u0639\u0642\u062f&nbsp;<code>mygroup<\/code>.<\/p>\n\n\n\n<p>\u0639\u0646\u062f\u0645\u0627 \u064a\u062a\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0640pod \u060c \u062a\u062d\u0642\u0642 \u0645\u0646 \u0623\u0646 \u0639\u0642\u062f\u0629 \u0627\u0644\u0627\u0633\u062a\u0636\u0627\u0641\u0629 \u062a\u0646\u062a\u0645\u064a \u0625\u0644\u0649 \u0645\u062c\u0645\u0648\u0639\u0629 \u0627\u0644\u0639\u0645\u0627\u0644 \u0627\u0644\u0645\u062d\u062f\u062f\u0629<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0645\u062c\u0645\u0648\u0639\u0627\u062a \u0627\u0644\u0639\u0645\u0627\u0644 \u060c \u064a\u0645\u0643\u0646\u0643 \u062a\u0639\u064a\u064a\u0646 pod \u0641\u064a Kubernetes \u0644\u0639\u0642\u062f \u0645\u062d\u062f\u062f\u0629. \u0639\u0646\u062f \u0625\u0646\u0634\u0627\u0621 \u0645\u062c\u0645\u0648\u0639\u0629 \u0639\u0645\u0627\u0644\u064a\u0629 \u0645\u062e\u0635\u0635\u0629 \u060c \u062a\u062a\u0645 \u0625\u0636\u0627\u0641\u0629 \u062a\u0633\u0645\u064a\u0629 \u0639\u0642\u062f\u0647\u0627 \u0628\u0627\u0633\u0645 \u0627\u0644\u0645\u062c\u0645\u0648\u0639\u0629. \u0625\u0630\u0627 \u0643\u0646\u062a \u062a\u0631\u064a\u062f \u062c\u062f\u0648\u0644\u0629 \u0627\u0644\u0640pod \u0627\u0644\u062e\u0627\u0635 \u0628\u0643 \u0639\u0644\u0649 \u0639\u0642\u062f\u0629 \u0645\u0646 \u0645\u062c\u0645\u0648\u0639\u0629 \u0639\u0645\u0627\u0644 \u0645\u0639\u064a\u0646\u0629 \u060c \u0623\u0636\u0641 \u0642\u0633\u0645 \u0645\u062d\u062f\u062f \u0627\u0644\u0639\u0642\u062f\u0629 node selector \u0645\u0639 \u062a\u0633\u0645\u064a\u0629 \u0627\u0644\u0639\u0642\u062f\u0629 \u0625\u0644\u0649 \u0645\u0644\u0641 \u062a\u0643\u0648\u064a\u0646 \u0627\u0644\u0640&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[40,760],"ht-kb-tag":[],"class_list":["post-5375","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-cloud","ht_kb_category-ls-cloud"],"_links":{"self":[{"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb\/5375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/comments?post=5375"}],"version-history":[{"count":0,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb\/5375\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/media?parent=5375"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb-category?post=5375"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb-tag?post=5375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}