{"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\/lv\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci","title":{"rendered":"Canary Deployment Kubernetes #1: 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\">M\u0113s izmantosim Gitlab CI un manu\u0101lo GitOps, lai ieviestu un izmantotu Kan\u0101rijas izvietojumu Kubernetes.<\/h4>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment Kubernetes #1: 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\">\u0160\u012b cikla raksti:<\/h4>\n<p><\/p>\n<ul>\n<li>(\u0161is raksts)<\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/en\/company\/nixys\/blog\/513118\/\">Kan\u0101rijas izvietojums, izmantojot ArgoCI<\/a><\/noindex><\/li>\n<li>Kan\u0101rijas izvietojums, izmantojot Istio<\/li>\n<li>Kan\u0101rijas izvietojums, izmantojot Jenkins-X Istio Flagger<\/li>\n<\/ul>\n<p><\/p>\n<p>Kan\u0101rijas izvietojumu m\u0113s veiksim roku rok\u0101 caur GitOps un galveno Kubernetes resursu izveidi\/main\u012b\u0161anu. <strong>\u0160is raksts ir paredz\u0113ts galvenok\u0101rt iepaz\u012b\u0161an\u0101s nol\u016bkiem.<\/strong> ar to, k\u0101 Kubernetes darbojas Kan\u0101rijas izvietojum\u0101, jo ir efekt\u012bv\u0101ki automatiz\u0101cijas pa\u0146\u0113mieni, kurus m\u0113s apl\u016bkosim n\u0101kamajos rakstos.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\n<img decoding=\"async\" alt=\"Canary Deployment Kubernetes #1: 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\">Kan\u0101ru izvieto\u0161ana<\/h3>\n<p><\/p>\n<p>Kan\u0101rijas atjaunin\u0101\u0161anas strat\u0113\u0123ij\u0101 vispirms tiek piem\u0113roti tikai da\u013cai lietot\u0101ju. Izmantojot uzraudz\u012bbu, datus no \u017eurn\u0101liem, manu\u0101los testus vai citus atgriezenisk\u0101s saites kan\u0101lus, laidienu p\u0101rbauda pirms t\u0101 piem\u0113ro\u0161anas visiem lietot\u0101jiem.<\/p>\n<p><\/p>\n<h3 id=\"kubernetes-deployment-rolling-update\">Kubernetes izvietojums (v\u0113lams atjaunin\u0101jums)<\/h3>\n<p><\/p>\n<p>Pamatstrat\u0113\u0123ija Kubernetes izvietojumam ir v\u0113lams atjaunin\u0101jums, kur\u0101 tiek palaists noteikts jauno att\u0113lu podu skaits. Ja tie tiek izveidoti bez probl\u0113m\u0101m, vecie att\u0113li tiek p\u0101rtraukti, un jauni podi tiek izveidoti blakus.<\/p>\n<p><\/p>\n<h3 id=\"gitops\">GitOps<\/h3>\n<p><\/p>\n<p>M\u0113s izmantojam GitOps \u0161aj\u0101 piem\u0113r\u0101, jo m\u0113s:<\/p>\n<p><\/p>\n<ul>\n<li>izmantojam Git k\u0101 vien\u012bgo paties\u012bbas avotu<\/li>\n<li>izmantojam Git oper\u0101cijas b\u016bv\u0113\u0161anai un izvieto\u0161anai (nav nepiecie\u0161amas citas komandas, tikai git tag\/merge)<\/li>\n<\/ul>\n<p><\/p>\n<h3 id=\"primer\">uzbrukumam<\/h3>\n<p><\/p>\n<p>Izv\u0113rs\u012bsim labu praksi \u2014 b\u016bt vienam repozitorijam vides kodam un vienam lietot\u0146u kodam.<\/p>\n<p><\/p>\n<h4 id=\"repozitoriy-dlya-prilozheniy\">Lietot\u0146u repozitorijs<\/h4>\n<p><\/p>\n<p>\u0160\u012b ir \u013coti vienk\u0101r\u0161a API, kas uzrakst\u012bta Python+Flask, atgrie\u017e atbildi JSON form\u0101t\u0101. M\u0113s izveidosim paku caur GitlabCI un aug\u0161upiel\u0101d\u0113sim rezult\u0101tu Gitlab re\u0123istr\u0101. Mums ir divas da\u017e\u0101das izlai\u0161anas versijas re\u0123istr\u0101:<\/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>Vien\u012bg\u0101 at\u0161\u0137ir\u012bba starp t\u0101m ir main\u012bgais atgrieztais JSON fails. M\u0113s izmantojam \u0161o lietotni, lai maksim\u0101li vienk\u0101r\u0161i vizualiz\u0113tu, ar kuru versiju m\u0113s str\u0101d\u0101jam.<\/p>\n<p><\/p>\n<h4 id=\"infrastrukturnyy-repozitoriy\">Infrastrukt\u016bru repozitorijs<\/h4>\n<p><\/p>\n<p>\u0160aj\u0101 repozitorij\u0101 m\u0113s izvietosim caur GitlabCI Kubernetes, <code>.gitlab-ci.yml<\/code> izskat\u0101s \u0161\u0101di:<\/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>Lai to palaistu pats, jums b\u016bs nepiecie\u0161ams klasteris, varat izmantot Gcloud:<\/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>Jums j\u0101izveido forka <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> un j\u0101izveido main\u012bgais <code>KUBECONFIG<\/code> GitlabCI, kas satur\u0113s konfigur\u0101ciju piek\u013cuvei <code>kubectl<\/code> j\u016bsu klasterim.<\/p>\n<p><\/p>\n<p>Par to, k\u0101 ieg\u016bt autentifik\u0101cijas datus klasterim (Gcloud), var izlas\u012bt <noindex><a rel=\"nofollow\" href=\"https:\/\/medium.com\/faun\/manually-connect-to-your-kubernetes-cluster-from-the-outside-d852346a7f0a\">\u0161aj\u0101 viet\u0101<\/a><\/noindex>.<\/p>\n<p><\/p>\n<h4 id=\"infrastrukturnyy-yaml\">Infrastrukt\u016bras Yaml<\/h4>\n<p><\/p>\n<p>Infrastrukt\u016bras repozitorij\u0101 mums ir serviss:<\/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>un izvietojums <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>Un cits izvietojums <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>Piev\u0113rsiet uzman\u012bbu, ka app-deploy v\u0113l nav noteikts kopiju skaits.<\/p>\n<p><\/p>\n<h4 id=\"vypolnenie-nachalnogo-deploya\">S\u0101kotn\u0113j\u0101 izvieto\u0161anas izpilde<\/h4>\n<p><\/p>\n<p>Lai palaistu s\u0101kotn\u0113jo izvietojumu, j\u016bs varat manu\u0101li palaist GitlabCI caur master zaru. P\u0113c tam <code>kubectl<\/code> tam j\u0101izvada sekojo\u0161ais:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/e8ea95fe6c3925f46f6430ce2293063c.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>M\u0113s redzam <code>app<\/code> izvietojumu ar 10 kopij\u0101m un app-canary ar 0. T\u0101pat ir LoadBalancer, no kura m\u0113s varam piek\u013c\u016bt caur <code>curl<\/code> pa \u0101r\u0113jo IP:<\/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=\"Canary Deployment Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/06e6928002532dbe03b65356964110c7.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>M\u0113s redzam, ka m\u016bsu testa lietotne atgrie\u017e tikai \u201cv1\u201d.<\/p>\n<p><\/p>\n<h3 id=\"vypolnenie-canary-deploya\">Canary izvietojuma izpilde<\/h3>\n<p><\/p>\n<h4 id=\"shag-1-vypustit-novuyu-versiyu-dlya-chasti-polzovateley\">1. solis: izlaist jaunu versiju da\u013cai lietot\u0101ju<\/h4>\n<p><\/p>\n<p>M\u0113s esam noteiku\u0161i kopiju skaitu uz 1 fail\u0101 deploy-canary.yaml un jaunas versijas att\u0113lu:<\/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>Fail\u0101 <code>deploy.yaml<\/code> m\u0113s main\u012bj\u0101m kopiju skaitu uz 9:<\/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>M\u0113s nospie\u017eam \u0161\u012bs izmai\u0146as uz repozitoriju, no kura tiks palaista izvieto\u0161ana (caur GitlabCI) un beig\u0101s redzam:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/b639716b31e41e8eac573fd365ad6780.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>M\u016bsu pakalpojums nor\u0101d\u012bs uz abiem izvietojumiem, jo abiem ir selektors app. T\u0101d\u0113\u013c, \u0146emot v\u0113r\u0101 nejau\u0161u izplat\u012b\u0161anu p\u0113c noklus\u0113juma Kubernetes, mums vajadz\u0113tu redz\u0113t da\u017e\u0101dus atbildes apm\u0113ram 10% piepras\u012bjumu.<\/p>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/d1177207ebd8952fd1994ed0ebdda6a3.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>Pa\u0161reiz\u0113jais m\u016bsu lietotnes st\u0101voklis (GitOps, \u0146emts no Git k\u0101 vienots paties\u012bbas avots) ir divi izvietojumi ar akt\u012bvaj\u0101m kopij\u0101m, pa vienam katrai versijai.<\/p>\n<p><\/p>\n<p>~10% lietot\u0101ju iepaz\u012bstas ar jauno versiju un nejau\u0161i to p\u0101rbauda. Tagad ir pien\u0101cis laiks p\u0101rbaud\u012bt k\u013c\u016bdu kl\u0101tb\u016btni \u017eurn\u0101los un monitoringa datos, lai mekl\u0113tu probl\u0113mas.<\/p>\n<p><\/p>\n<h4 id=\"shag-2-vypustit-novuyu-versiyu-dlya-vseh-polzovateley\">2. solis: izlaist jaunu versiju visiem lietot\u0101jiem<\/h4>\n<p><\/p>\n<p>M\u0113s nol\u0113m\u0101m, ka viss ir g\u0101jis labi un tagad mums ir j\u0101izlai\u017e jaun\u0101 versija visiem lietot\u0101jiem. T\u0101p\u0113c m\u0113s vienk\u0101r\u0161i atjaunin\u0101m <code>deploy.yaml<\/code> uzst\u0101dot jauno versiju un kopiju skaitu, kas ir vien\u0101ds ar 10. T\u0101d\u0113j\u0101di <code>deploy-canary.yaml<\/code> M\u0113s iestata replik\u0101ciju skaitu uz 0. P\u0113c izvieto\u0161anas rezult\u0101ts b\u016bs \u0161\u0101ds:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/a31aafe96a09c6d2651b2bf7add4dd29.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<h3 id=\"podvodya-itog\">Kopsavilkums<\/h3>\n<p><\/p>\n<p>Man person\u012bgi manu\u0101l\u0101 izvieto\u0161anas uzs\u0101k\u0161ana \u0161\u0101d\u0101 veid\u0101 pal\u012bdz saprast, cik viegli to var konfigur\u0113t, izmantojot k8s. T\u0101 k\u0101 Kubernetes \u013cauj atjaunin\u0101t visu caur API, \u0161os so\u013cus var automatiz\u0113t ar skriptiem.<\/p>\n<p><\/p>\n<p>V\u0113l viena lieta, kas j\u0101\u012bsteno, ir test\u0113t\u0101ja ieejas punkts (LoadBalancer vai caur Ingress), caur kuru var piek\u013c\u016bt tikai jaunajai versijai. To var izmantot, lai to apskat\u012btu manu\u0101li.<\/p>\n<p><\/p>\n<p>N\u0101kamaj\u0101s rakstus m\u0113s p\u0101rbaud\u012bsim citas automatiz\u0113tas risin\u0101jumus, kas \u012bsteno liel\u0101ko da\u013cu no t\u0101, ko m\u0113s izdar\u012bj\u0101m.<\/p>\n<p><\/p>\n<h2 id=\"takzhe-chitayte-drugie-stati-v-nashem-bloge\">Izlasiet ar\u012b citus rakstus m\u016bsu emu\u0101r\u0101:<\/h2>\n<p><\/p>\n<ul>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/468779\/\">K\u0101 notika migr\u0101cija no ClickHouse bez autoriz\u0101cijas uz ClickHouse ar autoriz\u0101ciju<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/473578\/\">Dinamisko modu\u013cu veido\u0161ana Nginx<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/news\/t\/502658\/\">Nexus-build-tools atjaunin\u0101jums \u2014 pal\u012bgs deb un rpm pakot\u0146u b\u016bv\u0113\u0161anai<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/473014\/\">Ievads Hashicorp Consul Kubernetes autoriz\u0101cij\u0101<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/504762\/\">Ar ko m\u0113s sask\u0101r\u0101mies, izmantojot Csync2 r\u012bku<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/347526\/\">Telegram bots Redmine. K\u0101 atvieglot dz\u012bvi sev un citiem<\/a><\/noindex><\/li>\n<\/ul>\n<p>Avots: <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.4 - 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\/lv\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"lv_LV\" \/>\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\/lv\/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\udd47Canary Deployment Kubernetes #1: Gitlab CI | ProHoster","description":"M\u0113s izmantosim Gitlab CI un manu\u0101lo GitOps, lai ieviestu un izmantotu Canary izvieto\u0161anu.","canonical_url":"https:\/\/prohoster.info\/lv\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"lv_LV","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\/lv\/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\/lv\/wp-json\/wp\/v2\/posts\/90272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/comments?post=90272"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts\/90272\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/media\/90273"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/media?parent=90272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/categories?post=90272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/tags?post=90272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}