{"id":3500,"date":"2024-11-30T11:41:19","date_gmt":"2024-11-30T08:11:19","guid":{"rendered":"https:\/\/hamravesh.com\/blog\/?p=3500"},"modified":"2024-11-30T11:42:03","modified_gmt":"2024-11-30T08:12:03","slug":"deploy-application-kubernetes-step-by-step","status":"publish","type":"post","link":"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632"},"content":{"rendered":"\n<p>\u0627\u06af\u0631 \u062f\u0646\u0628\u0627\u0644 \u0631\u0627\u0647\u0646\u0645\u0627\u06cc\u06cc \u0628\u0631\u0627\u06cc \u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u0648\u0644\u06cc\u0646 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646\u200c\u062a\u0627\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0647\u0633\u062a\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u0628\u06af\u0648\u06cc\u0645 \u06a9\u0647 \u062c\u0627\u06cc \u062f\u0631\u0633\u062a\u06cc \u0622\u0645\u062f\u0647\u200c\u0627\u06cc\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0627\u0632 \u0648\u0628\u0644\u0627\u06af \u0647\u0645\u200c\u0631\u0648\u0634 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u0645\u0631\u062d\u0644\u0647 \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u0634\u06cc\u0648\u0647 \u062f\u06cc\u067e\u0644\u0648\u06cc \u06cc\u0627 \u0627\u0633\u062a\u0642\u0631\u0627\u0631 \u06cc\u06a9 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0631\u0627 \u0627\u0632 \u0627\u0628\u062a\u062f\u0627 \u067e\u06cc\u0634 \u0628\u0628\u0631\u06cc\u0645 \u0648 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u06a9\u0627\u0645\u0644 \u0628\u0627 \u0627\u06cc\u0646 \u0641\u0631\u0627\u06cc\u0646\u062f \u0622\u0634\u0646\u0627 \u0634\u0648\u06cc\u0645. \u0628\u0631\u0627\u06cc \u062f\u0646\u0628\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0646\u06cc\u0627\u0632\u06cc \u0646\u06cc\u0633\u062a \u06a9\u0647 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u0647 \u062d\u0631\u0641\u0647\u200c\u0627\u06cc \u0628\u0627\u0634\u06cc\u062f\u060c \u062a\u0645\u0627\u0645 \u0645\u0648\u0627\u0631\u062f \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0628\u0631\u0627\u0633\u0627\u0633 \u0645\u0648\u0636\u0648\u0639\u0627\u062a \u0627\u0628\u062a\u062f\u0627\u06cc\u06cc \u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u0686\u0631\u0627-\u0628\u0627\u06cc\u062f-\u0627\u0632-\u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632-\u0627\u0633\u062a\u0641\u0627\u062f\u0647-\u06a9\u0646\u06cc\u0645\">\u0686\u0631\u0627 \u0628\u0627\u06cc\u062f \u0627\u0632 \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645\u061f<\/h2>\n\n\n\n<p>\u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 <strong><a href=\"https:\/\/hamravesh.com\/blog\/what-is-orchestration\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u0633\u06cc\u0633\u062a\u0645 \u0627\u0631\u06a9\u0633\u062a\u0631\u06cc\u0634\u0646 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631<\/a><\/strong>\u060c \u0627\u0645\u06a9\u0627\u0646\u0627\u062a \u0628\u0633\u06cc\u0627\u0631\u06cc \u0631\u0627 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u062a\u0648\u0633\u0639\u0647 \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627\u06cc \u0645\u062f\u0631\u0646 \u0631\u0627 \u0633\u0627\u062f\u0647\u200c\u062a\u0631 \u0648 \u06a9\u0627\u0631\u0622\u0645\u062f\u062a\u0631 \u0645\u06cc\u200c\u0633\u0627\u0632\u062f. \u06cc\u06a9\u06cc \u0627\u0632 \u0627\u0635\u0644\u06cc\u200c\u062a\u0631\u06cc\u0646 \u062f\u0644\u0627\u06cc\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632\u060c \u062e\u0648\u062f\u06a9\u0627\u0631\u0633\u0627\u0632\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f\u0647\u0627\u06cc \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0627\u0633\u062a. \u0627\u06cc\u0646 \u0633\u06cc\u0633\u062a\u0645 \u0628\u0647 \u0637\u0648\u0631 \u062e\u0648\u062f\u06a9\u0627\u0631 \u0648\u0638\u0627\u06cc\u0641\u06cc \u0645\u0627\u0646\u0646\u062f \u0645\u0642\u06cc\u0627\u0633\u200c\u062f\u0647\u06cc\u060c \u062a\u0648\u0632\u06cc\u0639 \u062a\u0631\u0627\u0641\u06cc\u06a9\u060c \u0648 \u0646\u0638\u0627\u0631\u062a \u0628\u0631 \u0633\u0644\u0627\u0645\u062a \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627 \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u200c\u062f\u0647\u062f\u060c \u06a9\u0647 \u0628\u0627\u0639\u062b \u06a9\u0627\u0647\u0634 \u0628\u0627\u0631 \u06a9\u0627\u0631\u06cc \u062a\u06cc\u0645\u200c\u0647\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u0648 \u0639\u0645\u0644\u06cc\u0627\u062a \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n\n\n\n<p>\u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0627\u0632 \u0642\u0627\u0628\u0644\u06cc\u062a <strong>\u062e\u0648\u062f \u062a\u0631\u0645\u06cc\u0645\u06cc<\/strong> \u0628\u0631\u062e\u0648\u0631\u062f\u0627\u0631 \u0627\u0633\u062a\u060c \u0628\u062f\u06cc\u0646 \u0645\u0639\u0646\u0627 \u06a9\u0647 \u062f\u0631 \u0635\u0648\u0631\u062a \u0628\u0631\u0648\u0632 \u062e\u0637\u0627 \u062f\u0631 \u06cc\u06a9\u06cc \u0627\u0632 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627 \u06cc\u0627 \u0646\u0648\u062f\u0647\u0627\u060c \u0628\u0647 \u0637\u0648\u0631 \u062e\u0648\u062f\u06a9\u0627\u0631 \u062a\u0644\u0627\u0634 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0622\u0646 \u0631\u0627 \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u06a9\u0646\u062f. \u0627\u06cc\u0646 \u0648\u06cc\u0698\u06af\u06cc \u0628\u0647 \u062a\u0636\u0645\u06cc\u0646 \u0628\u0627\u0644\u0627\u062a\u0631\u06cc\u0646 \u0633\u0637\u062d \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0628\u0648\u062f\u0646 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627 \u06a9\u0645\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646\u060c \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0627\u0632 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627 \u062f\u0631 \u0645\u062d\u06cc\u0637\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0627\u0639\u0645 \u0627\u0632 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0645\u062d\u0644\u06cc\u060c \u0645\u0631\u0627\u06a9\u0632 \u062f\u0627\u062f\u0647 \u062e\u0635\u0648\u0635\u06cc\u060c \u0648 \u0627\u0628\u0631\u0647\u0627\u06cc \u0639\u0645\u0648\u0645\u06cc \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u06a9\u0647 \u0627\u06cc\u0646 \u0627\u0645\u0631 \u0628\u0627\u0639\u062b \u0627\u0641\u0632\u0627\u06cc\u0634 \u0627\u0646\u0639\u0637\u0627\u0641\u200c\u067e\u0630\u06cc\u0631\u06cc \u062f\u0631 \u0627\u0646\u062a\u062e\u0627\u0628 \u0632\u06cc\u0631\u0633\u0627\u062e\u062a \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n\n\n\n<p>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632\u060c \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u0646\u062f \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627\u06cc \u062e\u0648\u062f \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a <strong><a href=\"https:\/\/hamravesh.com\/blog\/microservice-monitoring\/\">\u0645\u06cc\u06a9\u0631\u0648\u0633\u0631\u0648\u06cc\u0633<\/a><\/strong> \u067e\u06cc\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u06a9\u0646\u0646\u062f\u060c \u06a9\u0647 \u0627\u06cc\u0646 \u0631\u0648\u06cc\u06a9\u0631\u062f \u0628\u0647 \u0628\u0647\u0628\u0648\u062f \u0642\u0627\u0628\u0644\u06cc\u062a \u0645\u0642\u06cc\u0627\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc \u0648 \u0646\u06af\u0647\u062f\u0627\u0631\u06cc \u06a9\u0645\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0647 \u0639\u0644\u0627\u0648\u0647\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0641\u0627\u06cc\u0644\u200c\u0647\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0642\u0627\u0628\u0644 \u062a\u0639\u0631\u06cc\u0641\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0645\u062d\u06cc\u0637\u200c\u0647\u0627\u06cc \u062a\u0648\u0633\u0639\u0647\u060c \u0622\u0632\u0645\u0627\u06cc\u0634 \u0648 \u062a\u0648\u0644\u06cc\u062f \u0631\u0627 \u0647\u0645\u0633\u0627\u0646\u200c\u0633\u0627\u0632\u06cc \u06a9\u0631\u062f \u0648 \u0627\u0632 \u0628\u0631\u0648\u0632 \u0645\u0634\u06a9\u0644\u0627\u062a \u0646\u0627\u0633\u0627\u0632\u06af\u0627\u0631\u06cc \u0645\u062d\u06cc\u0637\u06cc \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0646\u0645\u0648\u062f.<\/p>\n\n\n\n<p>\u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u06cc\u06a9\u067e\u0627\u0631\u0686\u0647\u200c\u0633\u0627\u0632\u06cc \u0628\u0627 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 CI\/CD (\u062a\u0648\u0633\u0639\u0647 \u0648 \u0627\u0633\u062a\u0642\u0631\u0627\u0631 \u067e\u06cc\u0648\u0633\u062a\u0647) \u0631\u0627 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u06a9\u0647 \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0628\u0647 \u062a\u0633\u0631\u06cc\u0639 \u0641\u0631\u0622\u06cc\u0646\u062f\u0647\u0627\u06cc \u062a\u0648\u0633\u0639\u0647 \u0648 \u0627\u0646\u062a\u0634\u0627\u0631 \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631 \u0645\u0646\u062c\u0631 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0628\u0627 \u062a\u0648\u062c\u0647 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0632\u0627\u06cc\u0627\u060c \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u06cc\u06a9 \u0627\u0628\u0632\u0627\u0631 \u062d\u06cc\u0627\u062a\u06cc \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0648 \u062a\u06cc\u0645\u200c\u0647\u0627\u06cc \u0639\u0645\u0644\u06cc\u0627\u062a \u0641\u0646\u0627\u0648\u0631\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u0628\u0647\u0628\u0648\u062f \u06a9\u0627\u0631\u0627\u06cc\u06cc\u060c \u06a9\u0627\u0647\u0634 \u0647\u0632\u06cc\u0646\u0647\u200c\u0647\u0627 \u0648 \u0627\u0641\u0632\u0627\u06cc\u0634 \u0642\u0627\u0628\u0644\u06cc\u062a \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627\u06cc \u062e\u0648\u062f \u0647\u0633\u062a\u0646\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u067e\u06cc\u0634-\u0646\u06cc\u0627\u0632\u0647\u0627\"> \u067e\u06cc\u0634\u200c\u0646\u06cc\u0627\u0632\u0647\u0627<\/h2>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0648 \u0627\u0633\u062a\u0642\u0631\u0627\u0631 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a \u06a9\u0647 \u0627\u0628\u062a\u062f\u0627 \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0631\u0627 \u0631\u0648\u06cc Master Node \u0648 Worker Node \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646\u200c\u06a9\u0627\u0631 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0631\u0627\u0633\u0627\u0633 \u0642\u0637\u0639\u0647 \u06a9\u062f\u0647\u0627\u06cc \u0632\u06cc\u0631 \u067e\u06cc\u0634 \u0628\u0631\u0648\u06cc\u062f. \u0647\u0631 \u0628\u062e\u0634 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u06a9\u0627\u0645\u0646\u062a \u0627\u0632 \u0647\u0645\u062f\u06cc\u06af\u0631 \u062c\u062f\u0627 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-------------------------------------- Both Master &amp; Worker Node ---------------------------------------\nsudo su\napt update -y\napt install docker.io -y\n\nsystemctl start docker\nsystemctl enable docker\n\ncurl -fsSL \"https:\/\/packages.cloud.google.com\/apt\/doc\/apt-key.gpg\" | sudo gpg --dearmor -o \/etc\/apt\/trusted.gpg.d\/kubernetes-archive-keyring.gpg\necho 'deb https:\/\/packages.cloud.google.com\/apt kubernetes-xenial main' &gt; \/etc\/apt\/sources.list.d\/kubernetes.list\n\napt update -y\napt install kubeadm=1.20.0-00 kubectl=1.20.0-00 kubelet=1.20.0-00 -y\n\n# To connect with cluster execute above commands on master node and worker node respectively\n--------------------------------------------- Master Node -------------------------------------------------- \nsudo su\nkubeadm init\n\n# To start using your cluster, you need to run the following as a regular user:\n  mkdir -p $HOME\/.kube\n  sudo cp -i \/etc\/kubernetes\/admin.conf $HOME\/.kube\/config\n  sudo chown $(id -u):$(id -g) $HOME\/.kube\/config\n\n# Alternatively, if you are the root user, you can run:\n  export KUBECONFIG=\/etc\/kubernetes\/admin.conf\n  \nkubectl apply -f https:\/\/github.com\/weaveworks\/weave\/releases\/download\/v2.8.1\/weave-daemonset-k8s.yaml\n\nkubeadm token create --print-join-command\n  \n\n------------------------------------------- Worker Node ------------------------------------------------ \nsudo su\nkubeadm reset pre-flight checks\n-----&gt; Paste the Join command on worker node and append `--v=5` at end\n\n#To verify cluster connection  \n---------------------------------------on Master Node-----------------------------------------\n\nkubectl get nodes \n\n\n# worker\n# kubeadm join 172.31.84.66:6443 --token n4tfb4.grmew1s1unug0get     --discovery-token-ca-cert-hash sha256:c3fda2eaf5960bed4320d8175dc6a73b1556795b1b7f5aadc07642ed85c51069 --v=5\n# kubeadm reset pre-flight checks\n# kubeadm token create --print-join-command\n# kubectl label node ip-172-31-20-246 node-role.kubernetes.io\/worker=worker\n# kubectl label nodes ip-172-31-92-99 kubernetes.io\/role=worker\n# kubectl config set-context $(kubectl config current-context) --namespace=dev<\/code><\/pre>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u06a9\u0648\u062a\u0627\u0647 \u06a9\u0631\u062f\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0645\u0627 \u0627\u0632 \u06cc\u06a9 \u067e\u0631\u0648\u0698\u0647 \u0622\u0645\u0627\u062f\u0647 \u062c\u0646\u06af\u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u062f\u0627\u06a9\u0631\u0627\u06cc\u0632 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u200c\u06a9\u0627\u0631 \u0627\u0632 <a href=\"https:\/\/github.com\/LondheShubham153\/django-todo-cicd\">\u0627\u06cc\u0646 \u0645\u062e\u0632\u0646<\/a>\u060c \u067e\u0631\u0648\u0698\u0647 \u0631\u0627 Clone \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645. <\/p>\n\n\n\n<p>\u0628\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 dockerfile \u0627\u06cc\u0646 \u0645\u062e\u0632\u0646 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 \u06a9\u062f\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u0645:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FROM python:3\n\nWORKDIR \/data\n\nRUN pip install django==3.2\n\nCOPY . .\n\nRUN python manage.py migrate\n\nEXPOSE 8000\n\nCMD &#91;\"python\",\"manage.py\",\"runserver\",\"0.0.0.0:8000\"]<\/code><\/pre>\n\n\n\n<p>\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f \u067e\u0631\u0648\u0698\u0647 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0628\u0627 \u0632\u0628\u0627\u0646 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u0648 \u0628\u0631\u0627\u0633\u0627\u0633 \u062c\u0646\u06af\u0648 \u0646\u0633\u062e\u0647 \u06f3.\u06f2 \u06a9\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f. <\/p>\n\n\n\n<p>\u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f\u06cc \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0627\u06a9\u0631\u0641\u0627\u06cc\u0644 \u067e\u0631\u0648\u0698\u0647 \u0631\u0627 Build \u06a9\u0646\u06cc\u0645. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u200c \u06a9\u0627\u0631 \u0648\u0627\u0631\u062f \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u067e\u0631\u0648\u0698\u0647 \u0634\u062f\u0647 \u0648 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker build . -t django-todo:latest<\/code><\/pre>\n\n\n\n<p>\u062d\u0627\u0644 \u0628\u0631\u0627\u06cc \u0645\u0637\u0645\u0626\u0646 \u0634\u062f\u0646 \u0627\u0632 \u0645\u0648\u0641\u0642\u06cc\u062a\u200c\u0622\u0645\u06cc\u0632 \u0628\u0648\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 \u0628\u0627\u0644\u0627\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0633\u062a\u0648\u0631 docker image \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0644\u06cc\u0633\u062a\u06cc \u0627\u0632 image\u0647\u0627 \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f \u0627\u06cc\u0645\u06cc\u062c django-todo \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 \u0647\u0645\u0647 \u0686\u06cc\u0632 \u0628\u0647 \u062f\u0631\u0633\u062a\u06cc \u067e\u06cc\u0634 \u0631\u0641\u062a\u0647 \u0627\u0633\u062a. <\/p>\n\n\n\n<p>\u0628\u0639\u062f \u0627\u0632 \u0627\u0646\u062c\u0627\u0645 \u062a\u0645\u0627\u0645 \u0645\u0648\u0627\u0631\u062f \u0628\u0627\u0644\u0627 \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a \u06a9\u0647 \u0627\u06cc\u0645\u06cc\u062c \u0645\u0631\u0628\u0648\u0637\u0647 \u0631\u0627 \u0628\u0647 \u0631\u062c\u06cc\u0633\u062a\u0631\u06cc push \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u200c \u06a9\u0627\u0631 \u0627\u0628\u062a\u062f\u0627 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 <code>docker login<\/code> \u0641\u0631\u0627\u06cc\u0646\u062f \u0648\u0631\u0648\u062f \u0628\u0647 \u062f\u0627\u06a9\u0631\u200c\u0647\u0627\u0628 \u0631\u0627 \u0637\u06cc \u06a9\u0646\u06cc\u062f. \u0628\u0627 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0627\u0632 \u0634\u0645\u0627 \u0646\u0627\u0645\u200c\u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 \u0631\u0645\u0632\u0639\u0628\u0648\u0631 \u067e\u0631\u0633\u06cc\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"211\" src=\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/08\/docker-login.webp\" alt=\"\u0648\u0631\u0648\u062f \u0628\u0647 \u062f\u0627\u06a9\u0631 \u0647\u0627\u0628\" class=\"wp-image-3507\" srcset=\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/08\/docker-login.webp 850w, https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/08\/docker-login-300x74.webp 300w, https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/08\/docker-login-768x191.webp 768w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/figure>\n\n\n\n<p>\u0628\u0639\u062f \u0627\u0632 \u0648\u0631\u0648\u062f \u0645\u0648\u0641\u0642\u06cc\u062a\u200c\u0622\u0645\u06cc\u0632\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 <code>docker push image-name<\/code>\u060c \u0627\u06cc\u0645\u06cc\u062c \u062e\u0648\u062f \u0631\u0627 \u0628\u0647 \u0631\u062c\u06cc\u0633\u062a\u0631\u06cc \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0622\u0634\u0646\u0627\u06cc\u06cc \u0628\u06cc\u0634\u062a\u0631 \u0628\u0627 \u0645\u0641\u0647\u0648\u0645 \u0631\u062c\u06cc\u0633\u062a\u0631\u06cc \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u0637\u0644\u0628 \u00ab<strong><a href=\"https:\/\/hamravesh.com\/blog\/what-is-container-registry\/\">\u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0631\u062c\u06cc\u0633\u062a\u0631\u06cc (container registry) \u0686\u06cc\u0633\u062a\u061f<\/a><\/strong>\u00bb \u0631\u0627 \u0645\u0637\u0627\u0644\u0639\u0647 \u06a9\u0646\u06cc\u062f. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u067e\u06cc\u0627\u062f\u0647-\u0633\u0627\u0632\u06cc-\u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632\">\u067e\u06cc\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632<\/h2>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0642\u0627\u0628\u0644\u06cc\u062a \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632\u060c \u062f\u0648 \u0631\u0627\u0647\u06a9\u0627\u0631 \u06a9\u0644\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0631\u0627\u0628\u0637 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0645\u062a\u0646\u06cc<\/li>\n\n\n\n<li>\u062a\u0639\u0631\u06cc\u0641 \u0641\u0627\u06cc\u0644 YAML<\/li>\n<\/ol>\n\n\n\n<p>\u062f\u0631 \u0631\u0648\u0634 \u0627\u0648\u0644 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <strong><a href=\"https:\/\/hamravesh.com\/blog\/what-is-kubectl\/\">\u0627\u0628\u0632\u0627\u0631 kubectl<\/a><\/strong> \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0631\u0642\u0631\u0627\u0631 \u06a9\u0631\u062f\u0646 \u0628\u0627 \u06a9\u0644\u0627\u0633\u062a\u0631 \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0631\u0627 \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u0627\u0634\u062a. \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631 \u0634\u0627\u0645\u0644 \u0645\u062c\u0645\u0648\u0639\u0647\u200c\u0627\u06cc \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n\n\n\n<p>\u062f\u0631 \u0631\u0648\u0634 \u062f\u0648\u0645\u060c \u0645\u0627 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 YAML \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645 \u0648 \u062a\u0645\u0627\u0645 \u0648\u06cc\u0698\u06af\u06cc\u200c\u0647\u0627 \u0648 \u0648\u0636\u0639\u06cc\u062a\u200c\u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u062f\u0631 \u0622\u0646 \u0630\u06a9\u0631 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f. \u067e\u0627\u062f\u200c\u0647\u0627\u060c \u062f\u06cc\u067e\u0644\u0648\u06cc\u0645\u0646\u062a\u200c\u0647\u0627\u060c ConfigMap \u0648&#8230; \u0631\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u062f\u0631 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f. <\/p>\n\n\n\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0645\u0627 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0627\u0632 \u0631\u0648\u0634 \u062f\u0648\u0645\u060c \u06cc\u0639\u0646\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0641\u0627\u06cc\u0644 YAML \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-\u062a\u0639\u0631\u06cc\u0641-\u067e\u0627\u062f\">\u062a\u0639\u0631\u06cc\u0641 \u067e\u0627\u062f<\/h3>\n\n\n\n<p>\u062f\u0631 \u0642\u062f\u0645 \u0627\u0648\u0644 \u0641\u0627\u06cc\u0644\u06cc \u0628\u0627 \u0646\u0627\u0645 pod.yml \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645 \u0648 \u0642\u0637\u0639\u0647 \u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0622\u0646 \u0642\u0631\u0627\u0631 \u0645\u06cc\u200c\u062f\u0647\u06cc\u0645:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: v1\nkind: Pod\nmetadata:\n  name: django-app\nspec:\n  containers:\n  - name: django-app\n    image:django-todo:latest\n    ports: \n    - containerPort: 8000<\/code><\/pre>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0622\u0634\u0646\u0627\u06cc\u06cc \u0628\u0627 \u0642\u0637\u0639\u0647 \u06a9\u062f \u0628\u0627\u0644\u0627 \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a \u06a9\u0647 \u0647\u0631 \u0628\u062e\u0634 \u0631\u0627 \u062c\u062f\u0627\u06af\u0627\u0646\u0647 \u062a\u0648\u0636\u06cc\u062d \u062f\u0647\u06cc\u0645:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>apiVersion<\/code>: \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0646 \u0646\u0633\u062e\u0647 Kubernetes API \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc\u200c\u06af\u06cc\u0631\u062f.<\/li>\n\n\n\n<li><code>kind<\/code>: \u062f\u0631 \u0627\u06cc\u0646 \u0628\u062e\u0634 \u00ab\u0646\u0648\u0639\u00bb  \u0645\u0646\u0627\u0628\u0639 \u06a9\u0644\u0627\u0633\u062a\u0631 \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u0634\u0648\u062f \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644 pod \u0627\u0633\u062a.<\/li>\n\n\n\n<li><code>metadata<\/code>: \u0627\u06cc\u0646 \u0641\u06cc\u0644\u062f \u0634\u0627\u0645\u0644 \u0645\u062a\u0627\u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0647\u0631 \u067e\u0627\u062f \u0645\u06cc\u200c\u0634\u0648\u062f.<\/li>\n\n\n\n<li><code>spec<\/code>: \u062a\u0639\u0631\u06cc\u0641 \u0648\u0636\u0639\u06cc\u062a \u0645\u0637\u0644\u0648\u0628 \u067e\u0627\u062f.<\/li>\n\n\n\n<li><code>containers<\/code>: \u0622\u0631\u0627\u06cc\u0647\u200c\u0627\u06cc \u0627\u0632 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627 \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u067e\u0627\u062f \u0628\u0627\u06cc\u062f \u0627\u062c\u0631\u0627 \u0634\u0648\u0646\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644 \u0645\u0627 \u062a\u0646\u0647\u0627 \u06cc\u06a9 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u062f\u0627\u0631\u06cc\u0645.<\/li>\n\n\n\n<li><code>name<\/code>: \u0646\u0627\u0645 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0645\u0648\u0631\u062f \u0646\u0638\u0631.<\/li>\n\n\n\n<li><code>image<\/code>: \u0646\u0627\u0645 \u0648 \u0646\u0633\u062e\u0647 \u0627\u06cc\u0645\u06cc\u062c \u0645\u0648\u0631\u062f \u0646\u0638\u0631. <\/li>\n\n\n\n<li><code>ports<\/code>: \u062a\u0639\u06cc\u06cc\u0646 \u067e\u0648\u0631\u062a\u200c\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 expose \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<\/ul>\n\n\n\n<p>\u062d\u0627\u0644 \u0628\u0631\u0627\u06cc \u0627\u0639\u0645\u0627\u0644 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0631\u0648\u06cc \u06a9\u0644\u0627\u0633\u062a\u0631 \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0648 \u0627\u0646\u062c\u0627\u0645 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc\u200c\u0647\u0627 \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a \u06a9\u0647 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl apply -f pod.yml<\/code><\/pre>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0645\u0637\u0645\u0626\u0646 \u0634\u062f\u0646 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u067e\u0627\u062f \u062f\u0631 \u062f\u0631\u0648\u0646 namespace\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get pods -n=my-django-app<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"469\" src=\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/pod-creating-test.webp\" alt=\"\u0648\u062c\u0648\u062f namespace \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u067e\u0631\u0648\u0698\u0647\" class=\"wp-image-4045\" srcset=\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/pod-creating-test.webp 720w, https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/pod-creating-test-300x195.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u062d\u0630\u0641 \u06a9\u0631\u062f\u0646 \u067e\u0627\u062f \u0645\u0631\u0628\u0648\u0637\u0647 \u0646\u06cc\u0632 \u06a9\u0627\u0641\u06cc\u200c\u0633\u062a \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl delete -f pod.yml<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u062f\u06cc\u067e\u0644\u0648\u06cc\u0645\u0646\u062a\">\u062f\u06cc\u067e\u0644\u0648\u06cc\u0645\u0646\u062a<\/h2>\n\n\n\n<p>\u062f\u0631 Kubernetes\u060c <strong>\u062f\u06cc\u067e\u0644\u0648\u06cc\u0645\u0646\u062a<\/strong> \u0627\u0628\u0632\u0627\u0631\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627\u06cc \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u06cc\u200c\u0634\u062f\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f. \u062f\u06cc\u067e\u0644\u0648\u06cc\u0645\u0646\u062a \u0628\u0647 \u0645\u0627 \u06a9\u0645\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f \u062a\u0627 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0645\u0642\u06cc\u0627\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc\u060c \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0648 \u067e\u0627\u06cc\u062f\u0627\u0631\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0627 \u0633\u0627\u062f\u0647\u200c\u062a\u0631 \u067e\u06cc\u0634 \u0628\u0628\u0631\u06cc\u0645. <br><br>\u0628\u0631\u0627\u06cc \u0622\u0634\u0646\u0627\u06cc\u06cc \u0628\u06cc\u0634\u062a\u0631 \u0628\u0627 \u062f\u06cc\u067e\u0644\u0648\u06cc\u0645\u0646\u062a \u0648 \u0646\u0642\u0634 \u0622\u0646 \u062f\u0631 \u0645\u0639\u0645\u0627\u0631\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0645\u0637\u0644\u0628 \u00ab<strong><a href=\"https:\/\/hamravesh.com\/blog\/kubernetes-architecture\/#:~:text=%D8%A7%D8%B1%D8%AA%D8%A8%D8%A7%D8%B7%20%D8%A8%D8%B1%D9%82%D8%B1%D8%A7%D8%B1%20%DA%A9%D9%86%D9%86%D8%AF.-,3.%20%D8%AF%DB%8C%D9%BE%D9%84%D9%88%DB%8C%D9%85%D9%86%D8%AA%20(Deployment),-%D8%AF%DB%8C%D9%BE%D9%84%D9%88%DB%8C%D9%85%D9%86%D8%AA%E2%80%8C%D9%87%D8%A7%20%DB%8C%DA%A9%DB%8C%20%D8%A7%D8%B2\">\u0622\u0634\u0646\u0627\u06cc\u06cc \u0628\u0627 \u0645\u0639\u0645\u0627\u0631\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632<\/a><\/strong>\u00bb \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-\u0627\u06cc\u062c\u0627\u062f-\u0641\u0627\u06cc\u0644-\u062f\u06cc\u067e\u0644\u0648\u06cc\u0645\u0646\u062a\">\u0627\u06cc\u062c\u0627\u062f \u0641\u0627\u06cc\u0644 \u062f\u06cc\u067e\u0644\u0648\u06cc\u0645\u0646\u062a<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: apps\/v1\nkind: Deployment\nmetadata:\n  name: my-django-app-deployment\n  labels:\n    app: django-app\n  namespace: my-django-app\nspec:\n  replicas: 3\n  selector:\n    matchLabels:\n      app: django-app\n  template:\n    metadata:\n      labels:\n        app: django-app\n    spec:\n      containers:\n      - name: django-app-container\n        image: trajendra\/django-todo:latest\n        ports:\n        - containerPort: 8000<\/code><\/pre>\n\n\n\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0627\u0646\u06cc\u0641\u0633\u062a \u0645\u0627 \u0645\u0648\u0627\u0631\u062f \u0632\u06cc\u0631 \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u0645:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>kind<\/strong>: \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0646\u0648\u0639 \u0645\u0646\u0628\u0639 <code>Deployment<\/code> \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u067e\u0627\u062f\u0647\u0627 (Pods) \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/li>\n\n\n\n<li><strong>selector<\/strong>: \u0627\u06cc\u0646 \u0628\u062e\u0634 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u06a9\u062f\u0627\u0645 \u067e\u0627\u062f\u0647\u0627 \u0628\u0627\u06cc\u062f \u0628\u0647 \u0627\u06cc\u0646 Deployment \u0645\u0631\u062a\u0628\u0637 \u0634\u0648\u0646\u062f.\n<ul class=\"wp-block-list\">\n<li><strong>matchLabels<\/strong>: \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u0647\u0631 \u067e\u0627\u062f\u06cc \u06a9\u0647 \u0644\u06cc\u0628\u0644 <code>app: django-app<\/code> \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f.<\/li>\n\n\n\n<li><strong>replicas<\/strong>: \u062a\u0639\u062f\u0627\u062f \u06a9\u067e\u06cc\u200c\u0647\u0627\u06cc \u067e\u0627\u062f (Pod) \u0631\u0627 \u06a9\u0647 \u0628\u0627\u06cc\u062f \u0627\u06cc\u062c\u0627\u062f \u0634\u0648\u062f\u060c \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0627\u0646\u06cc\u0641\u0633\u062a \u0645\u0627 \u06f3 \u0639\u062f\u062f \u0631\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u0645.<\/li>\n\n\n\n<li><strong>template<\/strong>: \u0627\u0644\u06af\u0648\u06cc \u0627\u06cc\u062c\u0627\u062f \u067e\u0627\u062f\u0647\u0627 \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>spec<\/strong>: \u0628\u062e\u0634 <code>spec<\/code> \u0645\u0634\u062e\u0635\u0627\u062a \u0648 \u0631\u0641\u062a\u0627\u0631 Deployment \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<\/ul>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0627\u0639\u0645\u0627\u0644 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0631\u0648\u06cc \u06a9\u0644\u0627\u0633\u062a\u0631 \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0648 \u0627\u0646\u062c\u0627\u0645 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc\u200c\u0647\u0627 \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a \u06a9\u0647 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl apply -f deployment.yml<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-scale-\u06cc\u0627-\u0645\u0642\u06cc\u0627\u0633-\u062f\u0647\u06cc\">Scale \u06cc\u0627 \u0645\u0642\u06cc\u0627\u0633\u200c\u062f\u0647\u06cc<\/h2>\n\n\n\n<p>\u062f\u0631 \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632\u060c <strong>\u0645\u0641\u0647\u0648\u0645 \u0645\u0642\u06cc\u0627\u0633\u200c\u062f\u0647\u06cc (Scale)<\/strong> \u0628\u0647 \u0641\u0631\u0622\u06cc\u0646\u062f \u062a\u063a\u06cc\u06cc\u0631 \u062a\u0639\u062f\u0627\u062f <strong>\u067e\u0627\u062f\u0647\u0627 (\u06cc\u0627 replica\u0647\u0627)<\/strong> \u0645\u0631\u0628\u0648\u0637 \u0645\u06cc\u200c\u0634\u0648\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f. \u0627\u06cc\u0646 \u0639\u0645\u0644 \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u0628\u0627\u0631 \u06a9\u0627\u0631\u06cc \u0648 \u0628\u0647\u06cc\u0646\u0647\u200c\u0633\u0627\u0632\u06cc \u0645\u0646\u0627\u0628\u0639 \u0633\u06cc\u0633\u062a\u0645 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u200c\u0634\u0648\u062f. <\/p>\n\n\n\n<p>\u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u0645 \u06f1\u06f0 \u0631\u067e\u0644\u06cc\u06a9\u0627 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u06a9\u0646\u0648\u0646\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u0645\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 kubectl\u060c \u0628\u0647 \u0634\u06a9\u0644 \u0632\u06cc\u0631 \u0639\u0645\u0644 \u06a9\u0646\u06cc\u0645. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl scale deployment my-django-app-deployment --replicas=10 -n=my-django-app<\/code><\/pre>\n\n\n\n<p>\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 \u0628\u0627\u0644\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f\u060c <code>--replicas=10<\/code> \u062a\u0639\u062f\u0627\u062f \u0631\u067e\u0644\u06cc\u06a9\u0627 \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0645\u0627 \u0631\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0628\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631\u060c \u062a\u0639\u062f\u0627\u062f \u067e\u0627\u062f\u0647\u0627 \u0645\u0648\u062c\u0648\u062f \u062f\u0631 \u062f\u06cc\u067e\u0644\u0648\u06cc\u0645\u0646\u062a \u0631\u0627 \u0628\u0627 \u0627\u06cc\u0646 \u0639\u062f\u062f \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc\u200c\u06a9\u0646\u062f. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"328\" src=\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/replica-pods-kubernetes.webp\" alt=\"\u062a\u0639\u062f\u0627\u062f \u0631\u067e\u0644\u06cc\u06a9\u0627\u0647\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647\" class=\"wp-image-4047\" srcset=\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/replica-pods-kubernetes.webp 720w, https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/replica-pods-kubernetes-300x137.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u0633\u0631\u0648\u06cc\u0633\"><strong>\u0633\u0631\u0648\u06cc\u0633<\/strong><\/h2>\n\n\n\n<p>\u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u0634\u0645\u0627 \u06cc\u06a9 \u062f\u06cc\u067e\u0644\u0648\u06cc\u0645\u0646\u062a \u0647\u0645\u0631\u0627\u0647 \u0628\u0627 \u0686\u0646\u062f\u06cc\u0646 \u067e\u0627\u062f \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u062f\u0627\u0631\u06cc\u062f. \u0647\u0631 \u06a9\u062f\u0627\u0645 \u0627\u0632 \u0627\u06cc\u0646 \u067e\u0627\u062f\u0647\u0627 \u06cc\u06a9 IP Address \u0645\u0646\u062d\u0635\u0631 \u0628\u0647 \u0641\u0631\u062f \u062f\u0627\u0631\u0646\u062f \u06a9\u0647 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u067e\u0648\u06cc\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f. \u0627\u06af\u0631 \u0634\u0645\u0627 \u0627\u06cc\u0646 \u067e\u0627\u062f\u0647\u0627 \u0631\u0627 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u0645\u0633\u062a\u0642\u06cc\u0645 \u0628\u0647 \u06a9\u0644\u0627\u06cc\u0646\u062a expose \u06a9\u0646\u06cc\u062f\u060c \u0646\u06cc\u0627\u0632 \u0627\u0633\u062a \u06a9\u0647 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u062f\u0631 IP Address\u0647\u0627 \u0631\u0627 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u06cc\u062f. \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0645\u06a9\u0627\u0646\u06cc\u0632\u0645\u06cc \u0628\u0647 \u0646\u0627\u0645 Service \u062f\u0627\u0631\u062f \u06a9\u0647 \u0627\u06cc\u0646 \u0645\u0633\u0626\u0644\u0647 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0634\u0645\u0627 \u062d\u0644 \u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-\u067e\u06cc\u0627\u062f\u0647-\u0633\u0627\u0632\u06cc-service-yml\">\u067e\u06cc\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc service.yml<\/h3>\n\n\n\n<p>\u0641\u0627\u06cc\u0644\u06cc \u0628\u0627 \u0646\u0627\u0645 service.yml \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647 \u0648 \u06a9\u062f\u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0622\u0646 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: v1\nkind: Service\nmetadata:\n  name: my-django-app-service\n  namespace: my-django-app\nspec:\n  type: NodePort\n  selector:\n    app: django-app\n  ports:\n      # By default and for convenience, the `targetPort` is set to the same value as the `port` field.\n    - port: 80\n      targetPort: 8000\n      # Optional field\n      # By default and for convenience, the Kubernetes control plane will allocate a port from a range (default: 30000-32767)\n      nodePort: 30009<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>port: <\/strong>\u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0646 \u067e\u0648\u0631\u062a \u062e\u0648\u062f Service. \u062f\u0631 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0645\u0627 80 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u0645. <\/li>\n\n\n\n<li><strong>targetPort:<\/strong> \u067e\u0648\u0631\u062a \u062f\u0627\u062e\u0644 \u067e\u0627\u062f \u06a9\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0648\u06cc \u0622\u0646 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/li>\n\n\n\n<li><strong>nodePort: 30009: <\/strong>\u06cc\u06a9 <strong>\u067e\u0648\u0631\u062a \u062b\u0627\u0628\u062a<\/strong> \u06a9\u0647 \u0631\u0648\u06cc \u0647\u0631 \u06af\u0631\u0647 (Node) \u0628\u0627\u0632 \u0645\u06cc\u200c\u0634\u0648\u062f \u0648 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0622\u0646 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u0646\u062f \u0628\u0627 \u0622\u062f\u0631\u0633 IP \u0646\u0648\u062f \u0648 \u0622\u0646 \u067e\u0648\u0631\u062a \u0628\u0647 \u0633\u0631\u0648\u06cc\u0633 \u062f\u0633\u062a\u0631\u0633\u06cc \u067e\u06cc\u062f\u0627 \u06a9\u0646\u0646\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u062b\u0627\u0644 \u0645\u0627 \u0627\u0632 30009 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u0645. <\/li>\n<\/ul>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u062f\u0631\u06a9 \u0628\u0647\u062a\u0631 \u0645\u0641\u0647\u0648\u0645 <strong>nodePort<\/strong>\u060c \u0641\u0631\u0636 \u06a9\u0646\u06cc\u062f \u06cc\u06a9 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0648\u0628 \u062f\u0627\u0631\u06cc\u062f \u06a9\u0647 \u0631\u0648\u06cc \u067e\u0648\u0631\u062a 8080 \u062f\u0627\u062e\u0644 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <strong>\u0646\u0648\u0639 \u0633\u0631\u0648\u06cc\u0633 NodePort<\/strong>\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0622\u062f\u0631\u0633 IP \u0647\u0631 \u0646\u0648\u062f \u062f\u0631 \u067e\u0648\u0631\u062a \u0645\u0634\u062e\u0635\u200c\u0634\u062f\u0647 (\u0645\u0627\u0646\u0646\u062f 30009) \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f. \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0628\u0631\u0627\u06cc \u0645\u062d\u06cc\u0637\u200c\u0647\u0627\u06cc \u0622\u0632\u0645\u0627\u06cc\u0634\u06cc \u06cc\u0627 \u0633\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0645\u0641\u06cc\u062f \u0627\u0633\u062a.<\/p>\n\n\n\n<p>\u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u0628\u0631\u0627\u06cc \u0627\u0639\u0645\u0627\u0644 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl apply -f service.yml<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"368\" src=\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/service-apply.webp\" alt=\"\u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627 \u0648 nodePort\" class=\"wp-image-4048\" srcset=\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/service-apply.webp 720w, https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/service-apply-300x153.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p>\u062d\u0627\u0644 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0637\u0631\u06cc\u0642 \u067e\u0646\u0644 \u0633\u0631\u0648\u06cc\u0633\u200c\u062f\u0647\u0646\u062f\u0647 \u0628\u0647 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0627\u0635\u0644\u06cc \u062e\u0648\u062f \u06a9\u0647 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u0627\u0633\u062a \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f. \u0628\u0647 \u06cc\u0627\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0633\u0631\u0648\u06cc\u0633 \u0634\u0645\u0627 \u0631\u0648\u06cc \u067e\u0648\u0631\u062a 30009 \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0627\u0633\u062a. \u062f\u0631 \u0646\u062a\u06cc\u062c\u0647 URL \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0634\u06a9\u0644 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;&lt;public_ip_of_instance&gt;:30009<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"363\" src=\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/todo-app.webp\" alt=\"\u0646\u0633\u062e\u0647 \u0646\u0647\u0627\u06cc\u06cc \u067e\u0631\u0648\u0698\u0647 \u0641\u0639\u0644\u06cc\" class=\"wp-image-4049\" style=\"width:840px;height:auto\" srcset=\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/todo-app.webp 720w, https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/todo-app-300x151.webp 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-\u062f\u0631-\u067e\u0627\u06cc\u0627\u0646\">\u062f\u0631 \u067e\u0627\u06cc\u0627\u0646<\/h2>\n\n\n\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0627\u0632 \u0648\u0628\u0644\u0627\u06af \u0647\u0645\u200c\u0631\u0648\u0634\u060c \u0628\u0627 \u0627\u0635\u0648\u0644 \u0627\u0648\u0644\u06cc\u0647 \u0627\u0633\u062a\u0642\u0631\u0627\u0631 \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u062f\u0631 Kubernetes \u0622\u0634\u0646\u0627 \u0634\u062f\u06cc\u0645. \u0645\u0641\u0627\u0647\u06cc\u0645 \u06a9\u0644\u06cc\u062f\u06cc \u0645\u0627\u0646\u0646\u062f <strong>\u067e\u0627\u062f\u0647\u0627 (Pods)<\/strong>\u060c <strong>\u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627 (Services)<\/strong> \u0648 <strong>\u062f\u06cc\u067e\u0644\u0648\u06cc\u0645\u0646\u062a\u200c\u0647\u0627 (Deployments)<\/strong> \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0631\u062f\u06cc\u0645 \u0648 \u0646\u062d\u0648\u0647 \u062a\u0639\u0627\u0645\u0644 \u0622\u0646\u200c\u0647\u0627 \u0631\u0627 \u062f\u0631 \u0627\u0633\u062a\u0642\u0631\u0627\u0631 \u06cc\u06a9 \u0628\u0631\u0646\u0627\u0645\u0647 \u0633\u0627\u062f\u0647 \u0648\u0628 \u0645\u0634\u0627\u0647\u062f\u0647 \u0646\u0645\u0648\u062f\u06cc\u0645. \u0628\u0627 \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u067e\u0627\u062f\u060c \u0633\u0631\u0648\u06cc\u0633 \u0648 \u062f\u06cc\u067e\u0644\u0648\u06cc\u0645\u0646\u062a\u060c \u062a\u0648\u0627\u0646\u0633\u062a\u06cc\u0645 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0645\u0633\u062a\u0642\u0631 \u06a9\u0646\u06cc\u0645.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u0645\u0631\u062d\u0644\u0647 \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u0634\u06cc\u0648\u0647 \u062f\u06cc\u067e\u0644\u0648\u06cc \u06cc\u06a9 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u062c\u0646\u06af\u0648\u06cc\u06cc \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0631\u0627 \u0627\u0632 \u0627\u0628\u062a\u062f\u0627 \u067e\u06cc\u0634 \u0628\u0628\u0631\u06cc\u0645 \u0648 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u06a9\u0627\u0645\u0644 \u0628\u0627 \u0627\u06cc\u0646 \u0641\u0631\u0627\u06cc\u0646\u062f \u0622\u0634\u0646\u0627 \u0634\u0648\u06cc\u0645.<\/p>\n","protected":false},"author":12,"featured_media":4057,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,54],"tags":[],"coauthors":[],"class_list":["post-3500","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-kubernetes"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.2 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>\u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 - \u0628\u0644\u0627\u06af \u0647\u0645\u200c\u0631\u0648\u0634<\/title>\n<meta name=\"description\" content=\"\u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u0645\u0631\u062d\u0644\u0647 \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u0634\u06cc\u0648\u0647 \u062f\u06cc\u067e\u0644\u0648\u06cc \u06cc\u06a9 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u062c\u0646\u06af\u0648\u06cc\u06cc \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0631\u0627 \u0627\u0632 \u0627\u0628\u062a\u062f\u0627 \u067e\u06cc\u0634 \u0628\u0628\u0631\u06cc\u0645 \u0648 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u06a9\u0627\u0645\u0644 \u0628\u0627 \u0627\u06cc\u0646 \u0641\u0631\u0627\u06cc\u0646\u062f \u0622\u0634\u0646\u0627 \u0634\u0648\u06cc\u0645.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/\" \/>\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 \u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632\" \/>\n<meta property=\"og:description\" content=\"\u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u0645\u0631\u062d\u0644\u0647 \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u0634\u06cc\u0648\u0647 \u062f\u06cc\u067e\u0644\u0648\u06cc \u06cc\u06a9 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u062c\u0646\u06af\u0648\u06cc\u06cc \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0631\u0627 \u0627\u0632 \u0627\u0628\u062a\u062f\u0627 \u067e\u06cc\u0634 \u0628\u0628\u0631\u06cc\u0645 \u0648 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u06a9\u0627\u0645\u0644 \u0628\u0627 \u0627\u06cc\u0646 \u0641\u0631\u0627\u06cc\u0646\u062f \u0622\u0634\u0646\u0627 \u0634\u0648\u06cc\u0645.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af \u0647\u0645\u200c\u0631\u0648\u0634\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-30T08:11:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-30T08:12:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-first-app-deployment-scaled.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1206\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"\u0627\u0631\u0633\u0637\u0648 \u0639\u0628\u0627\u0633\u06cc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u062a\u0648\u0633\u0637\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0627\u0631\u0633\u0637\u0648 \u0639\u0628\u0627\u0633\u06cc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u0632\u0645\u0627\u0646 \u062a\u062e\u0645\u06cc\u0646\u06cc \u0645\u0637\u0627\u0644\u0639\u0647\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 \u062f\u0642\u06cc\u0642\u0647\" \/>\n\t<meta name=\"twitter:label3\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data3\" content=\"\u0627\u0631\u0633\u0637\u0648 \u0639\u0628\u0627\u0633\u06cc\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/\"},\"author\":{\"name\":\"\u0627\u0631\u0633\u0637\u0648 \u0639\u0628\u0627\u0633\u06cc\",\"@id\":\"https:\/\/hamravesh.com\/blog\/#\/schema\/person\/49550a45ffc0d9098ee296a3fc1c8915\"},\"headline\":\"\u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632\",\"datePublished\":\"2024-11-30T08:11:19+00:00\",\"dateModified\":\"2024-11-30T08:12:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/\"},\"wordCount\":68,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/hamravesh.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-first-app-deployment-scaled.webp\",\"articleSection\":[\"\u0645\u0642\u0627\u0644\u0627\u062a\",\"\u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/\",\"url\":\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/\",\"name\":\"\u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 - \u0628\u0644\u0627\u06af \u0647\u0645\u200c\u0631\u0648\u0634\",\"isPartOf\":{\"@id\":\"https:\/\/hamravesh.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-first-app-deployment-scaled.webp\",\"datePublished\":\"2024-11-30T08:11:19+00:00\",\"dateModified\":\"2024-11-30T08:12:03+00:00\",\"description\":\"\u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u0645\u0631\u062d\u0644\u0647 \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u0634\u06cc\u0648\u0647 \u062f\u06cc\u067e\u0644\u0648\u06cc \u06cc\u06a9 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u062c\u0646\u06af\u0648\u06cc\u06cc \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0631\u0627 \u0627\u0632 \u0627\u0628\u062a\u062f\u0627 \u067e\u06cc\u0634 \u0628\u0628\u0631\u06cc\u0645 \u0648 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u06a9\u0627\u0645\u0644 \u0628\u0627 \u0627\u06cc\u0646 \u0641\u0631\u0627\u06cc\u0646\u062f \u0622\u0634\u0646\u0627 \u0634\u0648\u06cc\u0645.\",\"breadcrumb\":{\"@id\":\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#primaryimage\",\"url\":\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-first-app-deployment-scaled.webp\",\"contentUrl\":\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-first-app-deployment-scaled.webp\",\"width\":2560,\"height\":1206,\"caption\":\"\u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0645\u062c\u0644\u0647 \u0647\u0645\u200c\u0631\u0648\u0634\",\"item\":\"https:\/\/hamravesh.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hamravesh.com\/blog\/#website\",\"url\":\"https:\/\/hamravesh.com\/blog\/\",\"name\":\"\u0648\u0628\u0644\u0627\u06af \u0647\u0645\u200c\u0631\u0648\u0634\",\"description\":\"\u0628\u0644\u0627\u06af \u0631\u0633\u0645\u06cc \u0647\u0645\u200c\u0631\u0648\u0634\",\"publisher\":{\"@id\":\"https:\/\/hamravesh.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hamravesh.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hamravesh.com\/blog\/#organization\",\"name\":\"\u0647\u0645\u200c\u0631\u0648\u0634\",\"url\":\"https:\/\/hamravesh.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/hamravesh.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2026\/03\/logo.svg\",\"contentUrl\":\"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2026\/03\/logo.svg\",\"width\":1,\"height\":1,\"caption\":\"\u0647\u0645\u200c\u0631\u0648\u0634\"},\"image\":{\"@id\":\"https:\/\/hamravesh.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/hamravesh.com\/blog\/#\/schema\/person\/49550a45ffc0d9098ee296a3fc1c8915\",\"name\":\"\u0627\u0631\u0633\u0637\u0648 \u0639\u0628\u0627\u0633\u06cc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/hamravesh.com\/blog\/#\/schema\/person\/image\/a069f4eb0a1c93c61efa59f918c39303\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/38bae86a265e84fa66968f790bc6426d9de14c3156bdef88a0773675c63de46e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/38bae86a265e84fa66968f790bc6426d9de14c3156bdef88a0773675c63de46e?s=96&d=mm&r=g\",\"caption\":\"\u0627\u0631\u0633\u0637\u0648 \u0639\u0628\u0627\u0633\u06cc\"},\"description\":\"Technical Writer - \u062f\u0631 \u062a\u0644\u0627\u0634 \u0628\u0631\u0627\u06cc \u0633\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u0648 \u0647\u0645\u0647\u200c\u0641\u0647\u0645 \u06a9\u0631\u062f\u0646 \u0645\u0648\u0636\u0648\u0639\u0627\u062a \u062a\u062e\u0635\u0635\u06cc \u062d\u0648\u0632\u0647 Cloud \u0648 Computer Engineering\",\"sameAs\":[\"https:\/\/arastoo.net\",\"https:\/\/www.linkedin.com\/in\/arastoo\/\"],\"jobTitle\":\"Technical Content Writer\",\"url\":\"https:\/\/hamravesh.com\/blog\/author\/arastoo\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 - \u0628\u0644\u0627\u06af \u0647\u0645\u200c\u0631\u0648\u0634","description":"\u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u0645\u0631\u062d\u0644\u0647 \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u0634\u06cc\u0648\u0647 \u062f\u06cc\u067e\u0644\u0648\u06cc \u06cc\u06a9 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u062c\u0646\u06af\u0648\u06cc\u06cc \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0631\u0627 \u0627\u0632 \u0627\u0628\u062a\u062f\u0627 \u067e\u06cc\u0634 \u0628\u0628\u0631\u06cc\u0645 \u0648 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u06a9\u0627\u0645\u0644 \u0628\u0627 \u0627\u06cc\u0646 \u0641\u0631\u0627\u06cc\u0646\u062f \u0622\u0634\u0646\u0627 \u0634\u0648\u06cc\u0645.","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:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/","og_locale":"fa_IR","og_type":"article","og_title":"\u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632","og_description":"\u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u0645\u0631\u062d\u0644\u0647 \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u0634\u06cc\u0648\u0647 \u062f\u06cc\u067e\u0644\u0648\u06cc \u06cc\u06a9 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u062c\u0646\u06af\u0648\u06cc\u06cc \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0631\u0627 \u0627\u0632 \u0627\u0628\u062a\u062f\u0627 \u067e\u06cc\u0634 \u0628\u0628\u0631\u06cc\u0645 \u0648 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u06a9\u0627\u0645\u0644 \u0628\u0627 \u0627\u06cc\u0646 \u0641\u0631\u0627\u06cc\u0646\u062f \u0622\u0634\u0646\u0627 \u0634\u0648\u06cc\u0645.","og_url":"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/","og_site_name":"\u0628\u0644\u0627\u06af \u0647\u0645\u200c\u0631\u0648\u0634","article_published_time":"2024-11-30T08:11:19+00:00","article_modified_time":"2024-11-30T08:12:03+00:00","og_image":[{"width":2560,"height":1206,"url":"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-first-app-deployment-scaled.webp","type":"image\/webp"}],"author":"\u0627\u0631\u0633\u0637\u0648 \u0639\u0628\u0627\u0633\u06cc","twitter_card":"summary_large_image","twitter_misc":{"\u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u062a\u0648\u0633\u0637":"\u0627\u0631\u0633\u0637\u0648 \u0639\u0628\u0627\u0633\u06cc","\u0632\u0645\u0627\u0646 \u062a\u062e\u0645\u06cc\u0646\u06cc \u0645\u0637\u0627\u0644\u0639\u0647":"9 \u062f\u0642\u06cc\u0642\u0647","Written by":"\u0627\u0631\u0633\u0637\u0648 \u0639\u0628\u0627\u0633\u06cc"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#article","isPartOf":{"@id":"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/"},"author":{"name":"\u0627\u0631\u0633\u0637\u0648 \u0639\u0628\u0627\u0633\u06cc","@id":"https:\/\/hamravesh.com\/blog\/#\/schema\/person\/49550a45ffc0d9098ee296a3fc1c8915"},"headline":"\u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632","datePublished":"2024-11-30T08:11:19+00:00","dateModified":"2024-11-30T08:12:03+00:00","mainEntityOfPage":{"@id":"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/"},"wordCount":68,"commentCount":0,"publisher":{"@id":"https:\/\/hamravesh.com\/blog\/#organization"},"image":{"@id":"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#primaryimage"},"thumbnailUrl":"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-first-app-deployment-scaled.webp","articleSection":["\u0645\u0642\u0627\u0644\u0627\u062a","\u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632"],"inLanguage":"fa-IR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/","url":"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/","name":"\u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 - \u0628\u0644\u0627\u06af \u0647\u0645\u200c\u0631\u0648\u0634","isPartOf":{"@id":"https:\/\/hamravesh.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#primaryimage"},"image":{"@id":"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#primaryimage"},"thumbnailUrl":"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-first-app-deployment-scaled.webp","datePublished":"2024-11-30T08:11:19+00:00","dateModified":"2024-11-30T08:12:03+00:00","description":"\u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u0645\u0631\u062d\u0644\u0647 \u0628\u0647 \u0645\u0631\u062d\u0644\u0647 \u0634\u06cc\u0648\u0647 \u062f\u06cc\u067e\u0644\u0648\u06cc \u06cc\u06a9 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u062c\u0646\u06af\u0648\u06cc\u06cc \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632 \u0631\u0627 \u0627\u0632 \u0627\u0628\u062a\u062f\u0627 \u067e\u06cc\u0634 \u0628\u0628\u0631\u06cc\u0645 \u0648 \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u06a9\u0627\u0645\u0644 \u0628\u0627 \u0627\u06cc\u0646 \u0641\u0631\u0627\u06cc\u0646\u062f \u0622\u0634\u0646\u0627 \u0634\u0648\u06cc\u0645.","breadcrumb":{"@id":"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#breadcrumb"},"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/"]}]},{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#primaryimage","url":"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-first-app-deployment-scaled.webp","contentUrl":"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2024\/11\/kubernetes-first-app-deployment-scaled.webp","width":2560,"height":1206,"caption":"\u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632"},{"@type":"BreadcrumbList","@id":"https:\/\/hamravesh.com\/blog\/deploy-application-kubernetes-step-by-step\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0645\u062c\u0644\u0647 \u0647\u0645\u200c\u0631\u0648\u0634","item":"https:\/\/hamravesh.com\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0648\u0632\u0634 \u062f\u06cc\u067e\u0644\u0648\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0631\u0648\u06cc \u06a9\u0648\u0628\u0631\u0646\u062a\u06cc\u0632"}]},{"@type":"WebSite","@id":"https:\/\/hamravesh.com\/blog\/#website","url":"https:\/\/hamravesh.com\/blog\/","name":"\u0648\u0628\u0644\u0627\u06af \u0647\u0645\u200c\u0631\u0648\u0634","description":"\u0628\u0644\u0627\u06af \u0631\u0633\u0645\u06cc \u0647\u0645\u200c\u0631\u0648\u0634","publisher":{"@id":"https:\/\/hamravesh.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hamravesh.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fa-IR"},{"@type":"Organization","@id":"https:\/\/hamravesh.com\/blog\/#organization","name":"\u0647\u0645\u200c\u0631\u0648\u0634","url":"https:\/\/hamravesh.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/hamravesh.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2026\/03\/logo.svg","contentUrl":"https:\/\/hamravesh.com\/blog\/wp-content\/uploads\/2026\/03\/logo.svg","width":1,"height":1,"caption":"\u0647\u0645\u200c\u0631\u0648\u0634"},"image":{"@id":"https:\/\/hamravesh.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/hamravesh.com\/blog\/#\/schema\/person\/49550a45ffc0d9098ee296a3fc1c8915","name":"\u0627\u0631\u0633\u0637\u0648 \u0639\u0628\u0627\u0633\u06cc","image":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/hamravesh.com\/blog\/#\/schema\/person\/image\/a069f4eb0a1c93c61efa59f918c39303","url":"https:\/\/secure.gravatar.com\/avatar\/38bae86a265e84fa66968f790bc6426d9de14c3156bdef88a0773675c63de46e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/38bae86a265e84fa66968f790bc6426d9de14c3156bdef88a0773675c63de46e?s=96&d=mm&r=g","caption":"\u0627\u0631\u0633\u0637\u0648 \u0639\u0628\u0627\u0633\u06cc"},"description":"Technical Writer - \u062f\u0631 \u062a\u0644\u0627\u0634 \u0628\u0631\u0627\u06cc \u0633\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u0648 \u0647\u0645\u0647\u200c\u0641\u0647\u0645 \u06a9\u0631\u062f\u0646 \u0645\u0648\u0636\u0648\u0639\u0627\u062a \u062a\u062e\u0635\u0635\u06cc \u062d\u0648\u0632\u0647 Cloud \u0648 Computer Engineering","sameAs":["https:\/\/arastoo.net","https:\/\/www.linkedin.com\/in\/arastoo\/"],"jobTitle":"Technical Content Writer","url":"https:\/\/hamravesh.com\/blog\/author\/arastoo\/"}]}},"_links":{"self":[{"href":"https:\/\/hamravesh.com\/blog\/wp-json\/wp\/v2\/posts\/3500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hamravesh.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hamravesh.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hamravesh.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/hamravesh.com\/blog\/wp-json\/wp\/v2\/comments?post=3500"}],"version-history":[{"count":16,"href":"https:\/\/hamravesh.com\/blog\/wp-json\/wp\/v2\/posts\/3500\/revisions"}],"predecessor-version":[{"id":4058,"href":"https:\/\/hamravesh.com\/blog\/wp-json\/wp\/v2\/posts\/3500\/revisions\/4058"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hamravesh.com\/blog\/wp-json\/wp\/v2\/media\/4057"}],"wp:attachment":[{"href":"https:\/\/hamravesh.com\/blog\/wp-json\/wp\/v2\/media?parent=3500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hamravesh.com\/blog\/wp-json\/wp\/v2\/categories?post=3500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hamravesh.com\/blog\/wp-json\/wp\/v2\/tags?post=3500"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/hamravesh.com\/blog\/wp-json\/wp\/v2\/coauthors?post=3500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}