{"id":6367,"date":"2025-06-07T15:36:54","date_gmt":"2025-06-07T12:06:54","guid":{"rendered":"https:\/\/zaminhost.com\/blog\/?p=6367"},"modified":"2025-09-14T08:27:27","modified_gmt":"2025-09-14T04:57:27","slug":"%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes","status":"publish","type":"post","link":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes"},"content":{"rendered":"\n<p>\u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc <strong><a href=\"https:\/\/zaminhost.com\/blog\/%d9%be%d8%a7%db%8c%da%af%d8%a7%d9%87-%d8%af%d8%a7%d8%af%d9%87-postgresql\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 PostgreSQL <\/a><\/strong>\u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0628\u0647 \u0631\u0648\u0634\u06cc \u0645\u062d\u0628\u0648\u0628 \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0645\u0642\u06cc\u0627\u0633\u200c\u067e\u0630\u06cc\u0631\u060c \u0645\u0646\u0639\u0637\u0641 \u0648 \u067e\u0648\u06cc\u0627 \u062a\u0628\u062f\u06cc\u0644 \u0634\u062f\u0647 \u0627\u0633\u062a. Kubernetes \u0628\u0627 \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc <strong><a href=\"https:\/\/zaminhost.com\/blog\/%d8%a7%d8%b1%da%a9%d8%b3%d8%aa%d8%b1%d8%a7%d8%b3%db%8c%d9%88%d9%86-%da%a9%d8%a7%d9%86%d8%aa%db%8c%d9%86%d8%b1\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u0627\u0631\u06a9\u0633\u062a\u0631\u0627\u0633\u06cc\u0648\u0646 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631<\/a><\/strong>\u060c \u06cc\u06a9 \u0686\u0627\u0631\u0686\u0648\u0628 \u0642\u062f\u0631\u062a\u0645\u0646\u062f \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0642\u0631\u0627\u0631 \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627\u060c \u0627\u0632 \u062c\u0645\u0644\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0645\u0627\u0646\u0646\u062f PostgreSQL\u060c \u062f\u0631 \u06cc\u06a9 \u0645\u062d\u06cc\u0637 \u062a\u0648\u0632\u06cc\u0639\u200c\u0634\u062f\u0647 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f. \u0627\u06cc\u0646 \u06cc\u06a9\u067e\u0627\u0631\u0686\u0647\u200c\u0633\u0627\u0632\u06cc \u0645\u0632\u0627\u06cc\u0627\u06cc \u0642\u0627\u0628\u0644 \u062a\u0648\u062c\u0647\u06cc \u062f\u0631 \u0645\u0642\u06cc\u0627\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc\u060c \u0645\u0642\u0627\u0648\u0645\u062a \u062f\u0631 \u0628\u0631\u0627\u0628\u0631 \u062e\u0631\u0627\u0628\u06cc\u200c\u0647\u0627 \u0648 \u0628\u0647\u0631\u0647\u200c\u0648\u0631\u06cc \u062f\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u0646\u0627\u0628\u0639 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u062f\u0627\u0631\u062f. \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0648\u06cc\u0698\u06af\u06cc\u200c\u0647\u0627\u06cc Kubernetes \u0645\u0627\u0646\u0646\u062f \u0645\u0642\u06cc\u0627\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc\u060c \u0627\u0633\u062a\u0642\u0631\u0627\u0631 \u062e\u0648\u062f\u06a9\u0627\u0631 \u0648 \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc \u062e\u0648\u062f\u062a\u0631\u0645\u06cc\u0645\u06cc\u060c \u062f\u06cc\u06af\u0631 \u0646\u06cc\u0627\u0632\u06cc \u0646\u06cc\u0633\u062a \u0646\u06af\u0631\u0627\u0646 \u0645\u0634\u06a9\u0644\u0627\u062a \u0645\u0639\u0645\u0648\u0644 \u062f\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0628\u0627\u0634\u06cc\u062f\u060c \u062f\u0631 \u0627\u06cc\u0646 \u0635\u0648\u0631\u062a \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062a\u0645\u0631\u06a9\u0632 \u062e\u0648\u062f \u0631\u0627 \u0631\u0648\u06cc \u062a\u0648\u0633\u0639\u0647 \u0648 \u0628\u0647\u06cc\u0646\u0647\u200c\u0633\u0627\u0632\u06cc \u0633\u06cc\u0633\u062a\u0645\u200c\u0647\u0627\u06cc\u062a\u0627\u0646 \u0628\u06af\u0630\u0627\u0631\u06cc\u062f.<\/p>\n\n\n\n<p>\u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627 \u0641\u0631\u0622\u06cc\u0646\u062f \u06af\u0627\u0645\u200c\u0628\u0647\u200c\u06af\u0627\u0645 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06cc\u06a9 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0686\u0647 \u0634\u0645\u0627 \u06cc\u06a9 \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u0647\u060c \u0645\u0647\u0646\u062f\u0633 DevOps \u06cc\u0627 \u0645\u062f\u06cc\u0631 \u0633\u06cc\u0633\u062a\u0645 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0627\u0633\u062a\u060c \u0627\u06cc\u0646 \u0645\u0637\u0644\u0628 \u0628\u0647 \u0634\u0645\u0627 \u06a9\u0645\u06a9 \u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center has-text-color has-link-color wp-elements-16a584c4a41dad415a6585113dc4a025\" style=\"color:#044f7b\">\u067e\u06cc\u0634\u200c\u0646\u06cc\u0627\u0632\u0647\u0627\u06cc \u0646\u0635\u0628 PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes<\/h2>\n\n\n\n<p>\u0642\u0628\u0644 \u0627\u0632 \u0634\u0631\u0648\u0639 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634\u060c \u0628\u0647 \u0645\u0648\u0627\u0631\u062f \u0632\u06cc\u0631 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u06cc\u06a9 \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc \u0628\u0627 \u06a9\u0627\u0631\u0628\u0631\u06cc \u063a\u06cc\u0631 root \u0628\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc sudo \u0648 \u06cc\u06a9 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0641\u0639\u0627\u0644<\/li>\n\n\n\n<li>\u0627\u0628\u0632\u0627\u0631 \u062e\u0637 \u0641\u0631\u0645\u0627\u0646 <code>kubectl<\/code> \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0645\u062c\u0627\u0632\u06cc<\/li>\n\n\n\n<li>\u06cc\u06a9 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0641\u0639\u0627\u0644<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center has-text-color has-link-color wp-elements-653299f397d8704c9d5c93aac8b6c829\" style=\"color:#044f7b\">\u0645\u0632\u0627\u06cc\u0627\u06cc <strong>\u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u0628\u0627 Kubernetes<\/strong><\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"600\" height=\"300\" src=\"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2025\/06\/kubernetes.jpg\" alt=\"\u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 Kubernetes\" class=\"wp-image-6375\"\/><\/figure>\n<\/div>\n\n\n<p>\u067e\u06cc\u0634 \u0627\u0632 \u0622\u063a\u0627\u0632 \u0645\u0631\u0627\u062d\u0644 \u0646\u0635\u0628\u060c \u062f\u0631\u06a9 \u0645\u0632\u0627\u06cc\u0627\u06cc \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u0631\u0648\u06cc <a href=\"https:\/\/zaminhost.com\/blog\/%da%a9%d9%88%d8%a8%d8%b1%d9%86%d8%aa%db%8c%d8%b3-%da%86%db%8c%d8%b3%d8%aa\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Kubernetes<\/strong><\/a> \u0636\u0631\u0648\u0631\u06cc \u0627\u0633\u062a. \u062c\u062f\u0648\u0644 \u0645\u0642\u0627\u06cc\u0633\u0647\u200c\u0627\u06cc \u0632\u06cc\u0631 \u062a\u0641\u0627\u0648\u062a\u200c\u0647\u0627\u06cc \u0628\u06cc\u0646 \u0631\u0648\u0634 \u0628\u062f\u0648\u0646 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0648 \u0628\u0627 Kubernetes \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>\u0648\u06cc\u0698\u06af\u06cc\u200c\u0647\u0627<\/th><th>\u0628\u062f\u0648\u0646 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes<\/th><th>\u0628\u0627 Kubernetes (\u0631\u0627\u0647\u200c\u062d\u0644 \u0627\u0628\u0631\u06cc)<\/th><\/tr><\/thead><tbody><tr><td><strong>\u0645\u0642\u06cc\u0627\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc<\/strong><\/td><td>\u062f\u0633\u062a\u06cc\u060c \u0647\u0645\u0631\u0627\u0647 \u0628\u0627 Downtime \u0648 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u067e\u06cc\u0686\u06cc\u062f\u0647<\/td><td>\u062e\u0648\u062f\u06a9\u0627\u0631\u060c \u0622\u0646\u06cc \u0648 \u0628\u062f\u0648\u0646 \u062a\u0648\u0642\u0641<\/td><\/tr><tr><td><strong>\u062f\u0633\u062a\u0631\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc (HA)<\/strong><\/td><td>\u0646\u06cc\u0627\u0632 \u0628\u0647 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0627\u0636\u0627\u0641\u06cc (\u0645\u062b\u0644 replication \u06cc\u0627 HAProxy)<\/td><td>\u0628\u0647\u200c\u0635\u0648\u0631\u062a \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0628\u0627 ReplicaSet \u0648 Health Check<\/td><\/tr><tr><td><strong>\u0645\u062f\u06cc\u0631\u06cc\u062a \u062e\u0637\u0627 \u0648 \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc<\/strong><\/td><td>\u062f\u0633\u062a\u06cc\u060c \u0648\u0627\u0628\u0633\u062a\u0647 \u0628\u0647 \u0627\u062f\u0645\u06cc\u0646 \u0633\u06cc\u0633\u062a\u0645<\/td><td>Self-healing \u0628\u0627 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646\u06cc \u062e\u0648\u062f\u06a9\u0627\u0631 Pod\u0647\u0627<\/td><\/tr><tr><td><strong>\u0628\u06a9\u0627\u067e\u200c\u06af\u06cc\u0631\u06cc \u0648 \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc<\/strong><\/td><td>\u0646\u06cc\u0627\u0632\u0645\u0646\u062f \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u062e\u0627\u0631\u062c\u06cc \u0648 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a\u200c\u0646\u0648\u06cc\u0633\u06cc<\/td><td>\u0627\u0645\u06a9\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 Volume Snapshot \u0648 CronJob<\/td><\/tr><tr><td><strong>\u0622\u067e\u062f\u06cc\u062a \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc<\/strong><\/td><td>\u0632\u0645\u0627\u0646\u200c\u0628\u0631 \u0628\u0627 \u0631\u06cc\u0633\u06a9 \u0627\u062e\u062a\u0644\u0627\u0644 \u0633\u0631\u0648\u06cc\u0633<\/td><td>Rolling Update \u0628\u0627 \u062d\u062f\u0627\u0642\u0644 Downtime<\/td><\/tr><tr><td><strong>\u0627\u0645\u0646\u06cc\u062a \u0648 \u0627\u06cc\u0632\u0648\u0644\u0627\u0633\u06cc\u0648\u0646<\/strong><\/td><td>\u0645\u062d\u062f\u0648\u062f \u0628\u0647 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0633\u0637\u062d OS<\/td><td>\u0645\u062f\u06cc\u0631\u06cc\u062a \u0645\u062a\u0645\u0631\u06a9\u0632 \u0628\u0627 Namespace\u060c RBAC \u0648 Secret<\/td><\/tr><tr><td><strong>\u0628\u0647\u06cc\u0646\u0647\u200c\u0633\u0627\u0632\u06cc \u0645\u0646\u0627\u0628\u0639 \u0633\u062e\u062a\u200c\u0627\u0641\u0632\u0627\u0631\u06cc<\/strong><\/td><td>\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u063a\u06cc\u0631\u0628\u0647\u06cc\u0646\u0647 \u0648 \u06a9\u0646\u062a\u0631\u0644 \u062f\u0633\u062a\u06cc<\/td><td>\u0628\u0647\u06cc\u0646\u0647\u200c\u0633\u0627\u0632\u06cc \u0645\u0635\u0631\u0641 \u0645\u0646\u0627\u0628\u0639 \u0628\u0627 Resource Limit\/Request<\/td><\/tr><tr><td><strong>\u0627\u062a\u0648\u0645\u0627\u0633\u06cc\u0648\u0646 \u0648 CI\/CD<\/strong><\/td><td>\u067e\u06cc\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u062f\u0634\u0648\u0627\u0631 \u0648 \u0632\u0645\u0627\u0646\u200c\u0628\u0631<\/td><td>\u0627\u062f\u063a\u0627\u0645 \u0622\u0633\u0627\u0646 \u0628\u0627 GitOps \u0648 DevOps Pipeline \u0647\u0627<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u0686\u06cc\u0632\u06cc \u06a9\u0647 <strong>\u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u0628\u0627 Kubernetes<\/strong> \u0631\u0627 \u0628\u0647 \u0631\u0648\u0634\u06cc \u0628\u0647\u062a\u0631 \u062a\u0628\u062f\u06cc\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0645\u062d\u062f\u0648\u062f\u06cc\u062a\u200c\u0647\u0627\u06cc \u0646\u0635\u0628 \u0628\u062f\u0648\u0646 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0627\u0633\u062a. \u0631\u0648\u0634 \u0642\u062f\u06cc\u0645\u06cc \u06a9\u0647 \u0645\u0633\u062a\u0644\u0632\u0645 \u0646\u0635\u0628 \u0645\u0633\u062a\u0642\u06cc\u0645 PostgreSQL \u0631\u0648\u06cc \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u06cc\u0627 \u0645\u062c\u0627\u0632\u06cc \u0627\u0633\u062a\u060c \u062a\u0646\u0647\u0627 \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u0698\u0647\u200c\u0647\u0627\u06cc \u06a9\u0648\u0686\u06a9 \u06a9\u0627\u0631\u0622\u0645\u062f \u0627\u0633\u062a. \u0628\u0627 \u0631\u0634\u062f \u0633\u06cc\u0633\u062a\u0645 \u0648 \u0627\u0641\u0632\u0627\u06cc\u0634 \u062a\u0631\u0627\u0641\u06cc\u06a9\u060c \u0686\u0627\u0644\u0634\u200c\u0647\u0627\u06cc \u062d\u06cc\u0627\u062a\u06cc \u062e\u0648\u062f \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u0646\u062f\u060c \u0645\u062f\u06cc\u0631\u06cc\u062a \u0645\u0646\u0627\u0628\u0639 \u0628\u0647 \u06cc\u06a9 \u06a9\u0627\u0628\u0648\u0633 \u062a\u0628\u062f\u06cc\u0644 \u0645\u06cc\u200c\u0634\u0648\u062f\u060c \u0645\u0642\u06cc\u0627\u0633\u200c\u067e\u0630\u06cc\u0631\u06cc \u0647\u0645\u0648\u0627\u0631\u0647 \u0628\u0627 Downtime (\u062a\u0648\u0642\u0641 \u0633\u0631\u0648\u06cc\u0633) \u0647\u0645\u0631\u0627\u0647 \u0627\u0633\u062a\u060c \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u067e\u0633 \u0627\u0632 \u062e\u0631\u0627\u0628\u06cc \u0633\u0631\u0648\u0631 \u0641\u0631\u0622\u06cc\u0646\u062f\u06cc \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0648 \u0632\u0645\u0627\u0646\u200c\u0628\u0631 \u0645\u06cc\u200c\u0634\u0648\u062f \u0648 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc\u200c\u0647\u0627 \u0628\u0647 \u0639\u0645\u0644\u06cc\u0627\u062a\u06cc \u067e\u0631\u0631\u06cc\u0633\u06a9 \u0648 \u0645\u0634\u06a9\u0644\u200c\u0633\u0627\u0632 \u062a\u0628\u062f\u06cc\u0644 \u0645\u06cc\u200c\u06af\u0631\u062f\u0646\u062f.<\/p>\n\n\n\n<p>\u0627\u0645\u0627 \u0646\u0635\u0628 PostgreSQL \u0631\u0648\u06cc Kubernetes \u0627\u06cc\u0646 \u0686\u0627\u0644\u0634\u200c\u0647\u0627 \u0631\u0627 \u0627\u0632 \u0628\u06cc\u0646 \u0645\u06cc \u0628\u0631\u062f. \u0627\u06cc\u0646 \u067e\u0644\u062a\u0641\u0631\u0645 \u0628\u0627 \u062e\u0644\u0642 \u06cc\u06a9 \u0645\u0639\u0645\u0627\u0631\u06cc \u0646\u0648\u06cc\u0646\u060c \u0645\u062f\u06cc\u0631\u06cc\u062a \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0627 \u0645\u062a\u062d\u0648\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0639\u0645\u0627\u0631\u06cc\u060c StatefulSets \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u0647\u0648\u0634\u0645\u0646\u062f\u0627\u0646\u0647\u200c \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 Stateful , PersistentVolumes fvhd ptz nhni ih \u067e\u0633 \u0627\u0632 \u0631\u06cc\u200c\u0627\u0633\u062a\u0627\u0631\u062a \u0634\u062f\u0646 pod\u0647\u0627 \u0648 \u0647\u0645\u0686\u0646\u06cc\u0646 ConfigMaps \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0631\u0627 \u0645\u062a\u0645\u0631\u06a9\u0632 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n\n\n\n<p>\u0642\u0627\u0628\u0644\u06cc\u062a Self-Healing \u0647\u0648\u0634\u0645\u0646\u062f Kubernetes \u062f\u0631 \u0635\u0648\u0631\u062a \u062e\u0631\u0627\u0628\u06cc \u0647\u0631 \u067e\u0627\u062f\u060c \u0628\u0647\u200c\u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631\u060c \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647\u200c\u06cc \u0633\u0627\u0644\u0645 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u0645\u06cc\u200c \u06a9\u0646\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0627\u0646\u062c\u0627\u0645 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc\u200c\u0647\u0627\u06cc \u0628\u062f\u0648\u0646 \u0648\u0642\u0641\u0647 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0642\u0627\u0628\u0644\u06cc\u062a Rolling Update \u0641\u0631\u0627\u0647\u0645 \u0627\u0633\u062a \u06a9\u0647 \u0627\u0631\u062a\u0642\u0627\u0621 \u0646\u0633\u062e\u0647\u200c\u0647\u0627 \u0631\u0627 \u0628\u062f\u0648\u0646 \u0627\u06cc\u062c\u0627\u062f \u0627\u062e\u062a\u0644\u0627\u0644 \u0645\u062d\u0633\u0648\u0633 \u062f\u0631 \u0633\u0631\u0648\u06cc\u0633\u200c\u062f\u0647\u06cc \u0645\u0645\u06a9\u0646 \u0645\u06cc\u200c\u0633\u0627\u0632\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center has-text-color has-link-color wp-elements-74368fcb471bea7ebc5ff8f1effa4f37\" style=\"color:#044f7b\">\u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 ConfigMap \u0628\u0631\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647 \u062c\u0632\u0626\u06cc\u0627\u062a \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647<\/h2>\n\n\n\n<p>\u062f\u0631 Kubernetes\u060c \u06cc\u06a9 ConfigMap \u06cc\u06a9 \u0634\u06cc\u0621 API \u0627\u0633\u062a \u06a9\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0631\u0627 \u062f\u0631 \u0642\u0627\u0644\u0628 \u062c\u0641\u062a\u200c\u0647\u0627\u06cc \u06a9\u0644\u06cc\u062f-\u0645\u0642\u062f\u0627\u0631 \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u0647\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u0646\u062f \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u0646\u062f. ConfigMaps \u0628\u0647 \u062c\u062f\u0627 \u06a9\u0631\u062f\u0646 \u062c\u0632\u0626\u06cc\u0627\u062a \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0627\u0632 \u06a9\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u06a9\u0645\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0648 \u0628\u0647\u200c\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0631\u0627 \u0628\u062f\u0648\u0646 \u062a\u063a\u06cc\u06cc\u0631 \u06a9\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0622\u0633\u0627\u0646\u200c\u062a\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n\n\n\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0628\u0647 \u0634\u0645\u0627 \u0622\u0645\u0648\u0632\u0634 \u0645\u06cc\u200c\u062f\u0647\u06cc\u0645 \u06a9\u0647 \u0686\u0637\u0648\u0631 \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc ConfigMap \u0628\u0631\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647 \u062c\u0632\u0626\u06cc\u0627\u062a \u0627\u062a\u0635\u0627\u0644 PostgreSQL \u0645\u0627\u0646\u0646\u062f \u0646\u0627\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646 (hostname)\u060c \u0646\u0627\u0645 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\u060c \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 \u0633\u0627\u06cc\u0631 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 YAML \u0628\u0647 \u0646\u0627\u0645 postgresql-configmap.yaml\u060c \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano postgres-configmap.yaml<\/code><\/pre>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0634\u0627\u0645\u0644 \u0646\u0627\u0645 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633\u060c \u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u0648 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631\u060c \u062f\u0627\u062e\u0644 \u0641\u0627\u06cc\u0644 YAML \u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: v1\nkind: ConfigMap\nmetadata:\n  name: postgres-secret\n  labels:\n    app: postgres\ndata:\n  POSTGRES_DB: ps_db\n  POSTGRES_USER: ps_user\n  POSTGRES_PASSWORD: SecurePassword<\/code><\/pre>\n\n\n\n<p><strong>\u062a\u0648\u0636\u06cc\u062d \u0628\u062e\u0634 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u062f\u0633\u062a\u0648\u0631 \u0641\u0648\u0642:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code><strong>apiVersion: v1<\/strong><\/code> \u0646\u0633\u062e\u0647 API Kubernetes \u0631\u0627 \u0628\u0631\u0627\u06cc ConfigMap \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n\n\n\n<li><code><strong>kind: ConfigMap<\/strong><\/code> \u0646\u0648\u0639 \u0645\u0646\u0628\u0639 Kubernetes \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n\n\n\n<li>\u062f\u0631 \u0628\u062e\u0634 <code><strong>metadata<\/strong><\/code>\u060c \u0641\u06cc\u0644\u062f <code>name<\/code> \u0646\u0627\u0645 ConfigMap \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 &#8220;postgres-secret&#8221; \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u0627\u06cc\u0646\u060c \u0628\u0631\u0686\u0633\u0628\u200c\u0647\u0627\u06cc\u06cc \u0628\u0631\u0627\u06cc \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc \u0648 \u0633\u0627\u0632\u0645\u0627\u0646\u062f\u0647\u06cc \u0645\u0646\u0627\u0628\u0639 \u0646\u06cc\u0632 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/li>\n\n\n\n<li>\u0628\u062e\u0634 <code><strong>data<\/strong><\/code> \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u062c\u0641\u062a\u200c\u0647\u0627\u06cc \u06a9\u0644\u06cc\u062f-\u0645\u0642\u062f\u0627\u0631 \u0630\u062e\u06cc\u0631\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f:\n<ul class=\"wp-block-list\">\n<li><strong><code>POSTGRES_DB<\/code>: <\/strong>\u0646\u0627\u0645 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 PostgreSQL \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n\n\n\n<li><strong><code>POSTGRES_USER<\/code>: <\/strong>\u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 PostgreSQL \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n\n\n\n<li><strong><code>POSTGRES_PASSWORD<\/code>:<\/strong> \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u06a9\u0627\u0631\u0628\u0631 PostgreSQL \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><strong>\u0646\u06a9\u062a\u0647<\/strong>: \u0630\u062e\u06cc\u0631\u0647 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u062d\u0633\u0627\u0633 \u062f\u0631 \u06cc\u06a9 ConfigMap \u0628\u0647 \u062f\u0644\u06cc\u0644 \u0645\u0633\u0627\u0626\u0644 \u0627\u0645\u0646\u06cc\u062a\u06cc \u062a\u0648\u0635\u06cc\u0647 \u0646\u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n\n\n\n<p>\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f\u060c \u0633\u067e\u0633 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a ConfigMap \u0631\u0627 \u0628\u0627 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0648\u06cc Kubernetes \u0627\u0639\u0645\u0627\u0644 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl apply -f postgres-configmap.yaml<\/code><\/pre>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 ConfigMap \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0633\u0627\u062e\u062a\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \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 get configmap<\/code><\/pre>\n\n\n\n<p>\u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 \u0641\u0648\u0642 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NAME               DATA   AGE\nkube-root-ca.crt   1      116s\npostgres-secret    3      12s<\/code><\/pre>\n\n\n\n<p>\u0627\u06cc\u0646 \u062e\u0631\u0648\u062c\u06cc \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u0686\u0647 ConfigMap\u0647\u0627\u06cc\u06cc \u062f\u0631 namespace \u0641\u0639\u0644\u06cc \u06a9\u0644\u0627\u0633\u062a\u0631 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u0646\u062f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center has-text-color has-link-color wp-elements-0b96cf1c3067cb0015e347a71a9249a8\" style=\"color:#044f7b\">\u0627\u06cc\u062c\u0627\u062f PersistentVolume (PV) \u0648 PersistentVolumeClaim (PVC)<\/h2>\n\n\n\n<p>PersistentVolume (PV) \u0648 PersistentVolumeClaim (PVC) \u0645\u0646\u0627\u0628\u0639 Kubernetes \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 \u0630\u062e\u06cc\u0631\u0647\u200c\u0633\u0627\u0632\u06cc \u067e\u0627\u06cc\u062f\u0627\u0631 \u0631\u0627 \u062f\u0631 \u06cc\u06a9 \u06a9\u0644\u0627\u0633\u062a\u0631 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f. PersistentVolume\u06cc\u06a9 \u0645\u0646\u0628\u0639 \u0630\u062e\u06cc\u0631\u0647\u200c\u0633\u0627\u0632\u06cc \u0627\u0632 \u067e\u06cc\u0634 \u062a\u0639\u0631\u06cc\u0641\u200c\u0634\u062f\u0647 \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 \u0627\u0633\u062a \u0648 PersistentVolumeClaim \u0628\u0647 \u067e\u0627\u062f\u0647\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u0645\u0642\u062f\u0627\u0631 \u0645\u0634\u062e\u0635\u06cc \u0627\u0632 \u0641\u0636\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647\u200c\u0633\u0627\u0632\u06cc \u0631\u0627 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u06a9\u0646\u0646\u062f. \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0633\u0627\u062e\u062a\u0627\u0631 \u0628\u0647 \u0634\u0645\u0627 \u06a9\u0645\u06a9 \u0645\u06cc\u200c\u06a9\u0646\u062f \u062a\u0627 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u0645\u0647\u0645 \u0645\u062b\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0647\u0627 \u062d\u062a\u06cc \u062f\u0631 \u0635\u0648\u0631\u062a \u0631\u06cc\u200c\u0627\u0633\u062a\u0627\u0631\u062a \u067e\u0627\u062f\u0647\u0627 \u06cc\u0627 \u062c\u0627\u0628\u0647\u200c\u062c\u0627\u06cc\u06cc \u0622\u0646\u200c\u0647\u0627 \u0628\u06cc\u0646 \u0646\u0648\u062f\u0647\u0627 \u0627\u0632 \u0628\u06cc\u0646 \u0646\u0631\u0648\u0646\u062f.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-afab0de9af3d0222c20a5cda227de85d\" style=\"color:#044f7b\">\u0627\u06cc\u062c\u0627\u062f PersistentVolume (PV)<\/h3>\n\n\n\n<p>\u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 YAML \u0628\u0631\u0627\u06cc PersistentVolume (PV) \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano psql-pv.yaml<\/code><\/pre>\n\n\n\n<p>\u0627\u06a9\u0646\u0648\u0646 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0641\u0627\u06cc\u0644 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: v1\nkind: PersistentVolume\nmetadata:\n  name: postgres-volume\n  labels:\n    type: local\n    app: postgres\nspec:\n  storageClassName: manual\n  capacity:\n    storage: 10Gi\n  accessModes:\n    - ReadWriteMany\n  hostPath:\n    path: \/data\/postgresql<\/code><\/pre>\n\n\n\n<p><strong>\u062a\u0648\u0636\u06cc\u062d \u0628\u062e\u0634 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u062f\u0633\u062a\u0648\u0631 \u0641\u0648\u0642:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>storageClassName: manual<\/code><\/strong> \u06cc\u06a9 PersistentVolume \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f. StorageClass \u0628\u0627 \u0646\u0627\u0645 &#8220;manual&#8221; \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u062a\u062e\u0635\u06cc\u0635 \u0641\u0636\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647\u200c\u0633\u0627\u0632\u06cc \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/li>\n\n\n\n<li><strong><code>capacity<\/code>: <\/strong>\u0638\u0631\u0641\u06cc\u062a \u0645\u0648\u0631\u062f \u0646\u0638\u0631 PersistentVolume \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n\n\n\n<li><strong><code>accessModes<\/code>:<\/strong> \u0631\u0648\u0634\u200c\u0647\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 PersistentVolume \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627\u060c \u0645\u0642\u062f\u0627\u0631 <code>ReadWriteMany<\/code> \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u0686\u0646\u062f\u06cc\u0646 pod \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u0647 \u0637\u0648\u0631 \u0647\u0645\u0632\u0645\u0627\u0646 \u0628\u0647 volume \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u0646\u062f.<\/li>\n\n\n\n<li><strong><code>hostPath<\/code>: <\/strong>\u0646\u0648\u0639 volume \u0627\u0633\u062a \u06a9\u0647 \u0645\u0633\u062a\u0642\u06cc\u0645\u0627\u064b \u0631\u0648\u06cc \u0641\u0627\u06cc\u0644\u200c\u0633\u06cc\u0633\u062a\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u200c\u0634\u0648\u062f.<\/li>\n<\/ul>\n\n\n\n<p>\u067e\u0633 \u0627\u0632 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0641\u0648\u0642\u060c \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0631\u0627\u06cc \u0627\u0639\u0645\u0627\u0644 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u062f\u0631 Kubernetes \u06a9\u062f \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 psql-pv.yaml<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-31b391908e977f5cf476356f06514ee0\" style=\"color:#044f7b\">\u0627\u06cc\u062c\u0627\u062f PersistentVolumeClaim (PVC)<\/h3>\n\n\n\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647\u060c \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 YAML \u0628\u0631\u0627\u06cc PersistentVolumeClaim \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano psql-claim.yaml<\/code><\/pre>\n\n\n\n<p>\u0627\u06a9\u0646\u0648\u0646 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0641\u0627\u06cc\u0644 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: v1\nkind: PersistentVolumeClaim\nmetadata:\n  name: postgres-volume-claim\n  labels:\n    app: postgres\nspec:\n  storageClassName: manual\n  accessModes:\n    - ReadWriteMany\n  resources:\n    requests:\n      storage: 10Gi<\/code><\/pre>\n\n\n\n<p><strong>\u062a\u0648\u0636\u06cc\u062d \u0628\u062e\u0634 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u062f\u0633\u062a\u0648\u0631 \u0641\u0648\u0642:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code><strong>kind: PersistentVolumeClaim<\/strong><\/code> \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 YAML \u06cc\u06a9 \u0645\u0646\u0628\u0639 PersistentVolumeClaim \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n\n\n\n<li><strong>storageClassName: manual <\/strong>\u06cc\u06a9 PersistentVolume \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f. StorageClass \u0628\u0627 \u0646\u0627\u0645 &#8220;manual&#8221; \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u062a\u062e\u0635\u06cc\u0635 \u0641\u0636\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647\u200c\u0633\u0627\u0632\u06cc \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/li>\n\n\n\n<li><strong><code>accessModes<\/code>:<\/strong> \u0631\u0648\u0634 \u062f\u0633\u062a\u0631\u0633\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u062a\u0648\u0633\u0637 PersistentVolumeClaim \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n\n\n\n<li><strong><code>resources<\/code>:<\/strong> \u0645\u0646\u0627\u0628\u0639 \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0628\u0631\u0627\u06cc PersistentVolumeClaim \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0645\u0642\u062f\u0627\u0631 \u0641\u0636\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647\u200c\u0633\u0627\u0632\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<\/ul>\n\n\n\n<p>\u067e\u0633 \u0627\u0632 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0641\u0648\u0642\u060c \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0631\u0627\u06cc \u0627\u0639\u0645\u0627\u0644 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u062f\u0631 Kubernetes \u06a9\u062f \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 psql-claim.yaml<\/code><\/pre>\n\n\n\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0631\u0627\u06cc \u0644\u06cc\u0633\u062a \u06a9\u0631\u062f\u0646 \u062a\u0645\u0627\u0645 PersistentVolumes \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get pv<\/code><\/pre>\n\n\n\n<p>\u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u062c\u0632\u0626\u06cc\u0627\u062a\u06cc \u062f\u0631\u0628\u0627\u0631\u0647 \u0647\u0631 PersistentVolume \u0634\u0627\u0645\u0644 \u0646\u0627\u0645\u060c \u0638\u0631\u0641\u06cc\u062a\u060c \u0631\u0648\u0634\u200c\u0647\u0627\u06cc \u062f\u0633\u062a\u0631\u0633\u06cc\u060c \u0648\u0636\u0639\u06cc\u062a \u0641\u0639\u0644\u06cc \u0648 \u06a9\u0644\u0627\u0633 \u0630\u062e\u06cc\u0631\u0647\u200c\u0633\u0627\u0632\u06cc \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f. \u062e\u0631\u0648\u062c\u06cc \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NAME              CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM         STORAGECLASS   REASON   AGE\npostgres-volume   10Gi       RWX            Retain           Bound    default\/postgres-volume-claim   manual                  34s\n<\/code><\/pre>\n\n\n\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0628\u0631\u0627\u06cc \u0644\u06cc\u0633\u062a \u06a9\u0631\u062f\u0646 \u062a\u0645\u0627\u0645 PersistentVolumeClaims \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get pvc<\/code><\/pre>\n\n\n\n<p>\u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u062f\u0631\u0628\u0627\u0631\u0647 PersistentVolumeClaims \u0634\u0627\u0645\u0644 \u0646\u0627\u0645\u200c\u0647\u0627\u060c \u0648\u0636\u0639\u06cc\u062a\u200c\u0647\u0627\u060c \u0641\u0636\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647\u200c\u0633\u0627\u0632\u06cc \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0634\u062f\u0647\u060c Volume \u0647\u0627\u06cc \u0645\u062a\u0635\u0644\u200c\u0634\u062f\u0647 \u0648 PersistentVolume \u0645\u0631\u0628\u0648\u0637\u0647 (\u062f\u0631 \u0635\u0648\u0631\u062a \u0645\u062a\u0635\u0644 \u0628\u0648\u062f\u0646) \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f. \u062e\u0631\u0648\u062c\u06cc \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NAME                    STATUS   VOLUME            CAPACITY   ACCESS MODES   STORAGECLASS   AGE\npostgres-volume-claim   Bound    postgres-volume   10Gi       RWX            manual         22s\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center has-text-color has-link-color wp-elements-9c73bb785017932e13362084f50e95f7\" style=\"color:#044f7b\">\u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes<\/h2>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u0641\u0627\u06cc\u0644 YAML \u0628\u0633\u0627\u0632\u06cc\u062f \u06a9\u0647 \u0645\u0634\u062e\u0635 \u06a9\u0646\u062f Kubernetes \u0686\u06af\u0648\u0646\u0647 \u0628\u0627\u06cc\u062f pod \u0647\u0627\u06cc PostgreSQL \u0631\u0627 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 YAML \u062c\u062f\u06cc\u062f \u0628\u0627 \u0646\u0627\u0645 <code>ps-deployment.yaml<\/code> \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 \u062f\u06cc\u067e\u0644\u0648\u06cc\u0645\u0646\u062a PostgreSQL \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano ps-deployment.yaml<\/code><\/pre>\n\n\n\n<p>\u0627\u06a9\u0646\u0648\u0646 \u06a9\u062f \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0641\u0627\u06cc\u0644 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: apps\/v1\nkind: Deployment\nmetadata:\n  name: postgres\nspec:\n  replicas: 3\n  selector:\n    matchLabels:\n      app: postgres\n  template:\n    metadata:\n      labels:\n        app: postgres\n    spec:\n      containers:\n        - name: postgres\n          image: 'postgres:14'\n          imagePullPolicy: IfNotPresent\n          ports:\n            - containerPort: 5432\n          envFrom:\n            - configMapRef:\n                name: postgres-secret\n          volumeMounts:\n            - mountPath: \/var\/lib\/postgresql\/data\n              name: postgresdata\n      volumes:\n        - name: postgresdata\n          persistentVolumeClaim:\n            claimName: postgres-volume-claim<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u062a\u0648\u0636\u06cc\u062d \u0628\u062e\u0634 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u062f\u0633\u062a\u0648\u0631 \u0641\u0648\u0642:<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>replicas: 3<\/code>:<\/strong> \u062a\u0639\u062f\u0627\u062f \u062a\u06a9\u0631\u0627\u0631\u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n\n\n\n<li>\u062f\u0631 \u0628\u062e\u0634<strong> <code>containers<\/code>:<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong><code>name<\/code>: <\/strong>\u0646\u0627\u0645 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n\n\n\n<li><strong><code>image<\/code>: <\/strong>\u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 <strong>image<\/strong> \u062f\u0627\u06a9\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 PostgreSQL \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n\n\n\n<li><strong><code>imagePullPolicy<\/code>: <\/strong>\u0633\u06cc\u0627\u0633\u062a \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc <strong>image<\/strong> \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0631\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n\n\n\n<li><strong><code>ports<\/code>:<\/strong> \u067e\u0648\u0631\u062a\u200c\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0628\u0647 \u0622\u0646\u200c\u0647\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0631\u062f \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n\n\n\n<li><strong><code>volumeMounts<\/code>:<\/strong> \u0627\u0645\u06a9\u0627\u0646 \u0646\u0635\u0628 <strong><code>volume<\/code><\/strong> \u0647\u0627 \u0628\u0647 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u0631\u0627 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u062f\u0631 \u0628\u062e\u0634 <code>volumes<\/code>:\n<ul class=\"wp-block-list\">\n<li><strong><code>name<\/code>:<\/strong> \u0646\u0627\u0645 <strong><code>volume<\/code><\/strong> \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/li>\n\n\n\n<li><strong><code>persistentVolumeClaim<\/code>:<\/strong> \u0628\u0647 PersistentVolumeClaim \u0628\u0627 \u0646\u0627\u0645 &#8220;postgres-volume-claim&#8221; \u0627\u0634\u0627\u0631\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u0627\u062d\u062a\u0645\u0627\u0644\u0627\u064b \u0628\u0631\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647\u200c\u0633\u0627\u0632\u06cc \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 PostgreSQL \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>\u067e\u0633 \u0627\u0632 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0641\u0648\u0642\u060c \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0631\u0627\u06cc \u0627\u0639\u0645\u0627\u0644 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u062f\u0631 Kubernetes \u06a9\u062f \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 ps-deployment.yaml<\/code><\/pre>\n\n\n\n<p>\u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 PostgreSQL \u0631\u0627 \u0628\u0631\u0627\u0633\u0627\u0633 \u0645\u0634\u062e\u0635\u0627\u062a \u0627\u0631\u0627\u0626\u0647\u200c\u0634\u062f\u0647 \u062f\u0631 \u0641\u0627\u06cc\u0644 YAML \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0631\u0627\u06cc \u0628\u0631\u0631\u0633\u06cc \u0648\u0636\u0639\u06cc\u062a deploy \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647 \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 deployments<\/code><\/pre>\n\n\n\n<p>\u0628\u0627 \u0627\u062c\u0631\u0627 \u062f\u0633\u062a\u0648\u0631 \u0641\u0648\u0642 \u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f \u06a9\u0647 \u062a\u0623\u06cc\u06cc\u062f \u0645\u06cc\u200c\u06a9\u0646\u062f \u06a9\u0647 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u0646\u062c\u0627\u0645 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NAME       READY   UP-TO-DATE   AVAILABLE   AGE\npostgres   3\/3     3            3           17s<\/code><\/pre>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0628\u0631\u0631\u0633\u06cc pod \u0647\u0627\u06cc \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627\u060c \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 get pods<\/code><\/pre>\n\n\n\n<p>\u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u067e\u0627\u062f\u0647\u0627\u06cc \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NAME                        READY   STATUS    RESTARTS      AGE\npostgres-665b7554dc-cddgq   1\/1     Running   0             28s\npostgres-665b7554dc-kh4tr   1\/1     Running   0             28s\npostgres-665b7554dc-mgprp   1\/1     Running   1 (11s ago)   28s<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center has-text-color has-link-color wp-elements-f275c2651e63e113e88b73803448c0bb\" style=\"color:#044f7b\">\u0627\u06cc\u062c\u0627\u062f \u0633\u0631\u0648\u06cc\u0633 \u0628\u0631\u0627\u06cc PostgreSQL<\/h2>\n\n\n\n<p>\u062f\u0631 Kubernetes\u060c \u06cc\u06a9 \u0633\u0631\u0648\u06cc\u0633 \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0645\u062c\u0645\u0648\u0639\u0647\u200c\u0627\u06cc \u0645\u0646\u0637\u0642\u06cc \u0627\u0632 pod \u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u06a9\u0647 \u0628\u0647 \u0633\u0627\u06cc\u0631 pod \u0647\u0627 \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u062f\u0627\u0646\u0633\u062a\u0646 \u0622\u062f\u0631\u0633 IP \u0645\u0634\u062e\u0635 pod \u0647\u0627\u060c \u0628\u0627 \u0622\u0646\u200c\u0647\u0627 \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0631\u0642\u0631\u0627\u0631 \u06a9\u0646\u0646\u062f. \u0627\u06a9\u0646\u0648\u0646 \u0628 \u06a9\u0645\u06a9 \u062f\u0633\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0645\u0627\u0646\u0641\u06cc\u0633\u062a \u0633\u0631\u0648\u06cc\u0633 \u0628\u0631\u0627\u06cc \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0646 PostgreSQL \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0627\u062e\u0644\u06cc \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano ps-service.yaml<\/code><\/pre>\n\n\n\n<p>\u0627\u06a9\u0646\u0648\u0646 \u06a9\u062f \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0641\u0627\u06cc\u0644 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: v1\nkind: Service\nmetadata:\n  name: postgres\n  labels:\n    app: postgres\nspec:\n  type: NodePort\n  ports:\n    - port: 5432\n  selector:\n    app: postgres\n<\/code><\/pre>\n\n\n\n<p>\u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0627\u06cc\u0646 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc YAML \u0631\u0627 \u0631\u0648\u06cc Kubernetes \u0627\u0639\u0645\u0627\u0644 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl apply -f ps-service.yaml\n<\/code><\/pre>\n\n\n\n<p>\u067e\u0633 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u0633\u0631\u0648\u06cc\u0633\u060c \u0633\u0627\u06cc\u0631 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627 \u06cc\u0627 \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627 \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u0646\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0627\u0645 <code>postgres<\/code> \u0648 \u067e\u0648\u0631\u062a 5432 \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 PostgreSQL \u0645\u062a\u0635\u0644 \u0634\u0648\u0646\u062f. \u0628\u0631\u0627\u06cc \u0628\u0631\u0631\u0633\u06cc \u0648\u0636\u0639\u06cc\u062a \u0627\u0633\u062a\u0642\u0631\u0627\u0631 \u0633\u0631\u0648\u06cc\u0633\u060c \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 get svc<\/code><\/pre>\n\n\n\n<p>\u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 \u0641\u0648\u0642 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NAME         TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE\nkubernetes   ClusterIP   10.96.0.1       &lt;none&gt;        443\/TCP          6m6s\npostgres     NodePort    10.98.119.102   &lt;none&gt;        5432:30344\/TCP   6s\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center has-text-color has-link-color wp-elements-221287f4a9980a2bd42fc096fd3d97f1\" style=\"color:#044f7b\">\u0627\u062a\u0635\u0627\u0644 \u0628\u0647 PostgreSQL \u0627\u0632 \u0637\u0631\u06cc\u0642 <code>kubectl<\/code><\/h2>\n\n\n\n<p>\u067e\u0627\u062f\u0647\u0627\u06cc \u0645\u0648\u062c\u0648\u062f \u062f\u0631 namespace \u062e\u0648\u062f \u0631\u0627 \u0628\u0647\u200c\u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0644\u06cc\u0633\u062a \u06a9\u0646\u06cc\u062f \u062a\u0627 \u067e\u0627\u062f \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 PostgreSQL \u0631\u0627 \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get pods<\/code><\/pre>\n\n\n\n<p>\u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 pod \u0647\u0627\u06cc \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627 \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NAME                        READY   STATUS    RESTARTS      AGE\npostgres-665b7554dc-cddgq   1\/1     Running   0             28s\npostgres-665b7554dc-kh4tr   1\/1     Running   0             28s\npostgres-665b7554dc-mgprp   1\/1     Running   1 (11s ago)   28s\n<\/code><\/pre>\n\n\n\n<p>\u0646\u0627\u0645 pod \u0647\u0627\u06cc PostgreSQL \u0631\u0627 \u0627\u0632 \u062e\u0631\u0648\u062c\u06cc \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f. \u067e\u0633 \u0627\u0632 \u0634\u0646\u0627\u0633\u0627\u06cc\u06cc pod \u0647\u0627\u06cc PostgreSQL\u060c \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 <code>kubectl exec<\/code> \u0628\u0631\u0627\u06cc \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 pod \u0647\u0627\u06cc PostgreSQL \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl exec -it postgres-665b7554dc-cddgq -- psql -h localhost -U ps_user --password -p 5432 ps_db<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>postgres-665b7554dc-cddgq<\/code>:<\/strong> \u0646\u0627\u0645 pod \u0627\u0633\u062a \u06a9\u0647 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 PostgreSQL \u062f\u0631 \u0622\u0646 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/li>\n\n\n\n<li><strong><code>ps_user<\/code>: <\/strong>\u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc\u200c \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 PostgreSQL \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u062f \u0634\u062f.<\/li>\n\n\n\n<li><strong><code>--password<\/code>: <\/strong>\u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u0628\u0647 \u0635\u0648\u0631\u062a \u062a\u0639\u0627\u0645\u0644\u06cc.<\/li>\n\n\n\n<li><strong><code>ps_db<\/code>: <\/strong>\u0646\u0627\u0645 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647\u200c\u0627\u06cc \u0627\u0633\u062a \u06a9\u0647 \u067e\u0633 \u0627\u0632 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0628\u0647 \u0622\u0646 \u0645\u062a\u0635\u0644 \u062e\u0648\u0627\u0647\u06cc\u062f \u0634\u062f.<\/li>\n<\/ul>\n\n\n\n<p>\u067e\u0633 \u0627\u0632 \u0627\u062c\u0631\u0627\u06cc \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631\u060c \u0627\u0632 \u0634\u0645\u0627 \u062e\u0648\u0627\u0633\u062a\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f \u06a9\u0647 \u0631\u0645\u0632 \u0639\u0628\u0648\u0631 \u06a9\u0627\u0631\u0628\u0631 PostgreSQL \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. \u0627\u06a9\u0646\u0648\u0646 \u067e\u0633 \u0627\u0632 \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u0645\u0648\u0641\u0642\u06cc\u062a\u200c\u0622\u0645\u06cc\u0632\u060c \u0648\u0627\u0631\u062f Postgres shell \u0645\u06cc\u200c\u0634\u0648\u06cc\u062f.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Password:\npsql (14.10 (Debian 14.10-1.pgdg120+1))\nType \"help\" for help.\nps_db=#<\/code><\/pre>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u062a\u0623\u06cc\u06cc\u062f \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 PostgreSQL \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ps_db=# \\conninfo<\/code><\/pre>\n\n\n\n<p>\u0628\u0627 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u062f\u0633\u062a\u0648\u0631 \u0641\u0648\u0642 \u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>You are connected to database \"ps_db\" as user \"ps_user\" on host \"localhost\" (address \"::1\") at port \"5432\".<\/code><\/pre>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u062e\u0631\u0648\u062c \u0627\u0632 Postgres shell \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exit<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center has-text-color has-link-color wp-elements-c625d8969a5ff32452f1ce292463c573\" style=\"color:#044f7b\"><strong>\u0645\u0642\u06cc\u0627\u0633\u200c\u0628\u0646\u062f\u06cc<\/strong> PostgreSQL<\/h2>\n\n\n\n<p>\u0645\u0642\u06cc\u0627\u0633\u200c\u0628\u0646\u062f\u06cc PostgreSQL \u062f\u0631 Kubernetes \u0634\u0627\u0645\u0644 \u062a\u0646\u0638\u06cc\u0645 \u062a\u0639\u062f\u0627\u062f <strong><a href=\"https:\/\/zaminhost.com\/blog\/replication-postgresql\/\" target=\"_blank\" rel=\"noreferrer noopener\">PostgreSQL replica<\/a><\/strong> \u062f\u0631 StatefulSet \u0627\u0633\u062a \u06a9\u0647 pod \u0647\u0627\u06cc PostgreSQL \u0631\u0627 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0627\u0628\u062a\u062f\u0627 \u0648\u0636\u0639\u06cc\u062a \u0641\u0639\u0644\u06cc PostgreSQL \u062e\u0648\u062f \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get pods -l app=postgres<\/code><\/pre>\n\n\n\n<p>\u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 \u0641\u0648\u0642 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>postgres-665b7554dc-cddgq   1\/1     Running   0              2m12s\npostgres-665b7554dc-kh4tr   1\/1     Running   0              2m12s\npostgres-665b7554dc-mgprp   1\/1     Running   1 (115s ago)   2m12s\n<\/code><\/pre>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0645\u0642\u06cc\u0627\u0633\u200c\u0628\u0646\u062f\u06cc PostgreSQL \u0628\u0647 5 \u0631\u067e\u0644\u06cc\u06a9\u0627 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0622\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 <code>kubectl scale<\/code> \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl scale deployment --replicas=5 postgres<\/code><\/pre>\n\n\n\n<p>\u0639\u062f\u062f 5 \u0631\u0627 \u0628\u0627 \u062a\u0639\u062f\u0627\u062f \u0631\u067e\u0644\u06cc\u06a9\u0627 \u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u062e\u0648\u062f \u0628\u0631\u0627\u06cc PostgreSQL \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f. \u0633\u067e\u0633 \u062f\u0648\u0628\u0627\u0631\u0647 \u0648\u0636\u0639\u06cc\u062a PostgreSQL \u062e\u0648\u062f \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 \u0639\u0645\u0644\u06cc\u0627\u062a \u0645\u0642\u06cc\u0627\u0633\u200c \u0628\u0646\u062f\u06cc \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u0646\u062c\u0627\u0645 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get pods -l app=postgres<\/code><\/pre>\n\n\n\n<p>\u062e\u0631\u0648\u062c\u06cc \u0632\u06cc\u0631 \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u06a9\u0647 \u062a\u0639\u062f\u0627\u062f pod \u0647\u0627 \u0628\u0647 5 \u0627\u0641\u0632\u0627\u06cc\u0634 \u06cc\u0627\u0641\u062a\u0647 \u0627\u0633\u062a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NAME                        READY   STATUS    RESTARTS        AGE\npostgres-665b7554dc-cddgq   1\/1     Running   0               3m56s\npostgres-665b7554dc-ftxbl   1\/1     Running   0               10s\npostgres-665b7554dc-g2nh6   1\/1     Running   0               10s\npostgres-665b7554dc-kh4tr   1\/1     Running   0               3m56s\npostgres-665b7554dc-mgprp   1\/1     Running   1 (3m39s ago)   3m56s\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center has-text-color has-link-color wp-elements-2ffe50701ebdee05c2e017bba8716844\" style=\"color:#044f7b\">\u0628\u06a9\u0627\u067e \u06af\u06cc\u0631\u06cc \u0648 \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 PostgreSQL<\/h2>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-96f715a1ca0d58766a03baf378c494fb\" style=\"color:#044f7b\">\u0628\u06a9\u0627\u067e \u06af\u06cc\u0631\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647<\/h3>\n\n\n\n<p>\u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 PostgreSQL \u06a9\u0647 \u062f\u0631 \u06cc\u06a9 pod \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u0634\u0648\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 <code>kubectl exec<\/code> \u0648 \u0627\u0628\u0632\u0627\u0631 <code>pg_dump<\/code> \u0628\u0647 \u0637\u0648\u0631 \u0645\u0633\u062a\u0642\u06cc\u0645 \u062f\u0631\u0648\u0646 pod \u0628\u06a9\u0627\u067e \u06af\u06cc\u0631\u06cc \u06a9\u0646\u06cc\u062f. \u0627\u0628\u062a\u062f\u0627 \u0628\u0631\u0627\u06cc \u06cc\u0627\u0641\u062a\u0646 \u0646\u0627\u0645 Pod \u062f\u0631 PostgreSQL \u062e\u0648\u062f\u060c \u0644\u06cc\u0633\u062a \u062a\u0645\u0627\u0645 pod \u0647\u0627 \u0631\u0627 \u0628\u0647 \u06a9\u0645\u06a9 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get pods<\/code><\/pre>\n\n\n\n<p>\u0633\u067e\u0633 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 <code>kubectl exec<\/code> \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u0641\u0631\u0645\u0627\u0646 <code>pg_dump<\/code> \u062f\u0631\u0648\u0646 pod \u0647\u0627\u06cc PostgreSQL \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl exec -it postgres-665b7554dc-cddgq -- pg_dump -U ps_user -d ps_db &gt; db_backup.sql<\/code><\/pre>\n\n\n\n<p>\u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627 \u062a\u062e\u0644\u06cc\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u062e\u0631\u0648\u062c\u06cc \u0631\u0627 \u0628\u0647 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u0628\u0647 \u0646\u0627\u0645 <code>db_backup.sql<\/code> \u062f\u0631 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0644\u0648\u06a9\u0627\u0644 \u0647\u062f\u0627\u06cc\u062a \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-ae1f9bb9ec4308931c61ba2f72b6d610\" style=\"color:#044f7b\">\u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647<\/h3>\n\n\n\n<p>\u0628\u0631\u0627\u06cc \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 pod \u0647\u0627\u06cc Kubernetes\u060c \u0628\u0647 \u0641\u0627\u06cc\u0644 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646 SQL \u0648 \u0627\u0628\u0632\u0627\u0631 <code>psql<\/code> \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u062f. \u0627\u0628\u062a\u062f\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 <code>kubectl cp<\/code> \u0641\u0627\u06cc\u0644 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646 SQL \u0631\u0627 \u0627\u0632 \u0645\u0627\u0634\u06cc\u0646 \u0644\u0648\u06a9\u0627\u0644\u062a\u0627\u0646 \u0628\u0647 pod \u0647\u0627\u06cc PostgreSQL \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl cp db_backup.sql postgres-665b7554dc-cddgq:\/tmp\/db_backup.sql<\/code><\/pre>\n\n\n\n<p>\u0633\u067e\u0633 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0647 pod \u0647\u0627\u06cc PostgreSQL \u0645\u062a\u0635\u0644 \u0634\u0648\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl exec -it postgres-665b7554dc-cddgq -- \/bin\/bash<\/code><\/pre>\n\n\n\n<p>\u062f\u0631\u0648\u0646 pod\u060c \u062f\u0633\u062a\u0648\u0631 <code>psql<\/code> \u0631\u0627 \u0628\u0631\u0627\u06cc \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u0628\u06a9\u0627\u067e \u0627\u0632 \u0641\u0627\u06cc\u0644 \u062a\u062e\u0644\u06cc\u0647 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>psql -U ps_user -d ps_db -f \/tmp\/db_backup.sql<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center has-text-color has-link-color wp-elements-2444ef88f85deeeb23490ebd26dd643d\" style=\"color:#044f7b\">\u0646\u062a\u06cc\u062c\u0647\u200c\u06af\u06cc\u0631\u06cc<\/h2>\n\n\n\n<p>\u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0642\u0627\u0628\u0644 \u0645\u062f\u06cc\u0631\u06cc\u062a \u062f\u0631 \u0641\u0636\u0627\u06cc \u0627\u0628\u0631\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f\u060c \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0628\u0647\u062a\u0631\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0627\u0633\u062a. \u0645\u062f\u06cc\u0631\u06cc\u062a PostgreSQL \u0631\u0648\u06cc Kubernetes \u0628\u0647 \u0634\u0645\u0627 \u06a9\u0645\u06a9 \u0645\u06cc \u06a9\u0646\u062f \u062a\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u0642\u06cc\u0627\u0633\u200c \u0628\u0646\u062f\u06cc \u0633\u0631\u06cc\u0639 \u0648 \u0622\u0633\u0627\u0646 \u0628\u0627 \u0686\u0646\u062f \u062e\u0637 \u062f\u0633\u062a\u0648\u0631 \u0633\u0627\u062f\u0647\u060c \u0628\u06a9\u0627\u067e\u200c\u06af\u06cc\u0631\u06cc \u0648 \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u0645\u0637\u0645\u0626\u0646 \u0627\u0632 \u0637\u0631\u06cc\u0642 pg_dump \u0648 psql\u060c \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u062e\u0644\u06cc \u0627\u06cc\u0645\u0646 \u0628\u06cc\u0646 \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627 \u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u062f\u0627\u0646\u0633\u062a\u0646 IP \u0648 \u0627\u0646\u0639\u0637\u0627\u0641 \u0628\u0627\u0644\u0627 \u062f\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0645\u0646\u0627\u0628\u0639 \u0630\u062e\u06cc\u0631\u0647\u200c\u0633\u0627\u0632\u06cc \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 PV \u0648 PVC \u0631\u0627 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f. \u0627\u06cc\u0646 \u0645\u0639\u0645\u0627\u0631\u06cc \u0628\u0631\u0627\u06cc \u062a\u0648\u0633\u0639\u0647\u200c\u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0648 \u0627\u0633\u062a\u0627\u0631\u062a\u200c\u0622\u067e\u200c\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u062f\u0646\u0628\u0627\u0644 \u0633\u0627\u062e\u062a \u06cc\u06a9 \u0632\u06cc\u0631\u0633\u0627\u062e\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0647\u0633\u062a\u0646\u062f\u060c \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0627\u0633\u062a.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center has-text-color has-link-color wp-elements-53874d1e7ea3a4be22bedd44c80fb570\" style=\"color:#044f7b\">\u0633\u0648\u0627\u0644\u0627\u062a \u0645\u062a\u062f\u0627\u0648\u0644<\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1749295908030\"><strong class=\"schema-faq-question\">1. \u0686\u0631\u0627 \u0628\u0627\u06cc\u062f PostgreSQL \u0631\u0627 \u0631\u0648\u06cc Kubernetes \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u0645\u061f<\/strong> <p class=\"schema-faq-answer\">\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0628\u062a\u0648\u0627\u0646\u06cc\u0645\u060c \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0627 \u0628\u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u062f\u0631 \u0645\u062d\u06cc\u0637 \u06a9\u0644\u0627\u0633\u062a\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u06cc\u0645.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1749295965037\"><strong class=\"schema-faq-question\">\u0686\u0637\u0648\u0631 \u0627\u0632 PostgreSQL \u062f\u0631 Kubernetes \u0628\u06a9\u0627\u067e\u200c \u0628\u06af\u06cc\u0631\u06cc\u0645\u061f<\/strong> <p class=\"schema-faq-answer\">\u0628\u0647 \u06a9\u0645\u06a9 pg_dump \u0648 \u062f\u0633\u062a\u0648\u0631\u0627\u062a kubectl exec \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 PostgreSQL \u0628\u06a9\u0627\u067e \u0628\u06af\u06cc\u0631\u06cc\u062f.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0628\u0647 \u0631\u0648\u0634\u06cc \u0645\u062d\u0628\u0648\u0628 \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u0645\u0642\u06cc\u0627\u0633\u200c\u067e\u0630\u06cc\u0631\u060c \u0645\u0646\u0639\u0637\u0641 \u0648 \u067e\u0648\u06cc\u0627 \u062a\u0628\u062f\u06cc\u0644 \u0634\u062f\u0647 \u0627\u0633\u062a. Kubernetes \u0628\u0627 \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc \u0627\u0631\u06a9\u0633\u062a\u0631\u0627\u0633\u06cc\u0648\u0646 \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631\u060c \u06cc\u06a9 \u0686\u0627\u0631\u0686\u0648\u0628 \u0642\u062f\u0631\u062a\u0645\u0646\u062f \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0642\u0631\u0627\u0631 \u0648 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627\u060c \u0627\u0632 \u062c\u0645\u0644\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647\u200c\u0647\u0627\u06cc \u062f\u0627\u062f\u0647 \u0645\u0627\u0646\u0646\u062f PostgreSQL\u060c \u062f\u0631 \u06cc\u06a9 \u0645\u062d\u06cc\u0637 \u062a\u0648\u0632\u06cc\u0639\u200c\u0634\u062f\u0647 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f. \u0627\u06cc\u0646 \u06cc\u06a9\u067e\u0627\u0631\u0686\u0647\u200c\u0633\u0627\u0632\u06cc &hellip;<\/p>\n","protected":false},"author":7,"featured_media":6376,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[446],"tags":[],"class_list":["post-6367","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-446"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes -<\/title>\n<meta name=\"description\" content=\"\u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0642\u0627\u0628\u0644 \u0645\u062f\u06cc\u0631\u06cc\u062a \u062f\u0631 \u0641\u0636\u0627\u06cc \u0627\u0628\u0631\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f\u060c \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0628\u0647\u062a\u0631\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0627\u0633\u062a.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zaminhost.com\/blog\/\u0631\u0627\u0647-\u0627\u0646\u062f\u0627\u0632\u06cc-postgres-\u062f\u0631-kubernetes\/\" \/>\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 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes -\" \/>\n<meta property=\"og:description\" content=\"\u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0642\u0627\u0628\u0644 \u0645\u062f\u06cc\u0631\u06cc\u062a \u062f\u0631 \u0641\u0636\u0627\u06cc \u0627\u0628\u0631\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f\u060c \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0628\u0647\u062a\u0631\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0627\u0633\u062a.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zaminhost.com\/blog\/\u0631\u0627\u0647-\u0627\u0646\u062f\u0627\u0632\u06cc-postgres-\u062f\u0631-kubernetes\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-07T12:06:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-14T04:57:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2025\/06\/zamin-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"506\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u0645\u0644\u06cc\u06a9\u0627 \u0627\u0635\u063a\u0631\u0632\u0627\u062f\u0647\" \/>\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\u0644\u06cc\u06a9\u0627 \u0627\u0635\u063a\u0631\u0632\u0627\u062f\u0647\" \/>\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=\"1 \u062f\u0642\u06cc\u0642\u0647\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/\"},\"author\":{\"name\":\"\u0645\u0644\u06cc\u06a9\u0627 \u0627\u0635\u063a\u0631\u0632\u0627\u062f\u0647\",\"@id\":\"https:\/\/zaminhost.com\/blog\/#\/schema\/person\/98fada6ac5d550ae3771b579144b58c3\"},\"headline\":\"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes\",\"datePublished\":\"2025-06-07T12:06:54+00:00\",\"dateModified\":\"2025-09-14T04:57:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/\"},\"wordCount\":253,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/zaminhost.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2025\/06\/zamin-2.jpg\",\"articleSection\":[\"\u062a\u06a9\u0646\u0648\u0644\u0648\u0698\u06cc\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#respond\"]}]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/\",\"url\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/\",\"name\":\"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes -\",\"isPartOf\":{\"@id\":\"https:\/\/zaminhost.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2025\/06\/zamin-2.jpg\",\"datePublished\":\"2025-06-07T12:06:54+00:00\",\"dateModified\":\"2025-09-14T04:57:27+00:00\",\"description\":\"\u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0642\u0627\u0628\u0644 \u0645\u062f\u06cc\u0631\u06cc\u062a \u062f\u0631 \u0641\u0636\u0627\u06cc \u0627\u0628\u0631\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f\u060c \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0628\u0647\u062a\u0631\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0627\u0633\u062a.\",\"breadcrumb\":{\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#faq-question-1749295908030\"},{\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#faq-question-1749295965037\"}],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#primaryimage\",\"url\":\"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2025\/06\/zamin-2.jpg\",\"contentUrl\":\"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2025\/06\/zamin-2.jpg\",\"width\":900,\"height\":506,\"caption\":\"\u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 Kubernetes\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u062e\u0627\u0646\u0647\",\"item\":\"https:\/\/zaminhost.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zaminhost.com\/blog\/#website\",\"url\":\"https:\/\/zaminhost.com\/blog\/\",\"name\":\"\",\"description\":\"\u0628\u062e\u0634 \u0648\u0628\u0644\u0627\u06af \u0648 \u0645\u062c\u0644\u0647 \u0639\u0644\u0645\u06cc \u0622\u0645\u0648\u0632\u0634\u06cc \u0632\u0645\u06cc\u0646 \u0647\u0627\u0633\u062a\",\"publisher\":{\"@id\":\"https:\/\/zaminhost.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zaminhost.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/zaminhost.com\/blog\/#organization\",\"name\":\"\u0632\u0645\u06cc\u0646 \u0647\u0627\u0633\u062a\",\"url\":\"https:\/\/zaminhost.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/zaminhost.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2022\/07\/logo-org.png\",\"contentUrl\":\"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2022\/07\/logo-org.png\",\"width\":192,\"height\":192,\"caption\":\"\u0632\u0645\u06cc\u0646 \u0647\u0627\u0633\u062a\"},\"image\":{\"@id\":\"https:\/\/zaminhost.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/zaminhost.com\/blog\/#\/schema\/person\/98fada6ac5d550ae3771b579144b58c3\",\"name\":\"\u0645\u0644\u06cc\u06a9\u0627 \u0627\u0635\u063a\u0631\u0632\u0627\u062f\u0647\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/zaminhost.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f32ddeea26f54f7d676f7e3bc312b303a4623286858c93728037e2c68adf2f87?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f32ddeea26f54f7d676f7e3bc312b303a4623286858c93728037e2c68adf2f87?s=96&d=mm&r=g\",\"caption\":\"\u0645\u0644\u06cc\u06a9\u0627 \u0627\u0635\u063a\u0631\u0632\u0627\u062f\u0647\"},\"description\":\"\u0633\u0644\u0627\u0645 \u0645\u0646 \u0645\u0644\u06cc\u06a9\u0627 \u0627\u0635\u063a\u0631\u0632\u0627\u062f\u0647\u200c\u060c \u062f\u0627\u0646\u0634\u062c\u0648\u06cc \u06a9\u0627\u0631\u0634\u0646\u0627\u0633\u06cc \u0645\u0647\u0646\u062f\u0633\u06cc \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631 \u0647\u0633\u062a\u0645\u060c \u0646\u0648\u06cc\u0633\u0646\u062f\u0647 \u0627\u06cc \u0645\u0633\u0644\u0637 \u0628\u0647 \u0632\u0628\u0627\u0646 \u0627\u0646\u06af\u0644\u06cc\u0633\u06cc \u06a9\u0647 \u0628\u0647 \u063a\u06cc\u0631 \u0627\u0632 \u0641\u0627\u0631\u0633\u06cc \u0628\u0647 \u0686\u0646\u062f \u0632\u0628\u0627\u0646 \u062f\u06cc\u06af\u0647 \u0647\u0645 \u0645\u062d\u062a\u0648\u0627 \u062a\u0648\u0644\u06cc\u062f \u0645\u06cc\u200c\u06a9\u0646\u0647 \u0648 \u0645\u0648\u0642\u0639 \u0646\u0648\u0634\u062a\u0646 \u0645\u062d\u062a\u0648\u0627\u060c \u0645\u0642\u0627\u0644\u0627\u062a \u0648 \u0698\u0648\u0631\u0646\u0627\u0644 \u0647\u0627\u06cc \u0627\u0646\u06af\u0644\u06cc\u0633\u06cc \u0632\u0628\u0627\u0646 \u0631\u0648 \u0628\u0631\u0627\u06cc \u0646\u0648\u0634\u062a\u0646 \u0645\u062d\u062a\u0648\u0627\u06cc\u06cc \u0628\u0647\u200c\u0631\u0648\u0632 \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc \u06a9\u0646\u0647. \u0645\u0646 \u062f\u0631 \u0632\u0645\u06cc\u0646 \u0647\u0627\u0633\u062a \u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 \u0646\u0648\u06cc\u0633\u0646\u062f\u0647 \u0648 \u0645\u062f\u06cc\u0631 \u0645\u062d\u062a\u0648\u0627 \u0641\u0639\u0627\u0644\u06cc\u062a \u0645\u06cc\u200c\u06a9\u0646\u0645 \u0648 \u0627\u0645\u06cc\u062f\u0648\u0627\u0631\u0645 \u0645\u0637\u0627\u0644\u0628\u06cc \u06a9\u0647 \u0645\u06cc\u200c\u0646\u0648\u06cc\u0633\u0645 \u062c\u0631\u0642\u0647\u200c\u0627\u06cc \u06a9\u0648\u0686\u06cc\u06a9 \u062f\u0631 \u0630\u0647\u0646 \u0634\u0645\u0627 \u0631\u0648\u0634\u0646 \u06a9\u0646\u0647!\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#faq-question-1749295908030\",\"position\":1,\"url\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#faq-question-1749295908030\",\"name\":\"1. \u0686\u0631\u0627 \u0628\u0627\u06cc\u062f PostgreSQL \u0631\u0627 \u0631\u0648\u06cc Kubernetes \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u0645\u061f\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0628\u062a\u0648\u0627\u0646\u06cc\u0645\u060c \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0627 \u0628\u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u062f\u0631 \u0645\u062d\u06cc\u0637 \u06a9\u0644\u0627\u0633\u062a\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u06cc\u0645.\",\"inLanguage\":\"fa-IR\"},\"inLanguage\":\"fa-IR\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#faq-question-1749295965037\",\"position\":2,\"url\":\"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#faq-question-1749295965037\",\"name\":\"\u0686\u0637\u0648\u0631 \u0627\u0632 PostgreSQL \u062f\u0631 Kubernetes \u0628\u06a9\u0627\u067e\u200c \u0628\u06af\u06cc\u0631\u06cc\u0645\u061f\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"\u0628\u0647 \u06a9\u0645\u06a9 pg_dump \u0648 \u062f\u0633\u062a\u0648\u0631\u0627\u062a kubectl exec \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 PostgreSQL \u0628\u06a9\u0627\u067e \u0628\u06af\u06cc\u0631\u06cc\u062f.\",\"inLanguage\":\"fa-IR\"},\"inLanguage\":\"fa-IR\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes -","description":"\u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0642\u0627\u0628\u0644 \u0645\u062f\u06cc\u0631\u06cc\u062a \u062f\u0631 \u0641\u0636\u0627\u06cc \u0627\u0628\u0631\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f\u060c \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0628\u0647\u062a\u0631\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0627\u0633\u062a.","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:\/\/zaminhost.com\/blog\/\u0631\u0627\u0647-\u0627\u0646\u062f\u0627\u0632\u06cc-postgres-\u062f\u0631-kubernetes\/","og_locale":"fa_IR","og_type":"article","og_title":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes -","og_description":"\u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0642\u0627\u0628\u0644 \u0645\u062f\u06cc\u0631\u06cc\u062a \u062f\u0631 \u0641\u0636\u0627\u06cc \u0627\u0628\u0631\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f\u060c \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0628\u0647\u062a\u0631\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0627\u0633\u062a.","og_url":"https:\/\/zaminhost.com\/blog\/\u0631\u0627\u0647-\u0627\u0646\u062f\u0627\u0632\u06cc-postgres-\u062f\u0631-kubernetes\/","article_published_time":"2025-06-07T12:06:54+00:00","article_modified_time":"2025-09-14T04:57:27+00:00","og_image":[{"width":900,"height":506,"url":"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2025\/06\/zamin-2.jpg","type":"image\/jpeg"}],"author":"\u0645\u0644\u06cc\u06a9\u0627 \u0627\u0635\u063a\u0631\u0632\u0627\u062f\u0647","twitter_card":"summary_large_image","twitter_misc":{"\u0646\u0648\u0634\u062a\u0647\u200c\u0634\u062f\u0647 \u0628\u062f\u0633\u062a":"\u0645\u0644\u06cc\u06a9\u0627 \u0627\u0635\u063a\u0631\u0632\u0627\u062f\u0647","\u0632\u0645\u0627\u0646 \u062a\u0642\u0631\u06cc\u0628\u06cc \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646":"1 \u062f\u0642\u06cc\u0642\u0647"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#article","isPartOf":{"@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/"},"author":{"name":"\u0645\u0644\u06cc\u06a9\u0627 \u0627\u0635\u063a\u0631\u0632\u0627\u062f\u0647","@id":"https:\/\/zaminhost.com\/blog\/#\/schema\/person\/98fada6ac5d550ae3771b579144b58c3"},"headline":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes","datePublished":"2025-06-07T12:06:54+00:00","dateModified":"2025-09-14T04:57:27+00:00","mainEntityOfPage":{"@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/"},"wordCount":253,"commentCount":0,"publisher":{"@id":"https:\/\/zaminhost.com\/blog\/#organization"},"image":{"@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#primaryimage"},"thumbnailUrl":"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2025\/06\/zamin-2.jpg","articleSection":["\u062a\u06a9\u0646\u0648\u0644\u0648\u0698\u06cc"],"inLanguage":"fa-IR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#respond"]}]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/","url":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/","name":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes -","isPartOf":{"@id":"https:\/\/zaminhost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#primaryimage"},"image":{"@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#primaryimage"},"thumbnailUrl":"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2025\/06\/zamin-2.jpg","datePublished":"2025-06-07T12:06:54+00:00","dateModified":"2025-09-14T04:57:27+00:00","description":"\u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u06cc\u06a9 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0642\u0627\u0628\u0644 \u0645\u062f\u06cc\u0631\u06cc\u062a \u062f\u0631 \u0641\u0636\u0627\u06cc \u0627\u0628\u0631\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f\u060c \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes \u0628\u0647\u062a\u0631\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0627\u0633\u062a.","breadcrumb":{"@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#faq-question-1749295908030"},{"@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#faq-question-1749295965037"}],"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/"]}]},{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#primaryimage","url":"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2025\/06\/zamin-2.jpg","contentUrl":"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2025\/06\/zamin-2.jpg","width":900,"height":506,"caption":"\u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 Kubernetes"},{"@type":"BreadcrumbList","@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u062e\u0627\u0646\u0647","item":"https:\/\/zaminhost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc PostgreSQL \u062f\u0631 \u06a9\u0644\u0627\u0633\u062a\u0631 Kubernetes"}]},{"@type":"WebSite","@id":"https:\/\/zaminhost.com\/blog\/#website","url":"https:\/\/zaminhost.com\/blog\/","name":"","description":"\u0628\u062e\u0634 \u0648\u0628\u0644\u0627\u06af \u0648 \u0645\u062c\u0644\u0647 \u0639\u0644\u0645\u06cc \u0622\u0645\u0648\u0632\u0634\u06cc \u0632\u0645\u06cc\u0646 \u0647\u0627\u0633\u062a","publisher":{"@id":"https:\/\/zaminhost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zaminhost.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fa-IR"},{"@type":"Organization","@id":"https:\/\/zaminhost.com\/blog\/#organization","name":"\u0632\u0645\u06cc\u0646 \u0647\u0627\u0633\u062a","url":"https:\/\/zaminhost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/zaminhost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2022\/07\/logo-org.png","contentUrl":"https:\/\/zaminhost.com\/blog\/wp-content\/uploads\/2022\/07\/logo-org.png","width":192,"height":192,"caption":"\u0632\u0645\u06cc\u0646 \u0647\u0627\u0633\u062a"},"image":{"@id":"https:\/\/zaminhost.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zaminhost.com\/blog\/#\/schema\/person\/98fada6ac5d550ae3771b579144b58c3","name":"\u0645\u0644\u06cc\u06a9\u0627 \u0627\u0635\u063a\u0631\u0632\u0627\u062f\u0647","image":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/zaminhost.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f32ddeea26f54f7d676f7e3bc312b303a4623286858c93728037e2c68adf2f87?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f32ddeea26f54f7d676f7e3bc312b303a4623286858c93728037e2c68adf2f87?s=96&d=mm&r=g","caption":"\u0645\u0644\u06cc\u06a9\u0627 \u0627\u0635\u063a\u0631\u0632\u0627\u062f\u0647"},"description":"\u0633\u0644\u0627\u0645 \u0645\u0646 \u0645\u0644\u06cc\u06a9\u0627 \u0627\u0635\u063a\u0631\u0632\u0627\u062f\u0647\u200c\u060c \u062f\u0627\u0646\u0634\u062c\u0648\u06cc \u06a9\u0627\u0631\u0634\u0646\u0627\u0633\u06cc \u0645\u0647\u0646\u062f\u0633\u06cc \u0646\u0631\u0645\u200c\u0627\u0641\u0632\u0627\u0631 \u0647\u0633\u062a\u0645\u060c \u0646\u0648\u06cc\u0633\u0646\u062f\u0647 \u0627\u06cc \u0645\u0633\u0644\u0637 \u0628\u0647 \u0632\u0628\u0627\u0646 \u0627\u0646\u06af\u0644\u06cc\u0633\u06cc \u06a9\u0647 \u0628\u0647 \u063a\u06cc\u0631 \u0627\u0632 \u0641\u0627\u0631\u0633\u06cc \u0628\u0647 \u0686\u0646\u062f \u0632\u0628\u0627\u0646 \u062f\u06cc\u06af\u0647 \u0647\u0645 \u0645\u062d\u062a\u0648\u0627 \u062a\u0648\u0644\u06cc\u062f \u0645\u06cc\u200c\u06a9\u0646\u0647 \u0648 \u0645\u0648\u0642\u0639 \u0646\u0648\u0634\u062a\u0646 \u0645\u062d\u062a\u0648\u0627\u060c \u0645\u0642\u0627\u0644\u0627\u062a \u0648 \u0698\u0648\u0631\u0646\u0627\u0644 \u0647\u0627\u06cc \u0627\u0646\u06af\u0644\u06cc\u0633\u06cc \u0632\u0628\u0627\u0646 \u0631\u0648 \u0628\u0631\u0627\u06cc \u0646\u0648\u0634\u062a\u0646 \u0645\u062d\u062a\u0648\u0627\u06cc\u06cc \u0628\u0647\u200c\u0631\u0648\u0632 \u0628\u0631\u0631\u0633\u06cc \u0645\u06cc \u06a9\u0646\u0647. \u0645\u0646 \u062f\u0631 \u0632\u0645\u06cc\u0646 \u0647\u0627\u0633\u062a \u0628\u0647\u200c\u0639\u0646\u0648\u0627\u0646 \u0646\u0648\u06cc\u0633\u0646\u062f\u0647 \u0648 \u0645\u062f\u06cc\u0631 \u0645\u062d\u062a\u0648\u0627 \u0641\u0639\u0627\u0644\u06cc\u062a \u0645\u06cc\u200c\u06a9\u0646\u0645 \u0648 \u0627\u0645\u06cc\u062f\u0648\u0627\u0631\u0645 \u0645\u0637\u0627\u0644\u0628\u06cc \u06a9\u0647 \u0645\u06cc\u200c\u0646\u0648\u06cc\u0633\u0645 \u062c\u0631\u0642\u0647\u200c\u0627\u06cc \u06a9\u0648\u0686\u06cc\u06a9 \u062f\u0631 \u0630\u0647\u0646 \u0634\u0645\u0627 \u0631\u0648\u0634\u0646 \u06a9\u0646\u0647!"},{"@type":"Question","@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#faq-question-1749295908030","position":1,"url":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#faq-question-1749295908030","name":"1. \u0686\u0631\u0627 \u0628\u0627\u06cc\u062f PostgreSQL \u0631\u0627 \u0631\u0648\u06cc Kubernetes \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0646\u06cc\u0645\u061f","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0628\u062a\u0648\u0627\u0646\u06cc\u0645\u060c \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0631\u0627 \u0628\u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u062f\u0631 \u0645\u062d\u06cc\u0637 \u06a9\u0644\u0627\u0633\u062a\u0631 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u06cc\u0645.","inLanguage":"fa-IR"},"inLanguage":"fa-IR"},{"@type":"Question","@id":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#faq-question-1749295965037","position":2,"url":"https:\/\/zaminhost.com\/blog\/%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-postgres-%d8%af%d8%b1-kubernetes\/#faq-question-1749295965037","name":"\u0686\u0637\u0648\u0631 \u0627\u0632 PostgreSQL \u062f\u0631 Kubernetes \u0628\u06a9\u0627\u067e\u200c \u0628\u06af\u06cc\u0631\u06cc\u0645\u061f","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u0628\u0647 \u06a9\u0645\u06a9 pg_dump \u0648 \u062f\u0633\u062a\u0648\u0631\u0627\u062a kubectl exec \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 PostgreSQL \u0628\u06a9\u0627\u067e \u0628\u06af\u06cc\u0631\u06cc\u062f.","inLanguage":"fa-IR"},"inLanguage":"fa-IR"}]}},"_links":{"self":[{"href":"https:\/\/zaminhost.com\/blog\/wp-json\/wp\/v2\/posts\/6367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zaminhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zaminhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zaminhost.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/zaminhost.com\/blog\/wp-json\/wp\/v2\/comments?post=6367"}],"version-history":[{"count":12,"href":"https:\/\/zaminhost.com\/blog\/wp-json\/wp\/v2\/posts\/6367\/revisions"}],"predecessor-version":[{"id":7356,"href":"https:\/\/zaminhost.com\/blog\/wp-json\/wp\/v2\/posts\/6367\/revisions\/7356"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zaminhost.com\/blog\/wp-json\/wp\/v2\/media\/6376"}],"wp:attachment":[{"href":"https:\/\/zaminhost.com\/blog\/wp-json\/wp\/v2\/media?parent=6367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zaminhost.com\/blog\/wp-json\/wp\/v2\/categories?post=6367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zaminhost.com\/blog\/wp-json\/wp\/v2\/tags?post=6367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}