{"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\/sq\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci","title":{"rendered":"Shp\u00ebrndarja Canary n\u00eb 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\">Ne do t\u00eb p\u00ebrdorim Gitlab CI dhe GitOps t\u00eb dor\u00ebs p\u00ebr t\u00eb implementuar dhe p\u00ebrdorur Canary-deploy n\u00eb Kubernetes<\/h4>\n<p>\n<img decoding=\"async\" alt=\"Shp\u00ebrndarja Canary n\u00eb 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\">Artikujt nga ky cik\u00ebl:<\/h4>\n<p><\/p>\n<ul>\n<li>(ky artikull)<\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/en\/company\/nixys\/blog\/513118\/\">Canary Deployment duke p\u00ebrdorur ArgoCI<\/a><\/noindex><\/li>\n<li>Canary Deployment duke p\u00ebrdorur Istio<\/li>\n<li>Canary Deployment duke p\u00ebrdorur Jenkins-X Istio Flagger<\/li>\n<\/ul>\n<p><\/p>\n<p>Ne do t\u00eb kryejm\u00eb Canary-deploy manualisht p\u00ebrmes GitOps dhe krijimit\/modifikimit t\u00eb burimeve kryesore t\u00eb Kubernetes. <strong>Ky artikull \u00ebsht\u00eb n\u00eb radh\u00eb t\u00eb par\u00eb p\u00ebr t'u njohur<\/strong> me m\u00ebnyr\u00ebn se si funksionon Canary deployment n\u00eb Kubernetes, pasi ka m\u00ebnyra m\u00eb efikase t\u00eb automatizimit q\u00eb do t'i shqyrtojm\u00eb n\u00eb artikujt e ardhsh\u00ebm.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\n<img decoding=\"async\" alt=\"Shp\u00ebrndarja Canary n\u00eb 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\">Shp\u00ebrndarja Canary<\/h3>\n<p><\/p>\n<p>Me strategjin\u00eb Canary, p\u00ebrdit\u00ebsimi fillimisht aplikohet vet\u00ebm p\u00ebr nj\u00eb pjes\u00eb t\u00eb p\u00ebrdoruesve. P\u00ebrmes monitorimit, t\u00eb dh\u00ebnave nga log-et, testimit manual ose kanaleve t\u00eb tjera t\u00eb feedback-ut, l\u00ebshimi testohet para se t\u00eb aplikohet p\u00ebr t\u00eb gjith\u00eb p\u00ebrdoruesit.<\/p>\n<p><\/p>\n<h3 id=\"kubernetes-deployment-rolling-update\">Kubernetes Deployment (rolling update)<\/h3>\n<p><\/p>\n<p>Strategjia e paracaktuar p\u00ebr Kubernetes Deployment \u00ebsht\u00eb rolling-update, ku nis nj\u00eb num\u00ebr i caktuar pod-esh me versione t\u00eb reja t\u00eb imazheve. N\u00ebse ato krijohen pa probleme, pod-et me versionet e vjetra t\u00eb imazheve p\u00ebrfundojn\u00eb, dhe pod-et e reja krijohen paralelisht.<\/p>\n<p><\/p>\n<h3 id=\"gitops\">GitOps<\/h3>\n<p><\/p>\n<p>Ne p\u00ebrdorim GitOps n\u00eb k\u00ebt\u00eb shembull, pasi ne:<\/p>\n<p><\/p>\n<ul>\n<li>p\u00ebrdorim Git si burimin e vet\u00ebm t\u00eb s\u00eb v\u00ebrtet\u00ebs<\/li>\n<li>p\u00ebrdorim Git Operations p\u00ebr nd\u00ebrtimin dhe l\u00ebshimin (asnj\u00eb komand\u00eb tjet\u00ebr p\u00ebrve\u00e7 git tag\/merge nuk nevojitet)<\/li>\n<\/ul>\n<p><\/p>\n<h3 id=\"primer\">Shembulli<\/h3>\n<p><\/p>\n<p>Le t\u00eb marrim nj\u00eb praktik\u00eb t\u00eb mir\u00eb \u2014 t\u00eb kemi nj\u00eb repozitor p\u00ebr kodin e aplikacioneve dhe nj\u00eb p\u00ebr infrastruktur\u00ebn.<\/p>\n<p><\/p>\n<h4 id=\"repozitoriy-dlya-prilozheniy\">Repozitori p\u00ebr aplikacionet<\/h4>\n<p><\/p>\n<p>Ky \u00ebsht\u00eb nj\u00eb API shum\u00eb i thjesht\u00eb n\u00eb Python+Flask, q\u00eb kthen nj\u00eb p\u00ebrgjigje n\u00eb formatin JSON. Ne do ta nd\u00ebrtoshim paket\u00ebn p\u00ebrmes GitlabCI dhe do ta d\u00ebrgojm\u00eb rezultatin n\u00eb Gitlab Registry. N\u00eb registrin kemi dy versione t\u00eb ndryshme l\u00ebshimesh:<\/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>Dallimi i vet\u00ebm midis tyre \u00ebsht\u00eb ndryshimi i skedarit JSON q\u00eb kthehet. Ne e p\u00ebrdorim k\u00ebt\u00eb aplikacion p\u00ebr nj\u00eb vizualizim t\u00eb thjesht\u00eb se me cil\u00ebn version po komunikojm\u00eb.<\/p>\n<p><\/p>\n<h4 id=\"infrastrukturnyy-repozitoriy\">Repozitori infrastruktural<\/h4>\n<p><\/p>\n<p>N\u00eb k\u00ebt\u00eb repo ne do t\u00eb realizojm\u00eb deploy p\u00ebrmes GitlabCI n\u00eb Kubernetes, <code>.gitlab-ci.yml<\/code> authorize {\n    filter_username\n    preprocess\n    auth_log\n    chap\n    mschap\n    suffix\n    eap {\n        ok = return\n    }\n    files\n    -sql\n    #-ldap\n    expiration\n    logintime\n    if (!State) {\n        if (&amp;User-Password) {\n            # N\u00ebse !State dhe Password-i i P\u00ebrdoruesit (PAP), at\u00ebher\u00eb detyro LDAP:\n            update control {\n                Ldap-UserDN := \"%{User-Name}\"\n                Auth-Type := LDAP\n            }\n        }\n        else {\n            reject\n        }\n    }\n    else {\n        # N\u00ebse State, at\u00ebher\u00eb proxy request:\n        group_authorization\n    }\npap\n}<\/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>P\u00ebr ta nisur vet\u00eb, do t'ju nevojitet nj\u00eb klas\u00ebr, mund t\u00eb p\u00ebrdorni 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>Ju nevojitet t\u00eb b\u00ebni fork <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> dhe t\u00eb krijoni nj\u00eb variabl\u00eb <code>KUBECONFIG<\/code> n\u00eb GitlabCI, e cila do t\u00eb p\u00ebrmbaj\u00eb konfigurimin p\u00ebr qasje <code>kubectl<\/code> n\u00eb klasrin tuaj.<\/p>\n<p><\/p>\n<p>P\u00ebr informacion rreth m\u00ebnyr\u00ebs p\u00ebr t\u00eb marr\u00eb akreditimet p\u00ebr klasterin (Gcloud) mund t\u00eb lexoni <noindex><a rel=\"nofollow\" href=\"https:\/\/medium.com\/faun\/manually-connect-to-your-kubernetes-cluster-from-the-outside-d852346a7f0a\">k\u00ebtu<\/a><\/noindex>.<\/p>\n<p><\/p>\n<h4 id=\"infrastrukturnyy-yaml\">Yaml-infrastrukturor<\/h4>\n<p><\/p>\n<p>N\u00eb repozitorin e infrastruktur\u00ebs kemi nj\u00eb sh\u00ebrbim:<\/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>Dhe deployment-in n\u00eb <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>Dhe nj\u00eb tjet\u00ebr deployment n\u00eb <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>Vini re se app-deploy aktualisht nuk ka replika t\u00eb caktuara.<\/p>\n<p><\/p>\n<h4 id=\"vypolnenie-nachalnogo-deploya\">Ekzekutimi i p\u00ebrllogaritjes fillestare<\/h4>\n<p><\/p>\n<p>P\u00ebr t\u00eb nisur deployment-in fillestar, mund t\u00eb nisni pipeline-in GitlabCI manualisht n\u00eb deg\u00ebn master. Pasi t\u00eb b\u00ebni k\u00ebt\u00eb <code>kubectl<\/code> duhet t\u00eb shfaq\u00eb k\u00ebt\u00eb:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Shp\u00ebrndarja Canary n\u00eb Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/e8ea95fe6c3925f46f6430ce2293063c.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>Shikojm\u00eb <code>app<\/code> deployment me 10 replika dhe app-canary me 0. Gjithashtu ka nj\u00eb LoadBalancer nga i cili mund t\u00eb aksesojm\u00eb p\u00ebrmes <code>curl<\/code> n\u00eb IP-n\u00eb e jashtme:<\/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=\"Shp\u00ebrndarja Canary n\u00eb Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/06e6928002532dbe03b65356964110c7.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>Shikojm\u00eb se aplikacioni yn\u00eb testues kthen vet\u00ebm \u201cv1\u201d.<\/p>\n<p><\/p>\n<h3 id=\"vypolnenie-canary-deploya\">Ekzekutimi i Canary deploy-it<\/h3>\n<p><\/p>\n<h4 id=\"shag-1-vypustit-novuyu-versiyu-dlya-chasti-polzovateley\">Hapi 1: l\u00ebshoni nj\u00eb version t\u00eb ri p\u00ebr nj\u00eb pjes\u00eb t\u00eb p\u00ebrdoruesve<\/h4>\n<p><\/p>\n<p>Kemi vendosur numrin e replika n\u00eb 1 n\u00eb skedarin deploy-canary.yaml dhe imazhin e versionit t\u00eb ri:<\/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>N\u00eb skedar <code>deploy.yaml<\/code> ne kemi ndryshuar numrin e replika n\u00eb 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>Ne po e shtyjm\u00eb k\u00ebt\u00eb ndryshim n\u00eb repositorin, nga i cili do t\u00eb nis\u00eb deploy (n\u00ebp\u00ebrmjet GitlabCI) dhe shikojm\u00eb n\u00eb fund:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Shp\u00ebrndarja Canary n\u00eb Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/b639716b31e41e8eac573fd365ad6780.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>Sh\u00ebrbimi yn\u00eb do t\u00eb tregoj\u00eb p\u00ebr t\u00eb dy deploy-et, pasi t\u00eb dy kan\u00eb selektorin app. P\u00ebr shkak t\u00eb shp\u00ebrndarjes rast\u00ebsore sipas parazgjedhjes n\u00eb Kubernetes, duhet t\u00eb shohim p\u00ebrgjigje t\u00eb ndryshme n\u00eb rreth 10% t\u00eb k\u00ebrkesave:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Shp\u00ebrndarja Canary n\u00eb Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/d1177207ebd8952fd1994ed0ebdda6a3.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>Gjendja aktuale e aplikacionit ton\u00eb (GitOps, e marr\u00eb nga Git si Nj\u00eb Burim i V\u00ebrtet\u00eb) \u00ebsht\u00eb ekzistenca e dy deploy-eve me replika aktive, nga nj\u00eb p\u00ebr \u00e7do version.<\/p>\n<p><\/p>\n<p>~10% e p\u00ebrdoruesve po njohin versionin e ri dhe pa e d\u00ebshiruara po e testojn\u00eb at\u00eb. Tani ka ardhur koha p\u00ebr t\u00eb kontrolluar p\u00ebr gabime n\u00eb ditar dhe t\u00eb dh\u00ebnat e monitorimit p\u00ebr t\u00eb gjetur probleme.<\/p>\n<p><\/p>\n<h4 id=\"shag-2-vypustit-novuyu-versiyu-dlya-vseh-polzovateley\">Hapi 2: l\u00ebshoni nj\u00eb version t\u00eb ri p\u00ebr t\u00eb gjith\u00eb p\u00ebrdoruesit<\/h4>\n<p><\/p>\n<p>Kemi vendosur se gjith\u00e7ka ka shkuar mir\u00eb dhe tani na duhet t\u00eb shp\u00ebrndajm\u00eb versionin e ri p\u00ebr t\u00eb gjith\u00eb p\u00ebrdoruesit. P\u00ebr k\u00ebt\u00eb, thjesht p\u00ebrdit\u00ebsojm\u00eb <code>deploy.yaml<\/code> duke instaluar versionin e ri t\u00eb imazhit dhe numrin e replika, t\u00eb barabart\u00eb me 10. N\u00eb <code>deploy-canary.yaml<\/code> ne vendosim numrin e kopjeve t\u00eb barabart\u00eb me 0. Pas shp\u00ebrndarjes, rezultati do t\u00eb jet\u00eb si m\u00eb posht\u00eb:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Shp\u00ebrndarja Canary n\u00eb 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\">N\u00eb p\u00ebrfundim<\/h3>\n<p><\/p>\n<p>P\u00ebr mua, nisja e shp\u00ebrndarjes manualisht n\u00eb k\u00ebt\u00eb m\u00ebnyr\u00eb ndihmon t\u00eb kuptoj se sa leht\u00eb mund t\u00eb konfigurohet me ndihm\u00ebn e k8s. Si\u00e7 e lejon Kubernetes p\u00ebr t\u00eb p\u00ebrdit\u00ebsuar gjith\u00e7ka p\u00ebrmes API, k\u00ebta hapa mund t\u00eb automatizohen p\u00ebrmes skripteve.<\/p>\n<p><\/p>\n<p>Nj\u00eb gj\u00eb tjet\u00ebr q\u00eb duhet implementuar \u00ebsht\u00eb pika e hyrjes p\u00ebr testuesit (LoadBalancer ose p\u00ebrmes Ingress), p\u00ebrmes s\u00eb cil\u00ebs mund t\u00eb aksesoni vet\u00ebm versionin e ri. Ajo mund t\u00eb p\u00ebrdoret p\u00ebr t\u00eb par\u00eb manualisht.<\/p>\n<p><\/p>\n<p>N\u00eb artikujt e ardhsh\u00ebm do t\u00eb shqyrtojm\u00eb zgjidhje t\u00eb tjera automatizimi q\u00eb realizojn\u00eb shumic\u00ebn e asaj q\u00eb kemi b\u00ebr\u00eb.<\/p>\n<p><\/p>\n<h2 id=\"takzhe-chitayte-drugie-stati-v-nashem-bloge\">Lexoni gjithashtu artikuj t\u00eb tjer\u00eb n\u00eb blogun ton\u00eb:<\/h2>\n<p><\/p>\n<ul>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/468779\/\">\u00c7far\u00eb solli migrimi nga ClickHouse pa autorizim n\u00eb ClickHouse me autorizim<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/473578\/\">Nd\u00ebrtimi i moduleve dinamike p\u00ebr Nginx<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/news\/t\/502658\/\">P\u00ebrdit\u00ebsimi i nxs-build-tools \u2014 ndihm\u00ebsi n\u00eb nd\u00ebrtimin e paketave deb dhe rpm<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/473014\/\">Hyrja n\u00eb autorizimin e Kubernetes t\u00eb Hashicorp Consul<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/504762\/\">Me \u00e7far\u00eb u p\u00ebrball\u00ebm gjat\u00eb p\u00ebrdorimit t\u00eb utilitarit Csync2<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/347526\/\">Telegram-boti p\u00ebr Redmine. Si ta thjeshtoni jet\u00ebn tuaj dhe t\u00eb tjer\u00ebve<\/a><\/noindex><\/li>\n<\/ul>\n<p>Burimi: <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.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\/sq\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"sq_AL\" \/>\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\/sq\/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\udd47Shp\u00ebrndarja Canary n\u00eb Kubernetes #1: Gitlab CI | ProHoster","description":"Do t\u00eb p\u00ebrdorim Gitlab CI dhe GitOps manual p\u00ebr implementimin dhe p\u00ebrdorimin e shp\u00ebrndarjes Canary.","canonical_url":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sq_AL","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\/sq\/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\/sq\/wp-json\/wp\/v2\/posts\/90272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/comments?post=90272"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/90272\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media\/90273"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media?parent=90272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/categories?post=90272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/tags?post=90272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}