{"id":323,"date":"2021-05-03T12:02:29","date_gmt":"2021-05-03T07:32:29","guid":{"rendered":"https:\/\/rabsana.ir\/tutorials\/?p=323"},"modified":"2021-11-01T11:30:13","modified_gmt":"2021-11-01T08:00:13","slug":"install-kubernetes-by-using-kubeadm-in-ubuntu-18","status":"publish","type":"post","link":"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 Kubernetes \u062f\u0631ubuntu 18\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubeadm"},"content":{"rendered":"<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0642\u0631\u0627\u0631 \u0627\u0633\u062a \u0645\u0641\u0647\u0648\u0645 kubernetes \u0648 kubeadm \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u0645 \u0648 \u0631\u0648\u0634 \u0646\u0635\u0628 \u0622\u0646 \u0631\u0627 \u0628\u06cc\u0627\u0645\u0648\u0632\u0645.<\/p>\n<p>&nbsp;<\/p>\n<h2><a id=\"post-323-_7rzmk0k85bqg\"><\/a><strong>Kubernetes (\u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632) \u0686\u06cc\u0633\u062a\u061f<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<p>Kubernetes \u06cc\u0627 k8s (\u0639\u0646\u0648\u0627\u0646 \u063a\u06cc\u0631 \u0631\u0633\u0645\u06cc \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632) \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 \u0645\u062a\u0646 \u0628\u0627\u0632 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u062e\u0648\u062f\u06a9\u0627\u0631 \u0633\u0627\u0632\u06cc\u060c \u0645\u0642\u06cc\u0627\u0633 \u0633\u0627\u0632\u06cc \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u060c\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<p>&nbsp;<\/p>\n<h2><a id=\"post-323-_v0fao07vgeid\"><\/a><strong>\u0645\u0632\u0627\u06cc\u0627\u06cc \u06a9\u0648\u0628\u0631 \u0646\u06cc\u062a\u0632\u0647\u0627 :<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u062e\u0648\u062f\u06a9\u0627\u0631 \u0633\u06cc\u0633\u062a\u0645 \u0647\u0627: \u06a9\u0648\u0628\u0631 \u0646\u06cc\u062a\u0632 \u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u062f\u0631\u062d\u0627\u0644 \u0646\u0638\u0627\u0631\u062a \u0648 \u06a9\u0646\u062a\u0631\u0644 \u0628\u0631 \u0633\u0644\u0627\u0645\u062a \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0622\u0646\u0647\u0627\u0633\u062a \u060c \u0628\u0647 \u062a\u062f\u0631\u06cc\u062c \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a\u06cc \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u06a9\u0646\u062f \u062a\u0627 \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u062f \u0647\u0645\u0647 \u0646\u0645\u0648\u0646\u0647 \u0647\u0627 \u0628\u0637\u0648\u0631 \u0647\u0645\u0632\u0645\u0627\u0646 \u0627\u0632 \u0628\u06cc\u0646 \u0646\u0631\u0648\u0646\u062f \u0648 \u0648\u0642\u062a\u06cc \u0645\u0634\u06a9\u0644\u06cc \u067e\u06cc\u0634 \u0622\u0645\u062f \u0622\u0646 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0631\u0627 \u0628\u0631\u0627\u06cc \u0645\u0627 \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u06a9\u0646\u062f.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u06a9\u0634\u0641 \u062e\u062f\u0645\u0627\u062a \u0648 \u062a\u0639\u0627\u062f\u0644 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc: \u06a9\u0648\u0628\u0631 \u0646\u06cc\u062a\u0632 \u0628\u0631\u0627\u06cc \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc pods\u060c \u0622\u062f\u0631\u0633 IP \u0648 \u0646\u0627\u0645 DNS \u0645\u0631\u0628\u0648\u0637\u0647 \u0631\u0627 \u0628\u0647 \u0645\u062c\u0645\u0648\u0639\u0647 \u06cc pods \u0645\u06cc\u062f\u0647\u062f \u0648 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0631\u0627 \u0628\u06cc\u0646 \u0622\u0646\u0647\u0627 \u062a\u0648\u0632\u06cc\u0639 \u0645\u06cc\u06a9\u0646\u062f.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u0633\u0627\u0632\u0645\u0627\u0646\u062f\u0647\u06cc \u0645\u062e\u0627\u0632\u0646: \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0645\u06cc\u062a\u0648\u0627\u0646\u0646\u062f \u0633\u06cc\u0633\u062a\u0645 \u0647\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647 \u0633\u0627\u0632 \u0645\u062d\u0644\u06cc \u06cc\u0627 \u0627\u0628\u0631\u06cc \u0631\u0627 \u0628\u0637\u0648\u0631 \u062e\u0648\u062f\u06a9\u0627\u0631 \u0646\u0635\u0628 \u06a9\u0646\u0646\u062f.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u067e\u06a9\u06cc\u062c \u06a9\u0631\u062f\u0646 \u062e\u0648\u062f\u06a9\u0627\u0631 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631: \u06a9\u0648\u0628\u0631 \u0646\u06cc\u062a\u0632 \u0628\u0647 \u0637\u0648\u0631 \u062e\u0648\u062f\u06a9\u0627\u0631 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627 \u0631\u0627 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0646\u06cc\u0627\u0632\u0645\u0646\u0627\u0628\u0639 \u062e\u0648\u062f \u0648 \u0633\u0627\u06cc\u0631 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u0647\u0627 \u062a\u0648\u0632\u06cc\u0639 \u0645\u06cc \u06a9\u0646\u062f.\u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0645\u0646\u0627\u0628\u0639 \u0628\u0647\u062a\u0631\u06cc \u0628\u0647 \u0622\u0646\u0647\u0627 \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0639\u0645\u0644\u06a9\u0631\u062f \u0633\u06cc\u0633\u062a\u0645 \u0628\u0631\u0627\u06cc \u0622\u0646\u0647\u0627 \u0628\u0647\u062a\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u067e\u06a9\u06cc\u062c \u0647\u0627 \u062f\u0631 \u06a9\u0648\u0628\u0631 \u0646\u06cc\u062a\u0632: \u06a9\u0648\u0628\u0631 \u0646\u06cc\u062a\u0632 \u062f\u0631 \u06a9\u0646\u0627\u0631 \u062e\u062f\u0645\u0627\u062a\u06cc \u06a9\u0647 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u0647\u062f\u060c\u0645\u06cc\u062a\u0648\u0627\u0646\u062f \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u067e\u06a9\u06cc\u062c \u0634\u0645\u0627 \u0631\u0627 \u0646\u06cc\u0632 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u062f.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u062e\u0648\u062f \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc: \u06a9\u0648\u0628\u0631 \u0646\u06cc\u062a\u0632 \u0648\u0636\u0639\u06cc\u062a \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627 \u0631\u0627 \u06a9\u0646\u062a\u0631\u0644 \u0645\u06cc\u06a9\u0646\u062f \u0648 \u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627 \u0645\u0634\u06a9\u0644\u06cc \u067e\u06cc\u0634 \u0628\u06cc\u0627\u06cc\u062f \u060c \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627\u06cc \u062c\u062f\u06cc\u062f \u0631\u0627 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u0622\u0646\u0647\u0627 \u0645\u06cc\u06a9\u0646\u062f. \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0634\u06a9\u0633\u062a\u0647 \u0627\u0646\u062f \u062f\u0648\u0628\u0627\u0631\u0647 \u0633\u0627\u062e\u062a\u0647 \u0645\u06cc\u0634\u0648\u0646\u062f.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>Kubeadm: \u0648\u0638\u06cc\u0641\u0647kubeadm \u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u062e\u0648\u062f\u06a9\u0627\u0631 \u0627\u062c\u0632\u0627\u06cc \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632\u060cAPI server \u060c \u06a9\u0646\u062a\u0631\u0644 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0648 kube Dns \u0645\u06cc\u0628\u0627\u0634\u062f .<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><a id=\"post-323-_ui6rzyg4x8vn\"><\/a><strong>Kubeadm \u0686\u06cc\u0633\u062a\u061f<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<p>Kubeadm \u0645\u062c\u0645\u0648\u0639\u0647 \u0627\u0628\u0632\u0627\u0631\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0647\u0645\u0631\u0627\u0647 \u0628\u0627 \u062a\u0648\u0632\u06cc\u0639 \u06a9\u0648\u0628\u0631 \u0646\u062a\u06cc\u0632\u0647\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc\u0634\u0648\u062f \u0648 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634 \u0648 \u0645\u062a\u062f \u0631\u0627 \u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a\u0646 \u06cc\u06a9 cluster (\u062f\u0633\u062a\u0647) \u062f\u0631 \u0632\u06cc\u0631 \u0633\u0627\u062e\u062a \u0647\u0627\u06cc \u0645\u0648\u062c\u0648\u062f \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u06a9\u0646\u062f.<\/p>\n<p>&nbsp;<\/p>\n<h2><a id=\"post-323-_gmbl9qwye2i2\"><\/a><strong>\u0641\u0631\u0627\u06cc\u0646\u062f \u0646\u0635\u0628 \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632:<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_tiz7y0gbvxqn\"><\/a><strong>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0633\u0631\u0648\u0631\u0647\u0627<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0646\u0635\u0628 \u06a9\u0648\u0628\u0631 \u0646\u06cc\u062a\u0632 \u0627\u0632 3 \u0633\u0631\u0648\u0631 \u0628\u0627 \u0645\u0634\u062e\u0635\u0627\u062a \u0633\u06cc\u0633\u062a\u0645\u06cc \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645:<\/p>\n<ul>\n<li>Master server \u2013 4 CPU and 4096 RAM<\/li>\n<li>Worker1 server \u2013 2 CPU and 4096 RAM<\/li>\n<li>Worker2 server \u2013 2 CPU and 4096 RAM<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u0647\u0645\u0647 \u0633\u0631\u0648\u0631\u0647\u0627\u060c \u0627\u0632 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 18.04 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u06a9\u0646\u0646\u062f \u0648 \u0647\u0631 \u06a9\u062f\u0627\u0645 \u0627\u0632 IP \u0648 DNS \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u06a9\u0646\u0646\u062f:<\/p>\n<ul>\n<li>Master server \u2013 IP 192.168.50.58<\/li>\n<li>Worker1 server \u2013 IP 192.168.50.38<\/li>\n<li>Worker2 server \u2013 IP 192.168.50.178<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_yenri1xrcos9\"><\/a><strong>\u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc \u06cc\u0627 \u0622\u067e\u062f\u06cc\u062a<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0627\u0648\u0644\u06cc\u0646 \u062d\u0631\u06a9\u062a \u0645\u0637\u0645\u0626\u0646 \u0634\u062f\u0646 \u0627\u0632 \u0628\u0647 \u0631\u0648\u0632 \u0628\u0648\u062f\u0646 \u062a\u0645\u0627\u0645 \u067e\u06a9\u06cc\u062c \u0647\u0627 \u062f\u0631 \u0647\u0631 \u0633\u0631\u0648\u0631 \u0627\u0633\u062a:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# apt update -y &amp;amp;&amp;amp; apt upgrade -y<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_i11mbgsc7cxm\"><\/a><strong>\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0627\u0637\u0644\u0627\u0639\u0627\u062a HOST \u06cc\u0627 \u0645\u06cc\u0632\u0628\u0627\u0646<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0647\u0645 \u0627\u06a9\u0646\u0648\u0646 \u0628\u0627\u06cc\u062f \u0648\u0627\u0631\u062f \u0647\u0631 \u0645\u0627\u0634\u06cc\u0646 \u0634\u0648\u06cc\u062f \u0648 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u060c \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u067e\u0631\u0648\u0646\u062f\u0647 hosts \u06cc\u0627 etc \u0631\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u06a9\u0646\u06cc\u062f :<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# tee -a \/etc\/hosts 192.168.50.38 worker1<\/p>\n<p dir=\"ltr\">&amp;gt; 192.168.50.178 worker2<\/p>\n<p dir=\"ltr\">&amp;gt; EOF<\/p>\n<p dir=\"ltr\">192.168.50.58 master<\/p>\n<p dir=\"ltr\">192.168.50.38 worker1<\/p>\n<p dir=\"ltr\">192.168.50.178 worker2<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u06a9\u062f \u0628\u0627\u0644\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0645\u0648\u062c\u0648\u062f \u062f\u0631 \u067e\u0631\u0648\u0646\u062f\u0647 \u0645\u06cc\u0632\u0628\u0627\u0646 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u062a\u0627\u06cc\u06cc\u062f \u06a9\u0646\u06cc\u0645:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# cat \/etc\/hosts<\/p>\n<p dir=\"ltr\">127.0.0.1 localhost<\/p>\n<p dir=\"ltr\">127.0.1.1 host<\/p>\n<p dir=\"ltr\">::1 ip6-localhost ip6-loopback<\/p>\n<p dir=\"ltr\">fe00::0 ip6-localnet<\/p>\n<p dir=\"ltr\">ff00::0 ip6-mcastprefix<\/p>\n<p dir=\"ltr\">ff02::1 ip6-allnodes<\/p>\n<p dir=\"ltr\">ff02::2 ip6-allrouters<\/p>\n<p dir=\"ltr\">192.168.50.58 master<\/p>\n<p dir=\"ltr\">192.168.50.38 worker1<\/p>\n<p dir=\"ltr\">192.168.50.178 worker2<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_30um0e86ny72\"><\/a><strong>\u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 swap memory<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0639\u0645\u0644\u06a9\u0631\u062f \u0635\u062d\u06cc\u062d kubelet \u060c \u062d\u062a\u0645\u0627 \u0628\u0627\u06cc\u062f \u062d\u0627\u0641\u0638\u0647 swap \u0631\u0627 \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0627\u06cc\u0646 \u062a\u063a\u06cc\u06cc\u0631 \u0628\u0631 \u0631\u0648\u06cc \u0647\u0645\u0647 \u0633\u0631\u0648\u0631\u0647\u0627 \u0627\u0639\u0645\u0627\u0644 \u0645\u06cc\u0634\u0648\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a \u0639\u062f\u0645 \u0648\u062c\u0648\u062f \u0641\u0636\u0627\u06cc \u06a9\u0627\u0641\u06cc \u062f\u0631 RAM \u0627\u0632 \u0641\u0636\u0627\u06cc \u0635\u0641\u062d\u0647 \u0628\u0646\u062f\u06cc \u0647\u0627\u0631\u062f \u062f\u06cc\u0633\u06a9 \u0628\u0631\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647 \u0645\u0648\u0642\u062a \u062f\u0627\u062f\u0647 \u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f.<\/p>\n<p>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# sed -i &#8216;\/ swap \/ s\/^\\(.*\\)$\/#\\1\/g&#8217; \/etc\/fstab<\/p>\n<p dir=\"ltr\">root@host:~# swapoff -a<\/p>\n<p dir=\"ltr\">\n<h3><a id=\"post-323-_vj108qktnu5f\"><\/a><strong>\u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc Kubelet , kubeadm \u0648 kubectl<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0628\u0627\u06cc\u062f \u0639\u0646\u0627\u0635\u0631 \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u0645. \u0628\u0631\u0627\u06cc \u0646\u0645\u0648\u0646\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0645\u0627 \u0627\u0632 \u0633\u0647 \u0639\u0646\u0635\u0631 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u06a9\u0646\u06cc\u0645:<\/p>\n<ul>\n<li>Kubelet<\/li>\n<li>Kubeadm<\/li>\n<li>Kubectl<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_q8u4x2qla5f2\"><\/a><strong>\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0645\u062e\u0627\u0632\u0646<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0645\u062e\u0627\u0632\u0646 \u0631\u0627 \u0628\u0647 \u0645\u062f\u06cc\u0631\u06cc\u062a \u067e\u06a9\u06cc\u062c \u0647\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f \u0648 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0644\u06cc\u062f\u06cc \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u0622\u0646\u0647\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0645\u0646\u0627\u0628\u0639 HTTPS \u062e\u0627\u0631\u062c\u06cc \u0628\u0635\u0648\u0631\u062a \u0627\u06cc\u0645\u0646 \u0628\u0647 \u0644\u06cc\u0633\u062a \u0645\u0646\u0627\u0628\u0639 apt \u0627\u0636\u0627\u0641\u0647 \u0634\u0648\u0646\u062f\u060c \u0627\u0648\u0644 apt-transport-https \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f \u0648 \u0633\u067e\u0633 kubelet \u060ckubeadm \u0648kubectl \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0634\u0631\u0648\u0639 \u0646\u0635\u0628 \u0627\u0648\u0644\u06cc\u0647 \u0631\u0627 \u0628\u0631 \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 Master \u0627\u0646\u062c\u0627\u0645 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0627\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# apt-get update &amp;amp;&amp;amp; apt-get install -y<\/p>\n<p dir=\"ltr\">root@host:~# apt-transport-https curl<\/p>\n<p>&nbsp;<\/p>\n<p>\u0633\u067e\u0633 \u0628\u0627\u06cc\u062f \u0645\u062e\u0627\u0632\u0646 \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632 \u0648 \u06a9\u0644\u06cc\u062f \u0628\u0631\u0627\u06cc \u0628\u0631\u0631\u0633\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0647\u0645\u0647 \u0686\u06cc\u0632 \u0628\u0627 \u0627\u0645\u0646\u06cc\u062a \u0646\u0635\u0628 \u0634\u062f\u0647 \u0627\u0633\u062a \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# curl -s https:\/\/packages.cloud.google.com\/apt\/doc\/apt-key.gpg | apt-key add &#8211;<\/p>\n<p dir=\"ltr\">OK<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<p>\u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0645\u062e\u0627\u0632\u0646 \u062e\u0648\u062f \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# echo &#8220;deb https:\/\/apt.kubernetes.io\/ kubernetes-xenial main&#8221; | tee \/etc\/apt\/sources.list.d\/kubernetes.list<\/p>\n<p dir=\"ltr\">deb https:\/\/apt.kubernetes.io\/ kubernetes-xenial main<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<h4><a id=\"post-323-_uwc7samivdbe\"><\/a><strong>\u0646\u0635\u0628<\/strong><\/h4>\n<p>&nbsp;<\/p>\n<p>\u0647\u0645 \u0627\u06a9\u0646\u0648\u0646 \u0633\u0631\u0648\u0631 \u0631\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u0627\u067e\u062f\u06cc\u062a \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0645\u062e\u0632\u0646 \u062c\u062f\u06cc\u062f \u0631\u0627 \u0628\u0634\u0646\u0627\u0633\u06cc\u062f \u0648 \u067e\u06a9\u06cc\u062c \u0647\u0627 \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# apt update<\/p>\n<p dir=\"ltr\">root@host:~# apt -y install vim git curl wget kubelet kubeadm kubectl<\/p>\n<p>&nbsp;<\/p>\n<h4><a id=\"post-323-_39u95py7n15k\"><\/a><strong>\u062a\u0639\u06cc\u06cc\u0646 \u062d\u0627\u0644\u062a<\/strong><\/h4>\n<p>&nbsp;<\/p>\n<p>Kubelet \u062f\u0631 \u06cc\u06a9 \u062d\u0644\u0642\u0647 \u0622\u0645\u0627\u062f\u0647 \u0628\u0647 \u06a9\u0627\u0631 \u0627\u0633\u062a \u0648 \u0645\u0646\u062a\u0638\u0631 \u0627\u0642\u062f\u0627\u0645\u0627\u062a \u0628\u0639\u062f\u06cc \u0627\u0633\u062a \u0628\u0647 \u0647\u0645\u06cc\u0646 \u062e\u0627\u0637\u0631 \u0647\u0631\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647 \u06cc\u06a9\u0628\u0627\u0631 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u06cc\u0634\u0648\u062f. \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0622\u0646 \u0631\u0627 \u062f\u0631 \u062d\u0627\u0644\u062a \u0622\u0645\u0627\u062f\u0647 \u0628\u0647 \u06a9\u0627\u0631\u060c \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f :<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# apt-mark hold kubelet kubeadm kubectl<\/p>\n<p dir=\"ltr\">kubelet set on hold.<\/p>\n<p dir=\"ltr\">kubeadm set on hold.<\/p>\n<p dir=\"ltr\">kubectl set on hold.<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_xv8xb7sr85qi\"><\/a><strong>\u062a\u0627\u06cc\u06cc\u062f \u0646\u0635\u0628<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0646\u0633\u062e\u0647 \u0627\u062c\u0632\u0627\u06cc \u0646\u0635\u0628 \u0634\u062f\u0647 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# kubectl version &#8211;client &amp;amp;&amp;amp; kubeadm version<\/p>\n<p dir=\"ltr\">Client Version: version.Info{Major:&#8221;1&#8243;, Minor:&#8221;19&#8243;, GitVersion:&#8221;v1.19.3&#8243;, GitCommit:&#8221;1e11e4a2108024935ecfcb2912226cedeafd99df&#8221;, GitTreeState:&#8221;clean&#8221;, BuildDate:&#8221;2020-10-14T12:50:19Z&#8221;, GoVersion:&#8221;go1.15.2&#8243;, Compiler:&#8221;gc&#8221;, Platform:&#8221;linux\/amd64&#8243;}<\/p>\n<p dir=\"ltr\">kubeadm version: &amp;amp;version.Info{Major:&#8221;1&#8243;, Minor:&#8221;19&#8243;, GitVersion:&#8221;v1.19.3&#8243;, GitCommit:&#8221;1e11e4a2108024935ecfcb2912226cedeafd99df&#8221;, GitTreeState:&#8221;clean&#8221;, BuildDate:&#8221;2020-10-14T12:47:53Z&#8221;, GoVersion:&#8221;go1.15.2&#8243;, Compiler:&#8221;gc&#8221;, Platform:&#8221;linux\/amd64&#8243;}<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_c2c997rj07ag\"><\/a><strong>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0641\u0627\u06cc\u0631\u0648\u0627\u0644<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0628\u0627\u06cc\u062f iptables \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u0648\u062f \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u062f \u0627\u0632 \u0637\u0631\u06cc\u0642 \u067e\u0644 \u0634\u0628\u06a9\u0647 \u062a\u0631\u0627\u0641\u06cc\u06a9 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u062f.\u0627\u06cc\u0646 \u062a\u063a\u06cc\u06cc\u0631 \u0628\u0633\u06cc\u0627\u0631 \u062d\u06cc\u0627\u062a\u06cc \u0627\u0633\u062a \u0632\u06cc\u0631\u0627 \u0648\u0638\u06cc\u0641\u0647 \u0622\u0646 \u0628\u0631\u0631\u0633\u06cc \u062a\u0631\u0627\u0641\u06cc\u06a9 \u0647\u0627\u06cc\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0645\u06cc\u062a\u0648\u0627\u0646\u0646\u062f \u0627\u0632 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0639\u0628\u0648\u0631 \u06a9\u0646\u0646\u062f.<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0628\u0627\u06cc\u062f \u0645\u0627\u0698\u0648\u0644 \u0627\u0641\u0632\u0648\u062f\u0646\u06cc br_netfilter \u0631\u0627 \u0628\u0627\u0631\u06af\u06cc\u0631\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# modprobe overlay<\/p>\n<p dir=\"ltr\">root@host:~# modprobe br_netfilter<\/p>\n<p>&nbsp;<\/p>\n<p>\u062f\u0631 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc sysctl \u0627\u0632 k8s \u060c \u0645\u0642\u062f\u0627\u0631 1 \u0631\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u0645\u06cc\u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u0628\u0647 \u0645\u0639\u0646\u06cc \u0628\u0631\u0631\u0633\u06cc \u062a\u0631\u0627\u0641\u06cc\u06a9 \u0627\u0633\u062a.<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# tee \/etc\/sysctl.d\/kubernetes.conf net.bridge.bridge-nf-call-iptables = 1<\/p>\n<p dir=\"ltr\">&amp;gt; net.ipv4.ip_forward = 1<\/p>\n<p dir=\"ltr\">&amp;gt; EOF<\/p>\n<p dir=\"ltr\">net.bridge.bridge-nf-call-ip6tables = 1<\/p>\n<p dir=\"ltr\">net.bridge.bridge-nf-call-iptables = 1<\/p>\n<p dir=\"ltr\">net.ipv4.ip_forward = 1<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<p>\u0648 \u062f\u0648\u0628\u0627\u0631\u0647 sysctl \u0631\u0627 \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# sysctl &#8211;system<\/p>\n<p dir=\"ltr\">* Applying \/etc\/sysctl.d\/10-console-messages.conf &#8230;<\/p>\n<p dir=\"ltr\">kernel.printk = 4 4 1 7<\/p>\n<p dir=\"ltr\">* Applying \/etc\/sysctl.d\/10-ipv6-privacy.conf &#8230;<\/p>\n<p dir=\"ltr\">net.ipv6.conf.all.use_tempaddr = 2<\/p>\n<p dir=\"ltr\">net.ipv6.conf.default.use_tempaddr = 2<\/p>\n<p dir=\"ltr\">* Applying \/etc\/sysctl.d\/10-kernel-hardening.conf &#8230;<\/p>\n<p dir=\"ltr\">kernel.kptr_restrict = 1<\/p>\n<p dir=\"ltr\">* Applying \/etc\/sysctl.d\/10-link-restrictions.conf &#8230;<\/p>\n<p dir=\"ltr\">fs.protected_hardlinks = 1<\/p>\n<p dir=\"ltr\">fs.protected_symlinks = 1<\/p>\n<p dir=\"ltr\">* Applying \/etc\/sysctl.d\/10-magic-sysrq.conf &#8230;<\/p>\n<p dir=\"ltr\">kernel.sysrq = 176<\/p>\n<p dir=\"ltr\">* Applying \/etc\/sysctl.d\/10-network-security.conf &#8230;<\/p>\n<p dir=\"ltr\">net.ipv4.conf.default.rp_filter = 1<\/p>\n<p dir=\"ltr\">net.ipv4.conf.all.rp_filter = 1<\/p>\n<p dir=\"ltr\">net.ipv4.tcp_syncookies = 1<\/p>\n<p dir=\"ltr\">* Applying \/etc\/sysctl.d\/10-ptrace.conf &#8230;<\/p>\n<p dir=\"ltr\">kernel.yama.ptrace_scope = 1<\/p>\n<p dir=\"ltr\">* Applying \/etc\/sysctl.d\/10-zeropage.conf &#8230;<\/p>\n<p dir=\"ltr\">vm.mmap_min_addr = 65536<\/p>\n<p dir=\"ltr\">* Applying \/usr\/lib\/sysctl.d\/50-default.conf &#8230;<\/p>\n<p dir=\"ltr\">net.ipv4.conf.all.promote_secondaries = 1<\/p>\n<p dir=\"ltr\">net.core.default_qdisc = fq_codel<\/p>\n<p dir=\"ltr\">* Applying \/etc\/sysctl.d\/99-sysctl.conf &#8230;<\/p>\n<p dir=\"ltr\">* Applying \/etc\/sysctl.d\/kubernetes.conf &#8230;<\/p>\n<p dir=\"ltr\">net.bridge.bridge-nf-call-ip6tables = 1<\/p>\n<p dir=\"ltr\">net.bridge.bridge-nf-call-iptables = 1<\/p>\n<p dir=\"ltr\">net.ipv4.ip_forward = 1<\/p>\n<p dir=\"ltr\">* Applying \/etc\/sysctl.conf &#8230;<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/rabsana.ir\/tutorials\/how-to-install-docker-in-windows\/\"><strong>\u0646\u0635\u0628 \u062f\u0627\u06a9\u0631<\/strong><\/a><\/h3>\n<p>&nbsp;<\/p>\n<p>\u062f\u0627\u06a9\u0631 \u06cc\u06a9 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u060c \u0628\u0631\u0627\u06cc \u0645\u062d\u0635\u0648\u0644 \u062f\u0631\u062d\u0627\u0644 \u0627\u062c\u0631\u0627\u0633\u062a \u06a9\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u062c\u0627\u0632\u06cc \u0633\u0627\u0632\u06cc \u0633\u0637\u062d \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644\u060c\u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627 \u0631\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u06cc\u06a9\u0646\u062f. \u0627\u06cc\u0646 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0647\u0627 \u0627\u0632 \u06cc\u06a9\u062f\u06cc\u06af\u0631 \u062c\u062f\u0627 \u0634\u062f\u0647 \u0627\u0646\u062f \u0648 \u0634\u0627\u0645\u0644 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631\u060c\u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 \u0647\u0627 \u0648 \u067e\u0631\u0648\u0646\u062f\u0647 \u0647\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0633\u062a\u0646\u062f.<\/p>\n<p>\u06af\u0627\u0645 \u0628\u0639\u062f\u06cc \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0627\u0641\u0632\u0648\u062f\u0646 \u0645\u062e\u0627\u0632\u0646 \u0628\u0647 \u0645\u062f\u06cc\u0631 \u067e\u06a9\u06cc\u062c \u0647\u0627 \u0648 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0644\u06cc\u062f\u0647\u0627\u0633\u062a. \u0628\u0647 \u06cc\u0627\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0628\u0627\u06cc\u062f \u062a\u0645\u0627\u0645 \u0627\u06cc\u0646 \u0648\u0638\u0627\u06cc\u0641 \u0628\u0631 \u0631\u0648\u06cc \u0647\u0631 \u0633\u0631\u0648\u0631 \u0627\u0646\u062c\u0627\u0645 \u0634\u0648\u062f . \u062f\u0631 \u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u0628\u0627\u0631 \u062f\u06cc\u06af\u0631 \u06cc\u06a9 \u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc \u0633\u0631\u06cc\u0639 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 apt \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# apt update<\/p>\n<p dir=\"ltr\">root@host:~# apt install -y curl gnupg2<\/p>\n<p dir=\"ltr\">root@host:~# curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | apt-key add &#8211;<\/p>\n<p dir=\"ltr\">OK<\/p>\n<p dir=\"ltr\">root@host:~# add-apt-repository &#8220;deb [arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable&#8221;<\/p>\n<p dir=\"ltr\">root@host:~# apt update<\/p>\n<p dir=\"ltr\">root@host:~# apt install -y containerd.io docker-ce<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_yxrpthixb0d6\"><\/a><strong>\u0627\u06cc\u062c\u0627\u062f \u0631\u0627\u0647\u0646\u0645\u0627 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u062f\u0627\u06a9\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u062f \u062f\u0631 \u067e\u0633 \u0632\u0645\u06cc\u0646\u0647 \u0627\u062c\u0631\u0627 \u0634\u0648\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# mkdir -p \/etc\/systemd\/system\/docker.service.d<\/p>\n<p dir=\"ltr\">root@host:~# tee \/etc\/docker\/daemon.json &#8220;exec-opts&#8221;: [&#8220;native.cgroupdriver=systemd&#8221;],<\/p>\n<p dir=\"ltr\">&amp;gt; &#8220;log-driver&#8221;: &#8220;json-file&#8221;,<\/p>\n<p dir=\"ltr\">&amp;gt; &#8220;log-opts&#8221;: {<\/p>\n<p dir=\"ltr\">&amp;gt; &#8220;max-size&#8221;: &#8220;100m&#8221;<\/p>\n<p dir=\"ltr\">&amp;gt; },<\/p>\n<p dir=\"ltr\">&amp;gt; &#8220;storage-driver&#8221;: &#8220;overlay2&#8221;<\/p>\n<p dir=\"ltr\">&amp;gt; }<\/p>\n<p dir=\"ltr\">&amp;gt; EOF<\/p>\n<p dir=\"ltr\">{<\/p>\n<p dir=\"ltr\">&#8220;exec-opts&#8221;: [&#8220;native.cgroupdriver=systemd&#8221;],<\/p>\n<p dir=\"ltr\">&#8220;log-driver&#8221;: &#8220;json-file&#8221;,<\/p>\n<p dir=\"ltr\">&#8220;log-opts&#8221;: {<\/p>\n<p dir=\"ltr\">&#8220;max-size&#8221;: &#8220;100m&#8221;<\/p>\n<p dir=\"ltr\">},<\/p>\n<p dir=\"ltr\">&#8220;storage-driver&#8221;: &#8220;overlay2&#8221;<\/p>\n<p dir=\"ltr\">}<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_atd1fsvalttu\"><\/a><strong>\u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0645\u062c\u062f\u062f \u062f\u0627\u06a9\u0631<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u062d\u0627\u0644\u0627 \u0628\u0627\u06cc\u062f docker deamon \u0631\u0627 \u062f\u0648\u0628\u0627\u0631\u0647 \u0628\u0627\u0631\u06af\u06cc\u0631\u06cc \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u062f (reload and restart) \u0648 \u0633\u067e\u0633 \u0622\u0646 \u0631\u0627 \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# systemctl daemon-reload<\/p>\n<p dir=\"ltr\">root@host:~# systemctl restart docker<\/p>\n<p dir=\"ltr\">root@host:~# systemctl enable docker<\/p>\n<p dir=\"ltr\">Synchronizing state of docker.service with SysV service script with \/lib\/systemd\/systemd-sysv-install.<\/p>\n<p dir=\"ltr\">Executing: \/lib\/systemd\/systemd-sysv-install enable docker<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<h3><a id=\"post-323-_kerurtpl5dhu\"><\/a><strong>\u062a\u0627\u06cc\u06cc\u062f \u0648\u0636\u0639\u06cc\u062a \u062f\u0627\u06a9\u0631<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0628\u0631\u0627\u06cc \u062a\u0627\u06cc\u06cc\u062f \u0641\u0639\u0627\u0644 \u0628\u0648\u062f\u0646 \u0648 \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u0628\u0648\u062f\u0646 \u062f\u0627\u06a9\u0631 \u0645\u0627\u0646\u0646\u062f \u0632\u06cc\u0631 \u0639\u0645\u0644 \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# systemctl status docker<\/p>\n<p dir=\"ltr\">\u25cf docker.service &#8211; Docker Application Container Engine<\/p>\n<p dir=\"ltr\">Loaded: loaded (\/lib\/systemd\/system\/docker.service; enabled; vendor preset:<\/p>\n<p dir=\"ltr\">Active: active (running) since Fri 2020-10-23 19:31:23 +03; 1min 6s ago<\/p>\n<p dir=\"ltr\">Docs: https:\/\/docs.docker.com<\/p>\n<p dir=\"ltr\">Main PID: 16856 (dockerd)<\/p>\n<p dir=\"ltr\">Tasks: 13<\/p>\n<p dir=\"ltr\">CGroup: \/system.slice\/docker.service<\/p>\n<p dir=\"ltr\">\u2514\u250016856 \/usr\/bin\/dockerd -H fd:\/\/ &#8211;containerd=\/run\/containerd\/containerd.sock<\/p>\n<p dir=\"ltr\">Oct 23 19:31:23 host dockerd[16856]: time=&#8221;2020-10-23T19:31:23.570268584+03:00&#8243;<\/p>\n<p dir=\"ltr\">Oct 23 19:31:23 host dockerd[16856]: time=&#8221;2020-10-23T19:31:23.570272311+03:00&#8243;<\/p>\n<p dir=\"ltr\">Oct 23 19:31:23 host dockerd[16856]: time=&#8221;2020-10-23T19:31:23.570275888+03:00&#8243;<\/p>\n<p dir=\"ltr\">Oct 23 19:31:23 host dockerd[16856]: time=&#8221;2020-10-23T19:31:23.570389541+03:00&#8243;<\/p>\n<p dir=\"ltr\">Oct 23 19:31:23 host dockerd[16856]: time=&#8221;2020-10-23T19:31:23.626550911+03:00&#8243;<\/p>\n<p dir=\"ltr\">Oct 23 19:31:23 host dockerd[16856]: time=&#8221;2020-10-23T19:31:23.650814097+03:00&#8243;<\/p>\n<p dir=\"ltr\">Oct 23 19:31:23 host dockerd[16856]: time=&#8221;2020-10-23T19:31:23.661596420+03:00&#8243;<\/p>\n<p dir=\"ltr\">Oct 23 19:31:23 host dockerd[16856]: time=&#8221;2020-10-23T19:31:23.661656042+03:00&#8243;<\/p>\n<p dir=\"ltr\">Oct 23 19:31:23 host dockerd[16856]: time=&#8221;2020-10-23T19:31:23.671493768+03:00&#8243;<\/p>\n<p dir=\"ltr\">Oct 23 19:31:23 host systemd[1]: Started Docker Application Container Engine.<\/p>\n<p dir=\"ltr\">lines 1-19\/19 (END)<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_5hhprutz3hna\"><\/a><strong>\u0627\u06cc\u062c\u0627\u062f Master server<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0628\u062e\u0634 \u0628\u0627\u06cc\u062f \u0645\u0627\u0698\u0648\u0644 br_netfilter \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0628\u0627\u0631\u06af\u06cc\u0631\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# lsmod | grep br_netfilter<\/p>\n<p dir=\"ltr\">br_netfilter 28672 0<\/p>\n<p dir=\"ltr\">bridge 176128 1 br_netfilter<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_gx5z5c641hol\"><\/a><strong>\u0634\u0631\u0648\u0639 Kubelet<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 kubelet \u0631\u0627 \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f \u0648 \u0633\u067e\u0633 \u0633\u0631\u0648\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a K8s \u0645\u0642\u062f\u0627\u0631\u062f\u0647\u06cc \u06a9\u0646\u06cc\u062f \u0645\u0627\u0646\u0646\u062f etcd (\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u062f\u0633\u062a\u0647 \u0627\u06cc\u06cc) \u0648 API server :<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# systemctl enable kubelet<\/p>\n<p dir=\"ltr\">root@host:~# kubeadm config images pull<\/p>\n<p dir=\"ltr\">[config \/ images] Pulled k8s.gcr.io\/kube-apiserver:v1.19.3<\/p>\n<p dir=\"ltr\">[config \/ images] Pulled k8s.gcr.io\/kube-controller-manager:v1.19.3<\/p>\n<p dir=\"ltr\">[config \/ images] Pulled k8s.gcr.io\/kube-scheduler:v1.19.3<\/p>\n<p dir=\"ltr\">[config \/ images] Pulled k8s.gcr.io\/kube-proxy:v1.19.3<\/p>\n<p dir=\"ltr\">[config \/ images] Pulled k8s.gcr.io\/pause:3.2<\/p>\n<p dir=\"ltr\">[config \/ images] Pulled k8s.gcr.io\/etcd:3.4.13-0<\/p>\n<p dir=\"ltr\">[config \/ images] Pulled k8s.gcr.io\/coredns:1.7.0<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_3dia63dbjk2m\"><\/a><strong>\u0627\u06cc\u062c\u0627\u062f Cluster \u06cc\u0627 \u062f\u0633\u062a\u0647<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0627\u0632 \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u062f\u0633\u062a\u0647 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 kubeadm \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f:<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u2013pod-network-cidr \u0628\u0631\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u0628\u06a9\u0647 \u0648 \u062a\u0646\u0638\u06cc\u0645 \u0645\u062d\u062f\u0648\u062f\u0647 CIDR (Classless Inter-Domain Routing)<\/li>\n<\/ul>\n<p>\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f \u06a9\u0647 \u06cc\u06a9 \u0631\u0648\u0634 \u0628\u0631\u0627\u06cc \u0622\u062f\u0631\u0633 \u062f\u0647\u06cc \u0628\u062f\u0648\u0646 \u06a9\u0644\u0627\u0633 \u0627\u0633\u062a.<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u062f\u0633\u062a\u0648\u0631 \u2013control-plane-endpoint \u0645\u062c\u0645\u0648\u0639\u0647 \u0627\u06cc\u06cc \u0627\u0632 \u0646\u0642\u0637\u0647 \u067e\u0627\u06cc\u0627\u0646 \u0647\u0627\u06cc \u0645\u0634\u062a\u0631\u06a9 \u0628\u0631\u0627\u06cc \u062a\u0645\u0627\u0645 \u06af\u0631\u0647 \u0647\u0627\u0633\u062a \u060c \u0628\u0647 \u0634\u0631\u0637\u06cc \u06a9\u0647 \u062f\u0631 \u062f\u0633\u062a\u0647 \u0627\u06cc\u06cc \u0628\u0627 \u0642\u0627\u0628\u0644\u06cc\u062a \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0627\u0644\u0627 \u0628\u0627\u0634\u062f.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# kubeadm init \\<\/p>\n<p dir=\"ltr\">&amp;gt; &#8211;pod-network-cidr=10.0.0.0\/16 \\<\/p>\n<p dir=\"ltr\">&amp;gt; &#8211;control-plane-endpoint=master<\/p>\n<p dir=\"ltr\">W1023 21:29:58.178002 9474 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]\n<p dir=\"ltr\">[init] Using Kubernetes version: v1.19.3<\/p>\n<p dir=\"ltr\">[preflight] Running pre-flight checks<\/p>\n<p dir=\"ltr\">[preflight] Pulling images required for setting up a Kubernetes cluster<\/p>\n<p dir=\"ltr\">[preflight] This might take a minute or two, depending on the speed of your internet connection<\/p>\n<p dir=\"ltr\">[preflight] You can also perform this action in beforehand using &#8216;kubeadm config images pull&#8217;<\/p>\n<p dir=\"ltr\">[certs] Using certificateDir folder &#8220;\/etc\/kubernetes\/pki&#8221;<\/p>\n<p dir=\"ltr\">[certs] Generating &#8220;ca&#8221; certificate and key<\/p>\n<p dir=\"ltr\">[certs] Generating &#8220;apiserver&#8221; certificate and key<\/p>\n<p dir=\"ltr\">[certs] apiserver serving cert is signed for DNS names [host kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local master] and IPs [10.96.0.1 192.168.50.58]\n<p dir=\"ltr\">[certs] Generating &#8220;apiserver-kubelet-client&#8221; certificate and key<\/p>\n<p dir=\"ltr\">[certs] Generating &#8220;front-proxy-ca&#8221; certificate and key<\/p>\n<p dir=\"ltr\">[certs] Generating &#8220;front-proxy-client&#8221; certificate and key<\/p>\n<p dir=\"ltr\">[certs] Generating &#8220;etcd\/ca&#8221; certificate and key<\/p>\n<p dir=\"ltr\">[certs] Generating &#8220;etcd\/server&#8221; certificate and key<\/p>\n<p dir=\"ltr\">[certs] etcd\/server serving cert is signed for DNS names [host localhost] and IPs [192.168.50.58 127.0.0.1 ::1]\n<p dir=\"ltr\">[certs] Generating &#8220;etcd\/peer&#8221; certificate and key<\/p>\n<p dir=\"ltr\">[certs] etcd\/peer serving cert is signed for DNS names [host localhost] and IPs [192.168.50.58 127.0.0.1 ::1]\n<p dir=\"ltr\">[certs] Generating &#8220;etcd\/healthcheck-client&#8221; certificate and key<\/p>\n<p dir=\"ltr\">[certs] Generating &#8220;apiserver-etcd-client&#8221; certificate and key<\/p>\n<p dir=\"ltr\">[certs] Generating &#8220;sa&#8221; key and public key<\/p>\n<p dir=\"ltr\">[kubeconfig] Using kubeconfig folder &#8220;\/etc\/kubernetes&#8221;<\/p>\n<p dir=\"ltr\">[kubeconfig] Writing &#8220;admin.conf&#8221; kubeconfig file<\/p>\n<p dir=\"ltr\">[kubeconfig] Writing &#8220;kubelet.conf&#8221; kubeconfig file<\/p>\n<p dir=\"ltr\">[kubeconfig] Writing &#8220;controller-manager.conf&#8221; kubeconfig file<\/p>\n<p dir=\"ltr\">[kubeconfig] Writing &#8220;scheduler.conf&#8221; kubeconfig file<\/p>\n<p dir=\"ltr\">[kubelet-start] Writing kubelet environment file with flags to file &#8220;\/var\/lib\/kubelet\/kubeadm-flags.env&#8221;<\/p>\n<p dir=\"ltr\">[kubelet-start] Writing kubelet configuration to file &#8220;\/var\/lib\/kubelet\/config.yaml&#8221;<\/p>\n<p dir=\"ltr\">[kubelet-start] Starting the kubelet<\/p>\n<p dir=\"ltr\">[control-plane] Using manifest folder &#8220;\/etc\/kubernetes\/manifests&#8221;<\/p>\n<p dir=\"ltr\">[control-plane] Creating static Pod manifest for &#8220;kube-apiserver&#8221;<\/p>\n<p dir=\"ltr\">[control-plane] Creating static Pod manifest for &#8220;kube-controller-manager&#8221;<\/p>\n<p dir=\"ltr\">[control-plane] Creating static Pod manifest for &#8220;kube-scheduler&#8221;<\/p>\n<p dir=\"ltr\">[etcd] Creating static Pod manifest for local etcd in &#8220;\/etc\/kubernetes\/manifests&#8221;<\/p>\n<p dir=\"ltr\">[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory &#8220;\/etc\/kubernetes\/manifests&#8221;. This can take up to 4m0s<\/p>\n<p dir=\"ltr\">[apiclient] All control plane components are healthy after 13.004870 seconds<\/p>\n<p dir=\"ltr\">[upload-config] Storing the configuration used in ConfigMap &#8220;kubeadm-config&#8221; in the &#8220;kube-system&#8221; Namespace<\/p>\n<p dir=\"ltr\">[kubelet] Creating a ConfigMap &#8220;kubelet-config-1.19&#8221; in namespace kube-system with the configuration for the kubelets in the cluster<\/p>\n<p dir=\"ltr\">[upload-certs] Skipping phase. Please see &#8211;upload-certs<\/p>\n<p dir=\"ltr\">[mark-control-plane] Marking the node host as control-plane by adding the label &#8220;node-role.kubernetes.io\/master=&#8221;&#8221;<\/p>\n<p dir=\"ltr\">[mark-control-plane] Marking the node host as control-plane by adding the taints [node-role.kubernetes.io\/master:NoSchedule]\n<p dir=\"ltr\">[bootstrap-token] Using token: bf6w4x.t6l461giuzqazuy2<\/p>\n<p dir=\"ltr\">[bootstrap-token] Configuring bootstrap tokens, cluster-info ConfigMap, RBAC Roles<\/p>\n<p dir=\"ltr\">[bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to get nodes<\/p>\n<p dir=\"ltr\">[bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to post CSRs in order for nodes to get long term certificate credentials<\/p>\n<p dir=\"ltr\">[bootstrap-token] configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token<\/p>\n<p dir=\"ltr\">[bootstrap-token] configured RBAC rules to allow certificate rotation for all node client certificates in the cluster<\/p>\n<p dir=\"ltr\">[bootstrap-token] Creating the &#8220;cluster-info&#8221; ConfigMap in the &#8220;kube-public&#8221; namespace<\/p>\n<p dir=\"ltr\">[kubelet-finalize] Updating &#8220;\/etc\/kubernetes\/kubelet.conf&#8221; to point to a rotatable kubelet client certificate and key<\/p>\n<p dir=\"ltr\">[addons] Applied essential addon: CoreDNS<\/p>\n<p dir=\"ltr\">[addons] Applied essential addon: kube-proxy<\/p>\n<p dir=\"ltr\">Your Kubernetes control-plane has initialized successfully!<\/p>\n<p>&nbsp;<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 cluster (\u062f\u0633\u062a\u0647) \u0627\u0628\u062a\u062f\u0627 \u0628\u0647 \u0627\u062c\u0627\u0632\u0647 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc kubectl \u060c \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# mkdir -p $HOME\/.kube<\/p>\n<p dir=\"ltr\">root@host:~# cp -i \/etc\/kubernetes\/admin.conf $HOME\/.kube\/config<\/p>\n<p dir=\"ltr\">root@host:~# chown $(id -u):$(id -g) $HOME\/.kube\/config<\/p>\n<p>&nbsp;<\/p>\n<p>\u0627\u0644\u0627\u0646 \u0642\u0627\u062f\u0631 \u0647\u0633\u062a\u06cc\u062f \u06a9\u0647 \u0634\u0628\u06a9\u0647 pod \u0631\u0627 \u0628\u0647 \u062f\u0633\u062a\u0647 \u06af\u0633\u062a\u0631\u0634 \u062f\u0647\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# kubectl apply -f [podnetwork].yaml&#8221; with one of the options listed at: https:\/\/kubernetes.io\/docs\/concepts\/cluster-administration\/addons\/<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_8slaxbiouz5p\"><\/a><strong>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc Kubectl<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0628\u0631\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc kubeclt \u0628\u0627\u06cc\u062f \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# kubectl cluster-info<\/p>\n<p dir=\"ltr\">Kubernetes master is running at https:\/\/master:6443<\/p>\n<p dir=\"ltr\">KubeDNS is running at https:\/\/master:6443\/api\/v1\/namespaces\/kube-system\/services\/kube-dns:dns\/proxy<\/p>\n<p dir=\"ltr\">To further debug and diagnose cluster problems, we use the &#8216;kubectl cluster-info dump command.<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_l6jhjrtqln0y\"><\/a><strong>\u0646\u0635\u0628 calico<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0627\u0641\u0632\u0648\u0646\u0647 calico \u06cc\u06a9 \u067e\u0644\u0627\u06af\u06cc\u0646 \u0634\u0628\u06a9\u0647 \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0645\u06cc\u0632\u0628\u0627\u0646 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627\u0633\u062a \u06a9\u0647 \u0645\u0627\u0634\u06cc\u0646 \u0647\u0627\u06cc \u0645\u062c\u0627\u0632\u06cc \u0628\u0631\u0627\u06cc \u0627\u0647\u062f\u0627\u0641 \u0627\u0645\u0646\u06cc\u062a\u06cc \u060c \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u06a9\u0646\u0646\u062f. \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646 \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# kubectl apply -f https:\/\/docs.projectcalico.org\/manifests\/calico.yaml<\/p>\n<p dir=\"ltr\">configmap\/calico-config created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/bgpconfigurations.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/bgppeers.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/blockaffinities.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/clusterinformations.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/felixconfigurations.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/globalnetworkpolicies.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/globalnetworksets.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/hostendpoints.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/ipamblocks.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/ipamconfigs.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/ipamhandles.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/ippools.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/kubecontrollersconfigurations.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/networkpolicies.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">customresourcedefinition.apiextensions.k8s.io\/networksets.crd.projectcalico.org created<\/p>\n<p dir=\"ltr\">clusterrole.rbac.authorization.k8s.io\/calico-kube-controllers created<\/p>\n<p dir=\"ltr\">clusterrolebinding.rbac.authorization.k8s.io\/calico-kube-controllers created<\/p>\n<p dir=\"ltr\">clusterrole.rbac.authorization.k8s.io\/calico-node created<\/p>\n<p dir=\"ltr\">clusterrolebinding.rbac.authorization.k8s.io\/calico-node created<\/p>\n<p dir=\"ltr\">daemonset.apps\/calico-node created<\/p>\n<p dir=\"ltr\">serviceaccount\/calico-node created<\/p>\n<p dir=\"ltr\">deployment.apps\/calico-kube-controllers created<\/p>\n<p dir=\"ltr\">serviceaccount\/calico-kube-controllers created<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_stkdvbsufutj\"><\/a><strong>\u062a\u0627\u06cc\u06cc\u062f pod \u0647\u0627\u06cc \u062f\u0631\u062d\u0627\u0644 \u0627\u062c\u0631\u0627<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0647 \u0634\u0645\u0627 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u062f\u0647\u062f \u06a9\u0647 \u0648\u0636\u0639\u06cc\u062a \u06a9\u0627\u0631\u06a9\u0631\u062f pods \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# watch kubectl get pods &#8211;all-namespaces<\/p>\n<p dir=\"ltr\">NAMESPACE NAME READY STATUS RESTARTS AGE<\/p>\n<p dir=\"ltr\">kube-system calico-kube-controllers-7d569d95-wfzjp 1\/1 Running 0 2m52s<\/p>\n<p dir=\"ltr\">kube-system calico-node-jd5l6 1\/1 Running 0 2m52s<\/p>\n<p dir=\"ltr\">kube-system coredns-f9fd979d6-hb4bt 1\/1 Running 0 7m43s<\/p>\n<p dir=\"ltr\">kube-system coredns-f9fd979d6-tpbx9 1\/1 Running 0 7m43s<\/p>\n<p dir=\"ltr\">kube-system etcd-host 1\/1 Running 0 7m58s<\/p>\n<p dir=\"ltr\">kube-system kube-apiserver-host 1\/1 Running 0 7m58s<\/p>\n<p dir=\"ltr\">kube-system kube-controller-manager-host 1\/1 Running 0 7m58s<\/p>\n<p dir=\"ltr\">kube-system kube-proxy-gvd5x 1\/1 Running 0 7m43s<\/p>\n<p dir=\"ltr\">kube-system kube-scheduler-host 1\/1 Running 0 7m58s<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_nr3eotwenom\"><\/a><strong>\u062a\u0627\u06cc\u06cc\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0622\u062e\u0631\u06cc\u0646 \u0628\u0631\u0631\u0633\u06cc \u060c \u062a\u0627\u06cc\u06cc\u062f \u0648\u0636\u0639\u06cc\u062a\u060c \u0622\u0645\u0627\u062f\u0647 \u0628\u0648\u062f\u0646 \u0648 \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0628\u0648\u062f\u0646 Master server \u0627\u0633\u062a:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root @ host: ~ # kubectl get nodes -o wide<\/p>\n<p dir=\"ltr\">NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME<\/p>\n<p dir=\"ltr\">host Ready master 46m v1.19.3 192.168.50.58 Ubuntu 18.04.5 LTS 5.4.0-52-generic docker: \/\/19.3.13<\/p>\n<p dir=\"ltr\">root @ host: ~ #<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_9hesm73c5j1i\"><\/a><strong>\u0627\u06cc\u062c\u0627\u062f Workers Nodes<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0628\u0639\u062f \u0627\u0632 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0631\u062f\u0646 Master \u060c \u0628\u0627\u06cc\u062f \u0628\u0627 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 Worker nodes \u0631\u0627 \u0628\u0647 \u062f\u0633\u062a\u0647 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u062a\u0648\u0627\u0646\u062f \u06a9\u0646\u062a\u0631\u0644 \u0648 \u0628\u0627\u0631\u06af\u06cc\u0631\u06cc \u0634\u0648\u062f.<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_x69r7p5hj4tk\"><\/a>\u0627\u0641\u0632\u0648\u062f\u0646 Worker 1 :<\/h3>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root @ host: ~ # kubectl get nodes -o wide<\/p>\n<p dir=\"ltr\">NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME<\/p>\n<p dir=\"ltr\">host Ready master 46m v1.19.3 192.168.50.58 Ubuntu 18.04.5 LTS 5.4.0-52-generic docker: \/\/19.3.13<\/p>\n<p dir=\"ltr\">root @ host: ~ #<\/p>\n<p dir=\"ltr\">\n<h3><a id=\"post-323-_i6esjh7xp8q5\"><\/a>\u0627\u0641\u0632\u0648\u062f\u0646 worker 2 :<\/h3>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host-node2:~# kubeadm join master:6443 &#8211;token bf6w4x.t6l461giuzqazuy2 \\<\/p>\n<p dir=\"ltr\">&amp;gt; &#8211;discovery-token-ca-cert-hash sha256:8d0b3721ad93a24bb0bb518a15ea657d8b9b0876a76c353c445371692b7d064e<\/p>\n<p dir=\"ltr\">[preflight] Running pre-flight checks<\/p>\n<p dir=\"ltr\">[preflight] Reading configuration from the cluster&#8230;<\/p>\n<p dir=\"ltr\">[preflight] FYI: You can look at this config file with &#8216;kubectl -n kube-system get cm kubeadm-config -oyaml&#8217;<\/p>\n<p dir=\"ltr\">[kubelet-start] Writing kubelet configuration to file &#8220;\/var\/lib\/kubelet\/config.yaml&#8221;<\/p>\n<p dir=\"ltr\">[kubelet-start] Writing kubelet environment file with flags to file &#8220;\/var\/lib\/kubelet\/kubeadm-flags.env&#8221;<\/p>\n<p dir=\"ltr\">[kubelet-start] Starting the kubelet<\/p>\n<p dir=\"ltr\">[kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap&#8230;<\/p>\n<p dir=\"ltr\">This node has joined the cluster:<\/p>\n<p dir=\"ltr\">* Certificate signing request was sent to apiserver, and a response was received.<\/p>\n<p dir=\"ltr\">* The Kubelet was informed of the new secure connection details.<\/p>\n<p dir=\"ltr\">Run &#8216;kubectl get nodes&#8217; on the control-plane to see this node join the cluster.<\/p>\n<p dir=\"ltr\">root@host-node2:~#<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_kb5twead0qo9\"><\/a><strong>\u062a\u0627\u06cc\u06cc\u062f \u0639\u0636\u0648 \u0647\u0627\u06cc \u062f\u0633\u062a\u0647<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0628\u0627\u06cc\u062f \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u062f\u0631 Server master \u060c \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0647\u0631 \u062f\u0648 Worker 1 , 2 \u0628\u0647 \u062f\u0633\u062a\u0647 \u0627\u0636\u0627\u0641\u0647 \u0634\u062f\u0647 \u0627\u0646\u062f \u06cc\u0627 \u062e\u06cc\u0631:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# kubectl get nodes<\/p>\n<p dir=\"ltr\">NAME STATUS ROLES AGE VERSION<\/p>\n<p dir=\"ltr\">host Ready master 55m v1.19.3<\/p>\n<p dir=\"ltr\">host-worker-1 Ready 4m48s v1.19.3<\/p>\n<p dir=\"ltr\">host-worker-2 Ready 3m5s v1.19.3<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_pe2aqhxq6ar3\"><\/a><strong>\u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0628\u0631\u0646\u0627\u0645\u0647<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0628\u0631\u0627\u06cc \u06af\u0633\u062a\u0631\u0634 \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u0647 \u062f\u0633\u062a\u0647\u060c \u0628\u0627\u06cc\u062f \u06a9\u0627\u0631\u0627\u06cc\u06cc \u0622\u0646 \u0686\u06a9 \u0634\u0648\u062f \u0648 \u0634\u0631\u0648\u0639 \u0628\u0647 \u062a\u0633\u062a \u0628\u0631\u0646\u0627\u0645\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# kubectl apply -f https:\/\/k8s.io\/examples\/pods\/commands.yaml<\/p>\n<p dir=\"ltr\">pod \/ command-demo created<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<h3><a id=\"post-323-_rrxbneaeqny6\"><\/a><strong>\u0648\u0636\u0639\u06cc\u062a \u062a\u0627\u06cc\u06cc\u062f POD<\/strong><\/h3>\n<p>&nbsp;<\/p>\n<p>\u0628\u0627 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0632\u06cc\u0631 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0648\u0636\u0639\u06cc\u062a pod \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f:<\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\">root@host:~# kubectl get pods<\/p>\n<p dir=\"ltr\">NAME READY STATUS RESTARTS AGE<\/p>\n<p dir=\"ltr\">command-demo 0\/1 Completed 0 30s<\/p>\n<p dir=\"ltr\">root@host:~#<\/p>\n<p>&nbsp;<\/p>\n<p>\u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0641\u0631\u0627\u06cc\u0646\u062f \u0646\u0635\u0628 \u0648 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632 \u0631\u0627 \u062a\u06a9\u0645\u06cc\u0644 \u0645\u06cc\u06a9\u0646\u062f. \u0628\u0631\u0627\u06cc \u0645\u0637\u0627\u0644\u0639\u0647 \u0628\u06cc\u0634\u062a\u0631 \u062f\u0631 \u0645\u0648\u0631\u062f \u062f\u0627\u06a9\u0631 \u0647\u0627 \u0648 \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632 \u0647\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0628\u0644\u0627\u06af \u0647\u0627\u06cc \u0645\u0631\u062a\u0628\u0637 \u0632\u06cc\u0631 \u0646\u06cc\u0632 \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<p><a href=\"https:\/\/rabsana.ir\/tutorials\/docker-container-and-image\/\">Image \u0648 Container \u062f\u0631 \u062f\u0627\u06a9\u0631<\/a><\/p>\n<p class=\"elementor-heading-title elementor-size-large\"><a href=\"https:\/\/rabsana.ir\/tutorials\/how-to-install-docker-in-windows\/\">\u0646\u0635\u0628 \u062f\u0627\u06a9\u0631 \u0628\u0631 \u0631\u0648\u06cc \u0648\u06cc\u0646\u062f\u0648\u0632 \u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0645\u062c\u0627\u0632\u06cc \u0633\u0627\u0632\u06cc<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0642\u0631\u0627\u0631 \u0627\u0633\u062a \u0645\u0641\u0647\u0648\u0645 kubernetes \u0648 kubeadm \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u0645 \u0648 \u0631\u0648\u0634 \u0646\u0635\u0628 \u0622\u0646 \u0631\u0627 \u0628\u06cc\u0627\u0645\u0648\u0632\u0645. &nbsp; Kubernetes (\u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632) \u0686\u06cc\u0633\u062a\u061f &nbsp; Kubernetes \u06cc\u0627 k8s (\u0639\u0646\u0648\u0627\u0646 \u063a\u06cc\u0631 \u0631\u0633\u0645\u06cc \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632) \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 \u0645\u062a\u0646 \u0628\u0627\u0632 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u062e\u0648\u062f\u06a9\u0627\u0631 \u0633\u0627\u0632\u06cc\u060c \u0645\u0642\u06cc\u0627\u0633 \u0633\u0627\u0632\u06cc \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u060c\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f. &nbsp; \u0645\u0632\u0627\u06cc\u0627\u06cc \u06a9\u0648\u0628\u0631 \u0646\u06cc\u062a\u0632\u0647\u0627 : &nbsp; &hellip;<\/p>\n","protected":false},"author":4,"featured_media":1746,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[72],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v18.4 (Yoast SEO v18.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 Kubernetes \u062f\u0631ubuntu 18\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubeadm | \u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0628\u0633\u0627\u0646\u0627<\/title>\n<meta name=\"description\" content=\"Kubernetes (\u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632) \u0686\u06cc\u0633\u062a\u061f \u060c \u0641\u0631\u0627\u06cc\u0646\u062f \u06af\u0627\u0645 \u0628\u0647 \u06af\u0627\u0645 \u0646\u0635\u0628 \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632 \u060c \u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f Master server \u060c \u0645\u0632\u0627\u06cc\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubernete\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 Kubernetes \u062f\u0631ubuntu 18\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubeadm\" \/>\n<meta property=\"og:description\" content=\"Kubernetes (\u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632) \u0686\u06cc\u0633\u062a\u061f \u060c \u0641\u0631\u0627\u06cc\u0646\u062f \u06af\u0627\u0645 \u0628\u0647 \u06af\u0627\u0645 \u0646\u0635\u0628 \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632 \u060c \u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f Master server \u060c \u0645\u0632\u0627\u06cc\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubernete\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0628\u0633\u0627\u0646\u0627\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-03T07:32:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-01T08:00:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/rabsana.ir\/tutorials\/wp-content\/uploads\/2021\/05\/install-kubernetes-by-using-kubeadm.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"340\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0645\u0647\u0633\u0627 \u0645\u062d\u0645\u062f\u06cc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 \u062f\u0642\u06cc\u0642\u0647\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/rabsana.ir\/tutorials\/#\/schema\/person\/4ae2a08dbbdf43f1d2e6fe967155aa4b\",\"name\":\"bagher rezvan\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/rabsana.ir\/tutorials\/#personlogo\",\"inLanguage\":\"fa-IR\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/43c698432e5f8e000d945d3945e15b50?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/43c698432e5f8e000d945d3945e15b50?s=96&d=mm&r=g\",\"caption\":\"bagher rezvan\"},\"logo\":{\"@id\":\"https:\/\/rabsana.ir\/tutorials\/#personlogo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/rabsana.ir\/tutorials\/#website\",\"url\":\"https:\/\/rabsana.ir\/tutorials\/\",\"name\":\"\u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0628\u0633\u0627\u0646\u0627\",\"description\":\"\u0622\u0645\u0648\u0632\u0634 \u0647\u0627\u06cc \u062a\u062e\u0635\u0635\u06cc \u0634\u0631\u06a9\u062a \u0637\u0631\u0627\u062d\u06cc \u0633\u0627\u06cc\u062a \u0631\u0627\u0628\u0633\u0627\u0646\u0627\",\"publisher\":{\"@id\":\"https:\/\/rabsana.ir\/tutorials\/#\/schema\/person\/4ae2a08dbbdf43f1d2e6fe967155aa4b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/rabsana.ir\/tutorials\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#primaryimage\",\"inLanguage\":\"fa-IR\",\"url\":\"https:\/\/rabsana.ir\/tutorials\/wp-content\/uploads\/2021\/05\/install-kubernetes-by-using-kubeadm.jpg\",\"contentUrl\":\"https:\/\/rabsana.ir\/tutorials\/wp-content\/uploads\/2021\/05\/install-kubernetes-by-using-kubeadm.jpg\",\"width\":900,\"height\":340,\"caption\":\"\u0646\u0635\u0628 \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#webpage\",\"url\":\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/\",\"name\":\"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 Kubernetes \u062f\u0631ubuntu 18\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubeadm | \u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0628\u0633\u0627\u0646\u0627\",\"isPartOf\":{\"@id\":\"https:\/\/rabsana.ir\/tutorials\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#primaryimage\"},\"datePublished\":\"2021-05-03T07:32:29+00:00\",\"dateModified\":\"2021-11-01T08:00:13+00:00\",\"description\":\"Kubernetes (\u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632) \u0686\u06cc\u0633\u062a\u061f \u060c \u0641\u0631\u0627\u06cc\u0646\u062f \u06af\u0627\u0645 \u0628\u0647 \u06af\u0627\u0645 \u0646\u0635\u0628 \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632 \u060c \u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f Master server \u060c \u0645\u0632\u0627\u06cc\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubernete\",\"breadcrumb\":{\"@id\":\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u062e\u0627\u0646\u0647\",\"item\":\"https:\/\/rabsana.ir\/tutorials\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 Kubernetes \u062f\u0631ubuntu 18\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubeadm\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#webpage\"},\"author\":{\"@id\":\"https:\/\/rabsana.ir\/tutorials\/#\/schema\/person\/f95a0ac81e3ccf2f7b115822a7a815cd\"},\"headline\":\"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 Kubernetes \u062f\u0631ubuntu 18\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubeadm\",\"datePublished\":\"2021-05-03T07:32:29+00:00\",\"dateModified\":\"2021-11-01T08:00:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#webpage\"},\"wordCount\":2201,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/rabsana.ir\/tutorials\/#\/schema\/person\/4ae2a08dbbdf43f1d2e6fe967155aa4b\"},\"image\":{\"@id\":\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/rabsana.ir\/tutorials\/wp-content\/uploads\/2021\/05\/install-kubernetes-by-using-kubeadm.jpg\",\"articleSection\":[\"\u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0648 \u0645\u0627\u0634\u06cc\u0646 \u0647\u0627\u06cc \u0645\u062c\u0627\u0632\u06cc\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/rabsana.ir\/tutorials\/#\/schema\/person\/f95a0ac81e3ccf2f7b115822a7a815cd\",\"name\":\"\u0645\u0647\u0633\u0627 \u0645\u062d\u0645\u062f\u06cc\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/rabsana.ir\/tutorials\/#personlogo\",\"inLanguage\":\"fa-IR\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0910931d9fb93b2b6b0627aa03c9f1c6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0910931d9fb93b2b6b0627aa03c9f1c6?s=96&d=mm&r=g\",\"caption\":\"\u0645\u0647\u0633\u0627 \u0645\u062d\u0645\u062f\u06cc\"},\"url\":\"https:\/\/rabsana.ir\/tutorials\/author\/mahsa-mhmdi\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 Kubernetes \u062f\u0631ubuntu 18\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubeadm | \u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0628\u0633\u0627\u0646\u0627","description":"Kubernetes (\u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632) \u0686\u06cc\u0633\u062a\u061f \u060c \u0641\u0631\u0627\u06cc\u0646\u062f \u06af\u0627\u0645 \u0628\u0647 \u06af\u0627\u0645 \u0646\u0635\u0628 \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632 \u060c \u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f Master server \u060c \u0645\u0632\u0627\u06cc\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubernete","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/","og_locale":"fa_IR","og_type":"article","og_title":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 Kubernetes \u062f\u0631ubuntu 18\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubeadm","og_description":"Kubernetes (\u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632) \u0686\u06cc\u0633\u062a\u061f \u060c \u0641\u0631\u0627\u06cc\u0646\u062f \u06af\u0627\u0645 \u0628\u0647 \u06af\u0627\u0645 \u0646\u0635\u0628 \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632 \u060c \u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f Master server \u060c \u0645\u0632\u0627\u06cc\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubernete","og_url":"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/","og_site_name":"\u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0628\u0633\u0627\u0646\u0627","article_published_time":"2021-05-03T07:32:29+00:00","article_modified_time":"2021-11-01T08:00:13+00:00","og_image":[{"width":900,"height":340,"url":"https:\/\/rabsana.ir\/tutorials\/wp-content\/uploads\/2021\/05\/install-kubernetes-by-using-kubeadm.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a":"\u0645\u0647\u0633\u0627 \u0645\u062d\u0645\u062f\u06cc","\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646":"12 \u062f\u0642\u06cc\u0642\u0647"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Person","Organization"],"@id":"https:\/\/rabsana.ir\/tutorials\/#\/schema\/person\/4ae2a08dbbdf43f1d2e6fe967155aa4b","name":"bagher rezvan","image":{"@type":"ImageObject","@id":"https:\/\/rabsana.ir\/tutorials\/#personlogo","inLanguage":"fa-IR","url":"https:\/\/secure.gravatar.com\/avatar\/43c698432e5f8e000d945d3945e15b50?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/43c698432e5f8e000d945d3945e15b50?s=96&d=mm&r=g","caption":"bagher rezvan"},"logo":{"@id":"https:\/\/rabsana.ir\/tutorials\/#personlogo"}},{"@type":"WebSite","@id":"https:\/\/rabsana.ir\/tutorials\/#website","url":"https:\/\/rabsana.ir\/tutorials\/","name":"\u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0628\u0633\u0627\u0646\u0627","description":"\u0622\u0645\u0648\u0632\u0634 \u0647\u0627\u06cc \u062a\u062e\u0635\u0635\u06cc \u0634\u0631\u06a9\u062a \u0637\u0631\u0627\u062d\u06cc \u0633\u0627\u06cc\u062a \u0631\u0627\u0628\u0633\u0627\u0646\u0627","publisher":{"@id":"https:\/\/rabsana.ir\/tutorials\/#\/schema\/person\/4ae2a08dbbdf43f1d2e6fe967155aa4b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rabsana.ir\/tutorials\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fa-IR"},{"@type":"ImageObject","@id":"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#primaryimage","inLanguage":"fa-IR","url":"https:\/\/rabsana.ir\/tutorials\/wp-content\/uploads\/2021\/05\/install-kubernetes-by-using-kubeadm.jpg","contentUrl":"https:\/\/rabsana.ir\/tutorials\/wp-content\/uploads\/2021\/05\/install-kubernetes-by-using-kubeadm.jpg","width":900,"height":340,"caption":"\u0646\u0635\u0628 \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632"},{"@type":"WebPage","@id":"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#webpage","url":"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/","name":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 Kubernetes \u062f\u0631ubuntu 18\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubeadm | \u0622\u0645\u0648\u0632\u0634 \u0631\u0627\u0628\u0633\u0627\u0646\u0627","isPartOf":{"@id":"https:\/\/rabsana.ir\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#primaryimage"},"datePublished":"2021-05-03T07:32:29+00:00","dateModified":"2021-11-01T08:00:13+00:00","description":"Kubernetes (\u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632) \u0686\u06cc\u0633\u062a\u061f \u060c \u0641\u0631\u0627\u06cc\u0646\u062f \u06af\u0627\u0645 \u0628\u0647 \u06af\u0627\u0645 \u0646\u0635\u0628 \u06a9\u0648\u0628\u0631\u0646\u06cc\u062a\u0632 \u060c \u0622\u0645\u0648\u0632\u0634 \u0627\u06cc\u062c\u0627\u062f Master server \u060c \u0645\u0632\u0627\u06cc\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubernete","breadcrumb":{"@id":"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#breadcrumb"},"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u062e\u0627\u0646\u0647","item":"https:\/\/rabsana.ir\/tutorials\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 Kubernetes \u062f\u0631ubuntu 18\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubeadm"}]},{"@type":"Article","@id":"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#article","isPartOf":{"@id":"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#webpage"},"author":{"@id":"https:\/\/rabsana.ir\/tutorials\/#\/schema\/person\/f95a0ac81e3ccf2f7b115822a7a815cd"},"headline":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 Kubernetes \u062f\u0631ubuntu 18\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Kubeadm","datePublished":"2021-05-03T07:32:29+00:00","dateModified":"2021-11-01T08:00:13+00:00","mainEntityOfPage":{"@id":"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#webpage"},"wordCount":2201,"commentCount":0,"publisher":{"@id":"https:\/\/rabsana.ir\/tutorials\/#\/schema\/person\/4ae2a08dbbdf43f1d2e6fe967155aa4b"},"image":{"@id":"https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#primaryimage"},"thumbnailUrl":"https:\/\/rabsana.ir\/tutorials\/wp-content\/uploads\/2021\/05\/install-kubernetes-by-using-kubeadm.jpg","articleSection":["\u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0648 \u0645\u0627\u0634\u06cc\u0646 \u0647\u0627\u06cc \u0645\u062c\u0627\u0632\u06cc"],"inLanguage":"fa-IR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/rabsana.ir\/tutorials\/install-kubernetes-by-using-kubeadm-in-ubuntu-18\/#respond"]}]},{"@type":"Person","@id":"https:\/\/rabsana.ir\/tutorials\/#\/schema\/person\/f95a0ac81e3ccf2f7b115822a7a815cd","name":"\u0645\u0647\u0633\u0627 \u0645\u062d\u0645\u062f\u06cc","image":{"@type":"ImageObject","@id":"https:\/\/rabsana.ir\/tutorials\/#personlogo","inLanguage":"fa-IR","url":"https:\/\/secure.gravatar.com\/avatar\/0910931d9fb93b2b6b0627aa03c9f1c6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0910931d9fb93b2b6b0627aa03c9f1c6?s=96&d=mm&r=g","caption":"\u0645\u0647\u0633\u0627 \u0645\u062d\u0645\u062f\u06cc"},"url":"https:\/\/rabsana.ir\/tutorials\/author\/mahsa-mhmdi\/"}]}},"_links":{"self":[{"href":"https:\/\/rabsana.ir\/tutorials\/wp-json\/wp\/v2\/posts\/323"}],"collection":[{"href":"https:\/\/rabsana.ir\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rabsana.ir\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rabsana.ir\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/rabsana.ir\/tutorials\/wp-json\/wp\/v2\/comments?post=323"}],"version-history":[{"count":4,"href":"https:\/\/rabsana.ir\/tutorials\/wp-json\/wp\/v2\/posts\/323\/revisions"}],"predecessor-version":[{"id":3274,"href":"https:\/\/rabsana.ir\/tutorials\/wp-json\/wp\/v2\/posts\/323\/revisions\/3274"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rabsana.ir\/tutorials\/wp-json\/wp\/v2\/media\/1746"}],"wp:attachment":[{"href":"https:\/\/rabsana.ir\/tutorials\/wp-json\/wp\/v2\/media?parent=323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rabsana.ir\/tutorials\/wp-json\/wp\/v2\/categories?post=323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rabsana.ir\/tutorials\/wp-json\/wp\/v2\/tags?post=323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}