{"id":90272,"date":"2020-07-30T13:42:02","date_gmt":"2020-07-30T11:42:02","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci"},"modified":"2020-07-30T13:42:02","modified_gmt":"2020-07-30T11:42:02","slug":"canary-deployment-v-kubernetes-1-gitlab-ci","status":"publish","type":"post","link":"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci","title":{"rendered":"Kubernetes \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 Canary Deployment \u21161: GitLab CI","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<h4 id=\"my-budem-ispolzovat-gitlab-ci-i-ruchnoy-gitops-dlya-vnedreniya-i-ispolzovaniya-canary-deploya-v-kubernetes\">Kubernetes \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435 Canary-\u0434\u0435\u043f\u043b\u043e\u0439\u0434\u044b \u0435\u043d\u0433\u0456\u0437\u0443 \u0436\u04d9\u043d\u0435 \u049b\u043e\u043b\u0434\u0430\u043d\u0443 \u04af\u0448\u0456\u043d GitLab CI \u043c\u0435\u043d \u049b\u043e\u043b\u043c\u0435\u043d \u043e\u0440\u044b\u043d\u0434\u0430\u043b\u0430\u0442\u044b\u043d GitOps \u0442\u04d9\u0441\u0456\u043b\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u043c\u044b\u0437<\/h4>\n<p>\n<img decoding=\"async\" alt=\"Kubernetes \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 Canary Deployment \u21161: GitLab CI\" src=\"\/wp-content\/uploads\/2020\/07\/03a53dec150529deb3438efaeaa8a1bd.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<h4 id=\"stati-iz-etogo-cikla\">\u041e\u0441\u044b \u0442\u043e\u043f\u0442\u0430\u043c\u0430\u0434\u0430\u0493\u044b \u043c\u0430\u049b\u0430\u043b\u0430\u043b\u0430\u0440:<\/h4>\n<p><\/p>\n<ul>\n<li>(\u043e\u0441\u044b \u043c\u0430\u049b\u0430\u043b\u0430)<\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/en\/company\/nixys\/blog\/513118\/\">ArgoCI \u043a\u04e9\u043c\u0435\u0433\u0456\u043c\u0435\u043d Canary Deployment<\/a><\/noindex><\/li>\n<li>Istio \u043a\u04e9\u043c\u0435\u0433\u0456\u043c\u0435\u043d Canary Deployment<\/li>\n<li>Jenkins-X Istio Flagger \u043a\u04e9\u043c\u0435\u0433\u0456\u043c\u0435\u043d Canary Deployment<\/li>\n<\/ul>\n<p><\/p>\n<p>Canary-\u0434\u0435\u043f\u043b\u043e\u0439\u0434\u044b GitOps \u0430\u0440\u049b\u044b\u043b\u044b \u049b\u043e\u043b\u043c\u0435\u043d, Kubernetes-\u0442\u0456\u04a3 \u043d\u0435\u0433\u0456\u0437\u0433\u0456 \u0440\u0435\u0441\u0443\u0440\u0441\u0442\u0430\u0440\u044b\u043d \u0436\u0430\u0441\u0430\u0443 \u043d\u0435\u043c\u0435\u0441\u0435 \u04e9\u0437\u0433\u0435\u0440\u0442\u0443 \u0436\u043e\u043b\u044b\u043c\u0435\u043d \u043e\u0440\u044b\u043d\u0434\u0430\u0439\u043c\u044b\u0437. <strong>\u0411\u04b1\u043b \u043c\u0430\u049b\u0430\u043b\u0430, \u0435\u04a3 \u0430\u043b\u0434\u044b\u043c\u0435\u043d,<\/strong> Kubernetes \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435 Canary-\u0434\u0435\u043f\u043b\u043e\u0439\u0434\u044b\u04a3 \u049b\u0430\u043b\u0430\u0439 \u0436\u04b1\u043c\u044b\u0441 \u0456\u0441\u0442\u0435\u0439\u0442\u0456\u043d\u0456\u043d \u0442\u04af\u0441\u0456\u043d\u0434\u0456\u0440\u0443\u0433\u0435 \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d. \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0442\u0430\u043d\u0434\u044b\u0440\u0443\u0434\u044b\u04a3 \u0442\u0438\u0456\u043c\u0434\u0456\u0440\u0435\u043a \u0442\u04d9\u0441\u0456\u043b\u0434\u0435\u0440\u0456\u043d \u043a\u0435\u043b\u0435\u0441\u0456 \u043c\u0430\u049b\u0430\u043b\u0430\u043b\u0430\u0440\u0434\u0430 \u049b\u0430\u0440\u0430\u0441\u0442\u044b\u0440\u0430\u043c\u044b\u0437.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\n<img decoding=\"async\" alt=\"Kubernetes \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 Canary Deployment \u21161: GitLab CI\" src=\"\/wp-content\/uploads\/2020\/07\/d5127cf7dcec695bd8872b1704eb7e90.jpeg\" style=\"display:block;margin: 0 auto;\" \/><\/p>\n<p><noindex><a rel=\"nofollow\" href=\"https:\/\/www.norberteder.com\/canary-deployment\/\">https:\/\/www.norberteder.com\/canary-deployment\/<\/a><\/noindex><\/p>\n<p><\/p>\n<h3 id=\"canary-deployment\">Canary Deployment<\/h3>\n<p><\/p>\n<p>Canary \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f\u0441\u044b\u043d\u0434\u0430 \u0436\u0430\u04a3\u0430\u0440\u0442\u0443 \u0430\u043b\u0434\u044b\u043c\u0435\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0448\u044b\u043b\u0430\u0440\u0434\u044b\u04a3 \u0431\u0456\u0440 \u0431\u04e9\u043b\u0456\u0433\u0456\u043d\u0435 \u0493\u0430\u043d\u0430 \u049b\u043e\u043b\u0434\u0430\u043d\u044b\u043b\u0430\u0434\u044b. \u0428\u044b\u0493\u0430\u0440\u044b\u043b\u044b\u043c \u0431\u0430\u0440\u043b\u044b\u049b \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0448\u044b\u0493\u0430 \u0442\u0430\u0440\u0430\u0442\u044b\u043b\u043c\u0430\u0441 \u0431\u04b1\u0440\u044b\u043d \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433, \u0436\u0443\u0440\u043d\u0430\u043b \u0434\u0435\u0440\u0435\u043a\u0442\u0435\u0440\u0456, \u049b\u043e\u043b\u043c\u0435\u043d \u0442\u0435\u0441\u0442\u0456\u043b\u0435\u0443 \u043d\u0435\u043c\u0435\u0441\u0435 \u043a\u0435\u0440\u0456 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b\u04a3 \u0431\u0430\u0441\u049b\u0430 \u0430\u0440\u043d\u0430\u043b\u0430\u0440\u044b \u0430\u0440\u049b\u044b\u043b\u044b \u0442\u0435\u043a\u0441\u0435\u0440\u0456\u043b\u0435\u0434\u0456.<\/p>\n<p><\/p>\n<h3 id=\"kubernetes-deployment-rolling-update\">Kubernetes Deployment (rolling update)<\/h3>\n<p><\/p>\n<p>Kubernetes Deployment \u04af\u0448\u0456\u043d \u04d9\u0434\u0435\u043f\u043a\u0456 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u2014 rolling update. \u0411\u04b1\u043b \u043a\u0435\u0437\u0434\u0435 \u0436\u0430\u04a3\u0430 \u043d\u04b1\u0441\u049b\u0430\u0434\u0430\u0493\u044b \u043e\u0431\u0440\u0430\u0437\u0434\u0430\u0440\u044b \u0431\u0430\u0440 \u0431\u0435\u043b\u0433\u0456\u043b\u0456 \u0431\u0456\u0440 pod \u0441\u0430\u043d\u044b \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u044b\u043b\u0430\u0434\u044b. \u041e\u043b\u0430\u0440 \u0435\u0448 \u049b\u0438\u044b\u043d\u0434\u044b\u049b\u0441\u044b\u0437 \u0436\u0430\u0441\u0430\u043b\u0441\u0430, \u0435\u0441\u043a\u0456 \u043d\u04b1\u0441\u049b\u0430\u0434\u0430\u0493\u044b \u043e\u0431\u0440\u0430\u0437\u0434\u0430\u0440\u044b \u0431\u0430\u0440 pod-\u0442\u0430\u0440 \u0442\u043e\u049b\u0442\u0430\u0442\u044b\u043b\u044b\u043f, \u043e\u0440\u043d\u044b\u043d\u0430 \u0436\u0430\u04a3\u0430\u043b\u0430\u0440\u044b \u049b\u0430\u0442\u0430\u0440 \u0436\u0430\u0441\u0430\u043b\u0430\u0434\u044b.<\/p>\n<p><\/p>\n<h3 id=\"gitops\">GitOps<\/h3>\n<p><\/p>\n<p>\u0411\u04b1\u043b \u043c\u044b\u0441\u0430\u043b\u0434\u0430 GitOps \u0442\u04d9\u0441\u0456\u043b\u0456\u043d \u049b\u043e\u043b\u0434\u0430\u043d\u0430\u043c\u044b\u0437, \u0441\u0435\u0431\u0435\u0431\u0456 \u0431\u0456\u0437:<\/p>\n<p><\/p>\n<ul>\n<li>Git-\u0442\u0456 \u0430\u049b\u0438\u049b\u0430\u0442\u0442\u044b\u04a3 \u0431\u0456\u0440\u044b\u04a3\u0493\u0430\u0439 \u043a\u04e9\u0437\u0456 \u0440\u0435\u0442\u0456\u043d\u0434\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u043c\u044b\u0437<\/li>\n<li>\u049a\u04b1\u0440\u0430\u0441\u0442\u044b\u0440\u0443 \u043c\u0435\u043d \u0434\u0435\u043f\u043b\u043e\u0439 \u0436\u0430\u0441\u0430\u0443 \u04af\u0448\u0456\u043d Git Operations \u049b\u043e\u043b\u0434\u0430\u043d\u0430\u043c\u044b\u0437 (git tag\/merge \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043b\u0430\u0440\u044b\u043d\u0430\u043d \u0431\u0430\u0441\u049b\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043b\u0430\u0440 \u049b\u0430\u0436\u0435\u0442 \u0435\u043c\u0435\u0441)<\/li>\n<\/ul>\n<p><\/p>\n<h3 id=\"primer\">\u041c\u044b\u0441\u0430\u043b<\/h3>\n<p><\/p>\n<p>\u0416\u0430\u049b\u0441\u044b \u0442\u04d9\u0436\u0456\u0440\u0438\u0431\u0435\u043d\u0456 \u04b1\u0441\u0442\u0430\u043d\u044b\u043f, \u049b\u043e\u043b\u0434\u0430\u043d\u0431\u0430 \u043a\u043e\u0434\u044b \u04af\u0448\u0456\u043d \u0431\u0456\u0440 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439, \u0430\u043b \u0438\u043d\u0444\u0440\u0430\u049b\u04b1\u0440\u044b\u043b\u044b\u043c \u04af\u0448\u0456\u043d \u0431\u04e9\u043b\u0435\u043a \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u049b\u043e\u043b\u0434\u0430\u043d\u0430\u043c\u044b\u0437.<\/p>\n<p><\/p>\n<h4 id=\"repozitoriy-dlya-prilozheniy\">\u049a\u043e\u043b\u0434\u0430\u043d\u0431\u0430\u043b\u0430\u0440 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439\u0456<\/h4>\n<p><\/p>\n<p>\u0411\u04b1\u043b \u2014 JSON \u0442\u04af\u0440\u0456\u043d\u0434\u0435 \u0436\u0430\u0443\u0430\u043f \u049b\u0430\u0439\u0442\u0430\u0440\u0430\u0442\u044b\u043d \u04e9\u0442\u0435 \u049b\u0430\u0440\u0430\u043f\u0430\u0439\u044b\u043c Python+Flask API. GitLab CI \u0430\u0440\u049b\u044b\u043b\u044b \u043f\u0430\u043a\u0435\u0442 \u049b\u04b1\u0440\u0430\u0441\u0442\u044b\u0440\u044b\u043f, \u043d\u04d9\u0442\u0438\u0436\u0435\u0441\u0456\u043d GitLab Registry-\u0433\u0435 \u0436\u0456\u0431\u0435\u0440\u0435\u043c\u0456\u0437. Registry-\u0434\u0435 \u0440\u0435\u043b\u0438\u0437\u0434\u0456\u04a3 \u0435\u043a\u0456 \u043d\u04b1\u0441\u049b\u0430\u0441\u044b \u0431\u0430\u0440:<\/p>\n<p><\/p>\n<ul>\n<li><code>wuestkamp\/k8s-deployment-example-app:v1<\/code><\/li>\n<li><code>wuestkamp\/k8s-deployment-example-app:v2<\/code><\/li>\n<\/ul>\n<p><\/p>\n<p>\u041e\u043b\u0430\u0440\u0434\u044b\u04a3 \u0436\u0430\u043b\u0493\u044b\u0437 \u0430\u0439\u044b\u0440\u043c\u0430\u0448\u044b\u043b\u044b\u0493\u044b \u2014 \u049b\u0430\u0439\u0442\u0430\u0440\u044b\u043b\u0430\u0442\u044b\u043d JSON \u0444\u0430\u0439\u043b\u044b\u043d\u044b\u04a3 \u04e9\u0437\u0433\u0435\u0440\u0443\u0456. \u049a\u0430\u0439 \u043d\u04b1\u0441\u049b\u0430\u043c\u0435\u043d \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u044b\u043f \u0442\u04b1\u0440\u0493\u0430\u043d\u044b\u043c\u044b\u0437\u0434\u044b \u0431\u0430\u0440\u044b\u043d\u0448\u0430 \u043e\u04a3\u0430\u0439 \u043a\u04e9\u0440\u0441\u0435\u0442\u0443 \u04af\u0448\u0456\u043d \u043e\u0441\u044b \u049b\u043e\u043b\u0434\u0430\u043d\u0431\u0430\u043d\u044b \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0430\u043c\u044b\u0437.<\/p>\n<p><\/p>\n<h4 id=\"infrastrukturnyy-repozitoriy\">\u0418\u043d\u0444\u0440\u0430\u049b\u04b1\u0440\u044b\u043b\u044b\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439\u0456<\/h4>\n<p><\/p>\n<p>\u0411\u04b1\u043b \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439\u0434\u0435 GitLab CI \u0430\u0440\u049b\u044b\u043b\u044b Kubernetes-\u043a\u0435 \u0434\u0435\u043f\u043b\u043e\u0439 \u0436\u0430\u0441\u0430\u0439\u043c\u044b\u0437, <code>.gitlab-ci.yml<\/code> \u043e\u043b \u043c\u044b\u043d\u0430\u0434\u0430\u0439 \u043a\u04e9\u0440\u0456\u043d\u0435\u0434\u0456:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">image: traherom\/kustomize-docker\n\nbefore_script:\n   - printenv\n   - kubectl version\n\nstages:\n - deploy\n\ndeploy test:\n   stage: deploy\n   before_script:\n     - echo $KUBECONFIG\n   script:\n     - kubectl get all\n     - kubectl apply -f i\/k8s\n\n   only:\n     - master\n<\/code><\/pre>\n<p><\/p>\n<p>\u041e\u043d\u044b \u04e9\u0437\u0456\u04a3\u0456\u0437 \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u0443 \u04af\u0448\u0456\u043d \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u049b\u0430\u0436\u0435\u0442. \u041c\u044b\u0441\u0430\u043b\u044b, Gcloud \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">gcloud container clusters create canary --num-nodes 3 --zone europe-west3-b\n\ngcloud compute firewall-rules create incoming-80 --allow tcp:80<\/code><\/pre>\n<p><\/p>\n<p>\u0421\u0456\u0437\u0433\u0435 \u0444\u043e\u0440\u043a \u0436\u0430\u0441\u0430\u043f, <noindex><a rel=\"nofollow\" href=\"https:\/\/gitlab.com\/wuestkamp\/k8s-deployment-example-canary-infrastructure\">https:\/\/gitlab.com\/wuestkamp\/k8s-deployment-example-canary-infrastructure<\/a><\/noindex> \u0430\u0439\u043d\u044b\u043c\u0430\u043b\u044b \u0436\u0430\u0441\u0430\u0443 \u049b\u0430\u0436\u0435\u0442 <code>KUBECONFIG<\/code> GitlabCI-\u0434\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0456\u04a3\u0456\u0437\u0433\u0435 \u049b\u043e\u043b \u0436\u0435\u0442\u043a\u0456\u0437\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\u0441\u044b\u043d \u049b\u0430\u043c\u0442\u0438\u0442\u044b\u043d <code>kubectl<\/code> \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0456\u04a3\u0456\u0437\u0433\u0435 \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d<\/p>\n<p><\/p>\n<p>\u041a\u043b\u0430\u0441\u0442\u0435\u0440\u0433\u0435 \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d \u0442\u0456\u0440\u043a\u0435\u043b\u0433\u0456 \u0434\u0435\u0440\u0435\u043a\u0442\u0435\u0440\u0456\u043d (Gcloud) \u049b\u0430\u043b\u0430\u0439 \u0430\u043b\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0442\u044b\u043d\u044b\u043d <noindex><a rel=\"nofollow\" href=\"https:\/\/medium.com\/faun\/manually-connect-to-your-kubernetes-cluster-from-the-outside-d852346a7f0a\">\u043c\u044b\u043d\u0430 \u0436\u0435\u0440\u0434\u0435<\/a><\/noindex>.<\/p>\n<p><\/p>\n<h4 id=\"infrastrukturnyy-yaml\">\u0418\u043d\u0444\u0440\u0430\u049b\u04b1\u0440\u044b\u043b\u044b\u043c\u0434\u044b\u049b YAML<\/h4>\n<p><\/p>\n<p>\u0418\u043d\u0444\u0440\u0430\u049b\u04b1\u0440\u044b\u043b\u044b\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439\u0456\u043d\u0434\u0435 \u043c\u044b\u043d\u0430\u0434\u0430\u0439 Service \u0431\u0430\u0440:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">apiVersion: v1\nkind: Service\nmetadata:\n labels:\n   id: app\n name: app\nspec:\n ports:\n - port: 80\n   protocol: TCP\n   targetPort: 5000\n selector:\n   id: app\n type: LoadBalancer<\/code><\/pre>\n<p><\/p>\n<p>\u0421\u043e\u043d\u0434\u0430\u0439-\u0430\u049b <code>deploy.yaml<\/code>:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">apiVersion: apps\/v1\nkind: Deployment\nmetadata:\n name: app\nspec:\n replicas: 10\n selector:\n   matchLabels:\n     id: app\n     type: main\n template:\n   metadata:\n     labels:\n       id: app\n       type: main\n   spec:\n     containers:\n     - image: registry.gitlab.com\/wuestkamp\/k8s-deployment-example-app:v1\n       name: app\n       resources:\n         limits:\n           cpu: 100m\n           memory: 100Mi<\/code><\/pre>\n<p><\/p>\n<p>\u0442\u0430\u0493\u044b \u0431\u0456\u0440 deployment \u0431\u0430\u0440 <code>deploy-canary.yaml<\/code>:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">kind: Deployment\nmetadata:\n name: app-canary\nspec:\n replicas: 0\n selector:\n   matchLabels:\n     id: app\n     type: canary\n template:\n   metadata:\n     labels:\n       id: app\n       type: canary\n   spec:\n     containers:\n     - image: registry.gitlab.com\/wuestkamp\/k8s-deployment-example-app:v2\n       name: app\n       resources:\n         limits:\n           cpu: 100m\n           memory: 100Mi<\/code><\/pre>\n<p><\/p>\n<p>app-deploy \u04af\u0448\u0456\u043d \u0440\u0435\u043f\u043b\u0438\u043a\u0430 \u0441\u0430\u043d\u044b \u04d9\u0437\u0456\u0440\u0433\u0435 \u0430\u043d\u044b\u049b\u0442\u0430\u043b\u043c\u0430\u0493\u0430\u043d\u044b\u043d \u0435\u0441\u043a\u0435\u0440\u0456\u04a3\u0456\u0437.<\/p>\n<p><\/p>\n<h4 id=\"vypolnenie-nachalnogo-deploya\">\u0411\u0430\u0441\u0442\u0430\u043f\u049b\u044b deployment-\u0442\u0456 \u043e\u0440\u044b\u043d\u0434\u0430\u0443<\/h4>\n<p><\/p>\n<p>\u0411\u0430\u0441\u0442\u0430\u043f\u049b\u044b deployment-\u0442\u0456 \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u0443 \u04af\u0448\u0456\u043d GitlabCI \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b\u043d master \u0442\u0430\u0440\u043c\u0430\u0493\u044b\u043d\u0434\u0430 \u049b\u043e\u043b\u043c\u0435\u043d \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b. \u0421\u043e\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d <code>kubectl<\/code> \u043c\u044b\u043d\u0430\u0434\u0430\u0439 \u043d\u04d9\u0442\u0438\u0436\u0435 \u0448\u044b\u0493\u0443\u044b \u0442\u0438\u0456\u0441:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Kubernetes \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 Canary Deployment \u21161: GitLab CI\" src=\"\/wp-content\/uploads\/2020\/07\/e8ea95fe6c3925f46f6430ce2293063c.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>\u0411\u0456\u0437 <code>app<\/code> 10 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0441\u044b \u0431\u0430\u0440 deployment \u043f\u0435\u043d 0 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0441\u044b \u0431\u0430\u0440 app-canary-\u0434\u0456 \u043a\u04e9\u0440\u0435\u043c\u0456\u0437. \u0421\u043e\u043d\u0434\u0430\u0439-\u0430\u049b \u0441\u04b1\u0440\u0430\u0443\u043b\u0430\u0440\u0434\u044b \u043c\u044b\u043d\u0430 LoadBalancer \u0430\u0440\u049b\u044b\u043b\u044b \u0436\u0456\u0431\u0435\u0440\u0435 \u0430\u043b\u0430\u043c\u044b\u0437 <code>curl<\/code> External IP \u0430\u0440\u049b\u044b\u043b\u044b:<\/p>\n<p><\/p>\n<p><code>while true; do curl -s 35.198.149.232 | grep label; sleep 0.1; done<\/code><\/p>\n<p>\n<img decoding=\"async\" alt=\"Kubernetes \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 Canary Deployment \u21161: GitLab CI\" src=\"\/wp-content\/uploads\/2020\/07\/06e6928002532dbe03b65356964110c7.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>\u0422\u0435\u0441\u0442\u0456\u043b\u0456\u043a \u049b\u043e\u043b\u0434\u0430\u043d\u0431\u0430\u043c\u044b\u0437 \u0442\u0435\u043a \u00abv1\u00bb \u043c\u04d9\u043d\u0456\u043d \u049b\u0430\u0439\u0442\u0430\u0440\u0430\u0442\u044b\u043d\u044b\u043d \u043a\u04e9\u0440\u0435\u043c\u0456\u0437.<\/p>\n<p><\/p>\n<h3 id=\"vypolnenie-canary-deploya\">Canary deployment-\u0442\u0456 \u043e\u0440\u044b\u043d\u0434\u0430\u0443<\/h3>\n<p><\/p>\n<h4 id=\"shag-1-vypustit-novuyu-versiyu-dlya-chasti-polzovateley\">1-\u049b\u0430\u0434\u0430\u043c: \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0448\u044b\u043b\u0430\u0440\u0434\u044b\u04a3 \u0431\u0456\u0440 \u0431\u04e9\u043b\u0456\u0433\u0456\u043d\u0435 \u0436\u0430\u04a3\u0430 \u043d\u04b1\u0441\u049b\u0430\u043d\u044b \u0448\u044b\u0493\u0430\u0440\u0443<\/h4>\n<p><\/p>\n<p>deploy-canary.yaml \u0444\u0430\u0439\u043b\u044b\u043d\u0434\u0430 \u0440\u0435\u043f\u043b\u0438\u043a\u0430 \u0441\u0430\u043d\u044b\u043d 1-\u0433\u0435 \u043e\u0440\u043d\u0430\u0442\u044b\u043f, \u0436\u0430\u04a3\u0430 \u043d\u04b1\u0441\u049b\u0430\u043d\u044b\u04a3 \u043e\u0431\u0440\u0430\u0437\u044b\u043d \u043a\u04e9\u0440\u0441\u0435\u0442\u0442\u0456\u043a:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">kind: Deployment\nmetadata:\n name: app-canary\nspec:\n replicas: 1\n selector:\n   matchLabels:\n     id: app\n     type: canary\n template:\n   metadata:\n     labels:\n       id: app\n       type: canary\n   spec:\n     containers:\n     - image: registry.gitlab.com\/wuestkamp\/k8s-deployment-example-app:v2\n       name: app\n       resources:\n         limits:\n           cpu: 100m\n           memory: 100Mi<\/code><\/pre>\n<p><\/p>\n<p>\u0424\u0430\u0439\u043b\u0434\u0430 <code>deploy.yaml<\/code> \u0440\u0435\u043f\u043b\u0438\u043a\u0430 \u0441\u0430\u043d\u044b\u043d 9-\u0493\u0430 \u04e9\u0437\u0433\u0435\u0440\u0442\u0442\u0456\u043a:<\/p>\n<p><\/p>\n<pre><code class=\"plaintext\">kind: Deployment\nmetadata:\n name: app\nspec:\n replicas: 9\n selector:\n   matchLabels:\n     id: app\n...<\/code><\/pre>\n<p><\/p>\n<p>\u0411\u04b1\u043b \u04e9\u0437\u0433\u0435\u0440\u0456\u0441\u0442\u0435\u0440\u0434\u0456 deployment \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u044b\u043b\u0430\u0442\u044b\u043d \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439\u0433\u0435 \u0436\u0456\u0431\u0435\u0440\u0435\u043c\u0456\u0437 (GitlabCI \u0430\u0440\u049b\u044b\u043b\u044b). \u041d\u04d9\u0442\u0438\u0436\u0435\u0441\u0456\u043d\u0434\u0435 \u043c\u044b\u043d\u0430\u043d\u044b \u043a\u04e9\u0440\u0435\u043c\u0456\u0437:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Kubernetes \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 Canary Deployment \u21161: GitLab CI\" src=\"\/wp-content\/uploads\/2020\/07\/b639716b31e41e8eac573fd365ad6780.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>Service \u0435\u043a\u0456 deployment-\u043a\u0435 \u0434\u0435 \u0431\u0430\u0493\u044b\u0442\u0442\u0430\u043b\u0430\u0434\u044b, \u04e9\u0439\u0442\u043a\u0435\u043d\u0456 \u0435\u043a\u0435\u0443\u0456\u043d\u0434\u0435 \u0434\u0435 app \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b \u0431\u0430\u0440. Kubernetes \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 \u04d9\u0434\u0435\u043f\u043a\u0456 \u043a\u0435\u0437\u0434\u0435\u0439\u0441\u043e\u049b \u04af\u043b\u0435\u0441\u0442\u0456\u0440\u0443\u0433\u0435 \u0431\u0430\u0439\u043b\u0430\u043d\u044b\u0441\u0442\u044b \u0441\u04b1\u0440\u0430\u0443\u043b\u0430\u0440\u0434\u044b\u04a3 \u0448\u0430\u043c\u0430\u043c\u0435\u043d 10%-\u044b\u043d\u0430 \u04d9\u0440\u0442\u04af\u0440\u043b\u0456 \u0436\u0430\u0443\u0430\u043f \u0430\u043b\u044b\u043d\u0443\u044b \u043a\u0435\u0440\u0435\u043a:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Kubernetes \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 Canary Deployment \u21161: GitLab CI\" src=\"\/wp-content\/uploads\/2020\/07\/d1177207ebd8952fd1994ed0ebdda6a3.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>\u049a\u043e\u043b\u0434\u0430\u043d\u0431\u0430\u043c\u044b\u0437\u0434\u044b\u04a3 \u0430\u0493\u044b\u043c\u0434\u0430\u0493\u044b \u043a\u04af\u0439\u0456\u043d\u0434\u0435 (GitOps, Git-\u0442\u0435\u043d \u0430\u043b\u044b\u043d\u0493\u0430\u043d Single Source Of Truth) \u0431\u0435\u043b\u0441\u0435\u043d\u0434\u0456 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u043b\u0430\u0440\u044b \u0431\u0430\u0440 \u0435\u043a\u0456 deployment \u0431\u0430\u0440, \u04d9\u0440 \u043d\u04b1\u0441\u049b\u0430\u0493\u0430 \u0431\u0456\u0440\u0435\u0443\u0434\u0435\u043d.<\/p>\n<p><\/p>\n<p>\u041f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0448\u044b\u043b\u0430\u0440\u0434\u044b\u04a3 \u0448\u0430\u043c\u0430\u043c\u0435\u043d 10%-\u044b \u0436\u0430\u04a3\u0430 \u043d\u04b1\u0441\u049b\u0430\u043c\u0435\u043d \u0442\u0430\u043d\u044b\u0441\u044b\u043f, \u043e\u043d\u044b \u0431\u0430\u0439\u049b\u0430\u043c\u0430\u0439 \u0441\u044b\u043d\u0430\u049b\u0442\u0430\u043d \u04e9\u0442\u043a\u0456\u0437\u0435\u0434\u0456. \u0415\u043d\u0434\u0456 \u0436\u0443\u0440\u043d\u0430\u043b\u0434\u0430\u0440 \u043c\u0435\u043d \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0434\u0435\u0440\u0435\u043a\u0442\u0435\u0440\u0456\u043d\u0435\u043d \u049b\u0430\u0442\u0435\u043b\u0435\u0440\u0434\u0456 \u049b\u0430\u0440\u0430\u043f, \u0430\u049b\u0430\u0443\u043b\u0430\u0440\u0434\u044b \u0430\u043d\u044b\u049b\u0442\u0430\u0443 \u043a\u0435\u0440\u0435\u043a.<\/p>\n<p><\/p>\n<h4 id=\"shag-2-vypustit-novuyu-versiyu-dlya-vseh-polzovateley\">2-\u049b\u0430\u0434\u0430\u043c: \u0436\u0430\u04a3\u0430 \u043d\u04b1\u0441\u049b\u0430\u043d\u044b \u0431\u0430\u0440\u043b\u044b\u049b \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0448\u044b\u0493\u0430 \u0448\u044b\u0493\u0430\u0440\u0443<\/h4>\n<p><\/p>\n<p>\u0411\u0430\u0440\u043b\u044b\u0493\u044b \u0441\u04d9\u0442\u0442\u0456 \u04e9\u0442\u0442\u0456 \u0434\u0435\u043f \u0448\u0435\u0448\u0442\u0456\u043a, \u0435\u043d\u0434\u0456 \u0436\u0430\u04a3\u0430 \u043d\u04b1\u0441\u049b\u0430\u043d\u044b \u0431\u0430\u0440\u043b\u044b\u049b \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0448\u044b\u0493\u0430 \u043e\u0440\u043d\u0430\u043b\u0430\u0441\u0442\u044b\u0440\u0443\u044b\u043c\u044b\u0437 \u043a\u0435\u0440\u0435\u043a. \u041e\u043b \u04af\u0448\u0456\u043d \u0431\u0456\u0437 \u0436\u0430\u0439 \u0493\u0430\u043d\u0430 \u0436\u0430\u04a3\u0430\u0440\u0442\u0430\u043c\u044b\u0437 <code>deploy.yaml<\/code> \u0436\u0430\u04a3\u0430 \u043d\u04b1\u0441\u049b\u0430\u0434\u0430\u0493\u044b \u043e\u0431\u0440\u0430\u0437\u0434\u044b \u043e\u0440\u043d\u0430\u0442\u044b\u043f, \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u043b\u0430\u0440 \u0441\u0430\u043d\u044b\u043d 10-\u0493\u0430 \u0434\u0435\u0439\u0456\u043d \u0436\u0435\u0442\u043a\u0456\u0437\u0435\u043c\u0456\u0437. \u0410\u043b <code>deploy-canary.yaml<\/code> \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u043b\u0430\u0440 \u0441\u0430\u043d\u044b\u043d \u049b\u0430\u0439\u0442\u0430\u0434\u0430\u043d 0-\u0433\u0435 \u0442\u0435\u04a3 \u0435\u0442\u0456\u043f \u049b\u043e\u044f\u043c\u044b\u0437. \u0414\u0435\u043f\u043b\u043e\u0439\u0434\u0430\u043d \u043a\u0435\u0439\u0456\u043d \u043d\u04d9\u0442\u0438\u0436\u0435 \u043c\u044b\u043d\u0430\u0434\u0430\u0439 \u0431\u043e\u043b\u0430\u0434\u044b:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Kubernetes \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435\u0433\u0456 Canary Deployment \u21161: GitLab CI\" src=\"\/wp-content\/uploads\/2020\/07\/a31aafe96a09c6d2651b2bf7add4dd29.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<h3 id=\"podvodya-itog\">\u049a\u043e\u0440\u044b\u0442\u044b\u043d\u0434\u044b<\/h3>\n<p><\/p>\n<p>\u041c\u0435\u043d\u0456\u04a3\u0448\u0435, \u0434\u0435\u043f\u043b\u043e\u0439\u0434\u044b \u043e\u0441\u044b\u043b\u0430\u0439 \u049b\u043e\u043b\u043c\u0435\u043d \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u0443 \u043e\u043d\u044b\u04a3 k8s \u043a\u04e9\u043c\u0435\u0433\u0456\u043c\u0435\u043d \u049b\u0430\u043d\u0448\u0430\u043b\u044b\u049b\u0442\u044b \u043e\u04a3\u0430\u0439 \u0431\u0430\u043f\u0442\u0430\u043b\u0430\u0442\u044b\u043d\u044b\u043d \u0442\u04af\u0441\u0456\u043d\u0443\u0433\u0435 \u043a\u04e9\u043c\u0435\u043a\u0442\u0435\u0441\u0435\u0434\u0456. Kubernetes \u0436\u04af\u0439\u0435\u0441\u0456\u043d\u0434\u0435 \u0431\u0430\u0440\u043b\u044b\u0493\u044b\u043d API \u0430\u0440\u049b\u044b\u043b\u044b \u0436\u0430\u04a3\u0430\u0440\u0442\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0442\u044b\u043d\u0434\u044b\u049b\u0442\u0430\u043d, \u0431\u04b1\u043b \u049b\u0430\u0434\u0430\u043c\u0434\u0430\u0440\u0434\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u0442\u0435\u0440 \u0430\u0440\u049b\u044b\u043b\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0442\u0430\u043d\u0434\u044b\u0440\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b.<\/p>\n<p><\/p>\n<p>\u0422\u0430\u0493\u044b \u0431\u0456\u0440 \u0456\u0441\u043a\u0435 \u0430\u0441\u044b\u0440\u044b\u043b\u0443\u044b \u049b\u0430\u0436\u0435\u0442 \u043c\u04af\u043c\u043a\u0456\u043d\u0434\u0456\u043a \u2014 \u0442\u0435\u0441\u0442\u0456\u043b\u0435\u0443\u0448\u0456\u043d\u0456\u04a3 \u043a\u0456\u0440\u0443 \u043d\u04af\u043a\u0442\u0435\u0441\u0456 (LoadBalancer \u043d\u0435\u043c\u0435\u0441\u0435 Ingress \u0430\u0440\u049b\u044b\u043b\u044b). \u041e\u043b \u0430\u0440\u049b\u044b\u043b\u044b \u0442\u0435\u043a \u0436\u0430\u04a3\u0430 \u043d\u04b1\u0441\u049b\u0430\u0493\u0430 \u049b\u043e\u043b \u0436\u0435\u0442\u043a\u0456\u0437\u0443\u0433\u0435 \u0431\u043e\u043b\u0430\u0434\u044b. \u0411\u04b1\u043b \u043d\u04b1\u0441\u049b\u0430\u043d\u044b \u049b\u043e\u043b\u043c\u0435\u043d \u049b\u0430\u0440\u0430\u043f \u0448\u044b\u0493\u0443 \u04af\u0448\u0456\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0493\u0430 \u0431\u043e\u043b\u0430\u0434\u044b.<\/p>\n<p><\/p>\n<p>\u041a\u0435\u043b\u0435\u0441\u0456 \u043c\u0430\u049b\u0430\u043b\u0430\u043b\u0430\u0440\u0434\u0430 \u0431\u0456\u0437 \u043e\u0441\u044b \u0436\u04b1\u043c\u044b\u0441\u0442\u044b\u04a3 \u0431\u0430\u0441\u044b\u043c \u0431\u04e9\u043b\u0456\u0433\u0456\u043d \u043e\u0440\u044b\u043d\u0434\u0430\u0439\u0442\u044b\u043d \u0431\u0430\u0441\u049b\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0442\u0430\u043d\u0434\u044b\u0440\u044b\u043b\u0493\u0430\u043d \u0448\u0435\u0448\u0456\u043c\u0434\u0435\u0440\u0434\u0456 \u049b\u0430\u0440\u0430\u0441\u0442\u044b\u0440\u0430\u043c\u044b\u0437.<\/p>\n<p><\/p>\n<h2 id=\"takzhe-chitayte-drugie-stati-v-nashem-bloge\">\u0411\u043b\u043e\u0433\u044b\u043c\u044b\u0437\u0434\u0430\u0493\u044b \u0431\u0430\u0441\u049b\u0430 \u043c\u0430\u049b\u0430\u043b\u0430\u043b\u0430\u0440\u0434\u044b \u0434\u0430 \u043e\u049b\u044b\u04a3\u044b\u0437:<\/h2>\n<p><\/p>\n<ul>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/468779\/\">ClickHouse-\u0442\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f\u0441\u044b\u0437 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443\u0434\u0430\u043d \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u049b\u043e\u0441\u044b\u043b\u0493\u0430\u043d \u043d\u04b1\u0441\u049b\u0430\u0493\u0430 \u043a\u04e9\u0448\u0443 \u043d\u04d9\u0442\u0438\u0436\u0435\u0441\u0456<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/473578\/\">Nginx \u04af\u0448\u0456\u043d \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0430\u043b\u044b\u049b \u043c\u043e\u0434\u0443\u043b\u044c\u0434\u0435\u0440\u0434\u0456 \u049b\u04b1\u0440\u0430\u0441\u0442\u044b\u0440\u0443<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/news\/t\/502658\/\">deb \u0436\u04d9\u043d\u0435 rpm \u043f\u0430\u043a\u0435\u0442\u0442\u0435\u0440\u0456\u043d \u049b\u04b1\u0440\u0430\u0441\u0442\u044b\u0440\u0443\u0493\u0430 \u043a\u04e9\u043c\u0435\u043a\u0442\u0435\u0441\u0435\u0442\u0456\u043d nxs-build-tools \u049b\u04b1\u0440\u0430\u043b\u044b\u043d\u044b\u04a3 \u0436\u0430\u04a3\u0430\u0440\u0442\u0443\u044b<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/473014\/\">HashiCorp Consul-\u0434\u044b\u04a3 Kubernetes \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f\u0441\u044b\u043d\u0430 \u043a\u0456\u0440\u0456\u0441\u043f\u0435<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/504762\/\">Csync2 \u0443\u0442\u0438\u043b\u0438\u0442\u0430\u0441\u044b\u043d \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0493\u0430\u043d\u0434\u0430 \u049b\u0430\u043d\u0434\u0430\u0439 \u043c\u04d9\u0441\u0435\u043b\u0435\u043b\u0435\u0440\u0433\u0435 \u0442\u0430\u043f \u0431\u043e\u043b\u0434\u044b\u049b<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/347526\/\">Redmine-\u0433\u0435 \u0430\u0440\u043d\u0430\u043b\u0493\u0430\u043d Telegram-\u0431\u043e\u0442: \u04e9\u0437\u0456\u043c\u0456\u0437\u0434\u0456\u04a3 \u0434\u0435, \u04e9\u0437\u0433\u0435\u043b\u0435\u0440\u0434\u0456\u04a3 \u0434\u0435 \u0436\u04b1\u043c\u044b\u0441\u044b\u043d \u049b\u0430\u043b\u0430\u0439 \u0436\u0435\u04a3\u0456\u043b\u0434\u0435\u0442\u0443\u0433\u0435 \u0431\u043e\u043b\u0430\u0434\u044b<\/a><\/noindex><\/li>\n<\/ul>\n<p>\u0414\u0435\u0440\u0435\u043a\u043a\u04e9\u0437: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/512766\/\">habr.com<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Gitlab CI \u0438 \u0440\u0443\u0447\u043d\u043e\u0439 GitOps \u0434\u043b\u044f \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Canary-\u0434\u0435\u043f\u043b\u043e\u044f \u0432 Kubernetes \u0421\u0442\u0430\u0442\u044c\u0438 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0446\u0438\u043a\u043b\u0430: (\u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f) Canary Deployment \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 ArgoCI Canary Deployment \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Istio Canary Deployment \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Jenkins-X Istio Flagger \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c Canary-\u0434\u0435\u043f\u043b\u043e\u0439 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0443\u043a\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 GitOps \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\/\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 Kubernetes. \u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":90273,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-90272","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.6.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Gitlab CI \u0438 \u0440\u0443\u0447\u043d\u043e\u0439 GitOps \u0434\u043b\u044f \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Canary-\u0434\u0435\u043f\u043b\u043e\u044f \u0432.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.6.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47Canary Deployment \u0432 Kubernetes #1: Gitlab CI | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Gitlab CI \u0438 \u0440\u0443\u0447\u043d\u043e\u0439 GitOps \u0434\u043b\u044f \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Canary-\u0434\u0435\u043f\u043b\u043e\u044f \u0432.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-07-30T11:42:02+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-07-30T11:42:02+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Kubernetes-\u0442\u0435\u0433\u0456 Canary Deployment #1: GitLab CI | ProHoster","description":"Canary-\u0434\u0435\u043f\u043b\u043e\u0439\u0434\u044b \u0435\u043d\u0433\u0456\u0437\u0443 \u0436\u04d9\u043d\u0435 \u043f\u0430\u0439\u0434\u0430\u043b\u0430\u043d\u0443 \u04af\u0448\u0456\u043d GitLab CI \u043c\u0435\u043d \u049b\u043e\u043b\u043c\u0435\u043d \u043e\u0440\u044b\u043d\u0434\u0430\u043b\u0430\u0442\u044b\u043d GitOps \u0442\u04d9\u0441\u0456\u043b\u0456\u043d \u049b\u043e\u043b\u0434\u0430\u043d\u0430\u043c\u044b\u0437.","canonical_url":"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47Canary Deployment \u0432 Kubernetes #1: Gitlab CI | ProHoster","og:description":"\u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Gitlab CI \u0438 \u0440\u0443\u0447\u043d\u043e\u0439 GitOps \u0434\u043b\u044f \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Canary-\u0434\u0435\u043f\u043b\u043e\u044f \u0432.","og:url":"https:\/\/prohoster.info\/kk\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-07-30T11:42:02+00:00","article:modified_time":"2020-07-30T11:42:02+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"90272","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 12:55:28","updated":"2022-09-27 23:09:11","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/posts\/90272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/comments?post=90272"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/posts\/90272\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/media\/90273"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/media?parent=90272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/categories?post=90272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/kk\/wp-json\/wp\/v2\/tags?post=90272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}