{"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\/hu\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci","title":{"rendered":"Canary Deployment a 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\">Gitlab CI-t \u00e9s manu\u00e1lis GitOps-t fogunk haszn\u00e1lni a Canary-deploy alkalmaz\u00e1s\u00e1hoz \u00e9s haszn\u00e1lat\u00e1hoz a Kubernetesben.<\/h4>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment a 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\">Cikkek ebb\u0151l a ciklusb\u00f3l:<\/h4>\n<p><\/p>\n<ul>\n<li>(ez a cikk)<\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/en\/company\/nixys\/blog\/513118\/\">Canary Deployment ArgoCI seg\u00edts\u00e9g\u00e9vel<\/a><\/noindex><\/li>\n<li>Canary Deployment Istio alkalmaz\u00e1s\u00e1val<\/li>\n<li>Canary Deployment Jenkins-X Istio Flaggerrel<\/li>\n<\/ul>\n<p><\/p>\n<p>A Canary-deploy-t k\u00e9zi beavatkoz\u00e1ssal fogjuk v\u00e9grehajtani a GitOps \u00e9s a Kubernetes alapvet\u0151 er\u0151forr\u00e1sainak l\u00e9trehoz\u00e1s\u00e1val\/m\u00f3dos\u00edt\u00e1s\u00e1val. <strong>Ez a cikk els\u0151sorban arra szolg\u00e1l,<\/strong> hogy megismerkedj\u00fcnk a Kubernetesben m\u0171k\u00f6d\u0151 Canary deploy m\u0171k\u00f6d\u00e9s\u00e9vel, mivel l\u00e9teznek hat\u00e9konyabb automatiz\u00e1l\u00e1si m\u00f3dszerek, amelyekr\u0151l a k\u00f6vetkez\u0151 cikkekben fogunk besz\u00e9lni.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\n<img decoding=\"async\" alt=\"Canary Deployment a 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\">Canary Deployment<\/h3>\n<p><\/p>\n<p>A Canary-friss\u00edt\u00e9si strat\u00e9gia eset\u00e9ben el\u0151sz\u00f6r csak a felhaszn\u00e1l\u00f3k egy r\u00e9sz\u00e9re vonatkoznak a friss\u00edt\u00e9sek. A megfigyel\u00e9s, a napl\u00f3kb\u00f3l sz\u00e1rmaz\u00f3 adatok, a k\u00e9zi tesztel\u00e9s vagy m\u00e1s visszajelz\u00e9si csatorn\u00e1k seg\u00edts\u00e9g\u00e9vel a kiad\u00e1st tesztelj\u00fck, miel\u0151tt azt minden felhaszn\u00e1l\u00f3ra alkalmazn\u00e1nk.<\/p>\n<p><\/p>\n<h3 id=\"kubernetes-deployment-rolling-update\">Kubernetes Deployment (rolling update)<\/h3>\n<p><\/p>\n<p>A Kubernetes Deployment alap\u00e9rtelmezett strat\u00e9gi\u00e1ja a rolling-update, amelyn\u00e9l egy adott sz\u00e1m\u00fa pod \u00faj verzi\u00f3j\u00fa k\u00e9pekkel indul el. Ha ezek probl\u00e9mamentesen l\u00e9trej\u00f6nnek, az \u00faj podok p\u00e1rhuzamosan j\u00f6nnek l\u00e9tre, m\u00edg a r\u00e9gi verzi\u00f3j\u00fa podok le\u00e1llnak.<\/p>\n<p><\/p>\n<h3 id=\"gitops\">GitOps<\/h3>\n<p><\/p>\n<p>Ebben a p\u00e9ld\u00e1ban GitOps-ot haszn\u00e1lunk, mivel:<\/p>\n<p><\/p>\n<ul>\n<li>a Git-et haszn\u00e1ljuk egyetlen igazs\u00e1gforr\u00e1sk\u00e9nt<\/li>\n<li>Git Operations seg\u00edts\u00e9g\u00e9vel v\u00e9gezz\u00fck a buildel\u00e9st \u00e9s a deploy-t (nem sz\u00fcks\u00e9gesek m\u00e1s parancsok, csak git tag\/merge)<\/li>\n<\/ul>\n<p><\/p>\n<h3 id=\"primer\">t\u00e1mad\u00e1sra<\/h3>\n<p><\/p>\n<p>Hozzunk l\u00e9tre egy j\u00f3 gyakorlatot \u2014 egyetlen t\u00e1rol\u00f3t a k\u00f3dokhoz \u00e9s egyet az infrastrukt\u00far\u00e1hoz.<\/p>\n<p><\/p>\n<h4 id=\"repozitoriy-dlya-prilozheniy\">Alkalmaz\u00e1si t\u00e1rol\u00f3<\/h4>\n<p><\/p>\n<p>Ez egy nagyon egyszer\u0171 API Python+Flask seg\u00edts\u00e9g\u00e9vel, amely JSON form\u00e1tumban t\u00e9r vissza v\u00e1lasszal. A csomagot GitlabCI-n kereszt\u00fcl fogjuk \u00f6ssze\u00e1ll\u00edtani \u00e9s az eredm\u00e9nyt a Gitlab Registry-be push-olni. A registry-ben k\u00e9t k\u00fcl\u00f6nb\u00f6z\u0151 verzi\u00f3j\u00fa kiad\u00e1sunk van:<\/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>Az egyetlen k\u00fcl\u00f6nbs\u00e9g k\u00f6zt\u00fck a visszaadott JSON-f\u00e1jl m\u00f3dos\u00edt\u00e1sa. Ezt az alkalmaz\u00e1st a verzi\u00f3 vizualiz\u00e1l\u00e1s\u00e1nak maxim\u00e1lis egyszer\u0171s\u00edt\u00e9s\u00e9re haszn\u00e1ljuk.<\/p>\n<p><\/p>\n<h4 id=\"infrastrukturnyy-repozitoriy\">Infrastrukt\u00fara t\u00e1rol\u00f3<\/h4>\n<p><\/p>\n<p>Ebben a rep\u00f3ban a GitlabCI-n kereszt\u00fcl fogunk deploy-olni a Kubernetesbe, <code>.gitlab-ci.yml<\/code> a k\u00f6vetkez\u0151k\u00e9ppen n\u00e9z ki:<\/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>A saj\u00e1t ind\u00edt\u00e1s\u00e1hoz sz\u00fcks\u00e9ge lesz egy klaszterre, haszn\u00e1lhatja a Gcloud-ot:<\/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>Forkot kell k\u00e9sz\u00edtenie <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> \u00e9s l\u00e9tre kell hoznia egy v\u00e1ltoz\u00f3t <code>KUBECONFIG<\/code> a GitlabCI-ben, amely tartalmazni fogja a hozz\u00e1f\u00e9r\u00e9si konfigur\u00e1ci\u00f3t <code>kubectl<\/code> a klaszter\u00e9hez.<\/p>\n<p><\/p>\n<p>A klaszterhez (Gcloud) sz\u00fcks\u00e9ges hiteles\u00edt\u0151 adatok megszerz\u00e9s\u00e9r\u0151l itt olvashat. <noindex><a rel=\"nofollow\" href=\"https:\/\/medium.com\/faun\/manually-connect-to-your-kubernetes-cluster-from-the-outside-d852346a7f0a\">itt tal\u00e1lhat\u00f3<\/a><\/noindex>.<\/p>\n<p><\/p>\n<h4 id=\"infrastrukturnyy-yaml\">Infrastrukt\u00fara Yaml<\/h4>\n<p><\/p>\n<p>Az infrastrukt\u00fara t\u00e1rol\u00f3j\u00e1ban a k\u00f6vetkez\u0151 tal\u00e1lhat\u00f3:<\/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>\u00e9s a deployment a <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>\u00e9s egy m\u00e1sik deployment a <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>Vedd \u00e9szre, hogy az app-deploy m\u00e9g nem rendelkezik meghat\u00e1rozott replik\u00e1kkal.<\/p>\n<p><\/p>\n<h4 id=\"vypolnenie-nachalnogo-deploya\">A kezdeti deploy v\u00e9grehajt\u00e1sa<\/h4>\n<p><\/p>\n<p>A kezdeti deployment elind\u00edt\u00e1s\u00e1hoz manu\u00e1lisan futtathatja a GitlabCI pipeline-t a master \u00e1gon. Ezt k\u00f6vet\u0151en <code>kubectl<\/code> ez a k\u00f6vetkez\u0151t kell, hogy megjelen\u00edtse:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment a Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/e8ea95fe6c3925f46f6430ce2293063c.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>L\u00e1tjuk <code>app<\/code> deployment 10 replik\u00e1val \u00e9s app-canary 0-val. Van egy LoadBalancer is, amivel a k\u00f6vetkez\u0151 c\u00edmen kereszt\u00fcl \u00e9rhetj\u00fck el: <code>curl<\/code> External IP-n:<\/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 a Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/06e6928002532dbe03b65356964110c7.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>L\u00e1tjuk, hogy a tesztalkalmaz\u00e1sunk csak a 'v1'-et adja vissza.<\/p>\n<p><\/p>\n<h3 id=\"vypolnenie-canary-deploya\">A Canary deploy v\u00e9grehajt\u00e1sa<\/h3>\n<p><\/p>\n<h4 id=\"shag-1-vypustit-novuyu-versiyu-dlya-chasti-polzovateley\">1. l\u00e9p\u00e9s: \u00faj verzi\u00f3 kiad\u00e1sa egy r\u00e9szhalmaz sz\u00e1m\u00e1ra<\/h4>\n<p><\/p>\n<p>A deploy-canary.yaml f\u00e1jlban az replik\u00e1k sz\u00e1m\u00e1t 1-re \u00e1ll\u00edtottuk, \u00e9s az \u00faj verzi\u00f3 k\u00e9pe:<\/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>A f\u00e1jlban <code>deploy.yaml<\/code> megn\u00f6velt\u00fck a replik\u00e1k sz\u00e1m\u00e1t 9-re:<\/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>Ezeket a v\u00e1ltoztat\u00e1sokat a t\u00e1rol\u00f3ba toljuk, ahonnan a deploy elindul (GitlabCI-n kereszt\u00fcl), \u00e9s v\u00e9g\u00fcl ezt l\u00e1tjuk:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment a Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/b639716b31e41e8eac573fd365ad6780.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>A szolg\u00e1ltat\u00e1sunk mindk\u00e9t deploymentre mutatni fog, mivel mindkett\u0151nek van app szelektora. Az alap\u00e9rtelmezett Kubernetes v\u00e9letlenszer\u0171 eloszt\u00e1sa miatt k\u00f6r\u00fclbel\u00fcl 10%-os lek\u00e9rdez\u00e9sekn\u00e9l k\u00fcl\u00f6nb\u00f6z\u0151 v\u00e1laszokat kell l\u00e1tnunk:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment a Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/d1177207ebd8952fd1994ed0ebdda6a3.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>A jelenlegi \u00e1llapota az alkalmaz\u00e1sunknak (GitOps, amely a Gitet haszn\u00e1lja egyetlen igaz forr\u00e1sk\u00e9nt) az, hogy k\u00e9t deployment akt\u00edv replik\u00e1kkal l\u00e9tezik, egyik minden verzi\u00f3hoz.<\/p>\n<p><\/p>\n<p>~10% felhaszn\u00e1l\u00f3 ismerkedik meg az \u00faj verzi\u00f3val \u00e9s akaratlanul is teszteli azt. Most el\u00e9rkezett az id\u0151, hogy ellen\u0151rizz\u00fck a napl\u00f3kat \u00e9s a monitoring adatait a probl\u00e9m\u00e1k felkutat\u00e1s\u00e1ra.<\/p>\n<p><\/p>\n<h4 id=\"shag-2-vypustit-novuyu-versiyu-dlya-vseh-polzovateley\">2. l\u00e9p\u00e9s: \u00faj verzi\u00f3 kiad\u00e1sa minden felhaszn\u00e1l\u00f3nak<\/h4>\n<p><\/p>\n<p>\u00dagy d\u00f6nt\u00f6tt\u00fcnk, hogy minden j\u00f3l ment, \u00e9s most el kell ind\u00edtanunk az \u00faj verzi\u00f3t minden felhaszn\u00e1l\u00f3n\u00e1l. Ehhez egyszer\u0171en friss\u00edtj\u00fck <code>deploy.yaml<\/code> az \u00faj verzi\u00f3t telep\u00edtve \u00e9s a replik\u00e1k sz\u00e1m\u00e1t 10-re \u00e1ll\u00edtva. Az <code>deploy-canary.yaml<\/code> replik\u00e1k sz\u00e1m\u00e1t vissza\u00e1ll\u00edtjuk 0-ra. A telep\u00edt\u00e9s ut\u00e1n az eredm\u00e9ny a k\u00f6vetkez\u0151 lesz:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment a 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\">\u00d6sszefoglalva<\/h3>\n<p><\/p>\n<p>Sz\u00e1momra a telep\u00edt\u00e9s k\u00e9zi ind\u00edt\u00e1sa seg\u00edt meg\u00e9rteni, mennyire k\u00f6nnyen be\u00e1ll\u00edthat\u00f3 a k8s seg\u00edts\u00e9g\u00e9vel. Mivel a Kubernetes lehet\u0151v\u00e9 teszi, hogy minden az API-n kereszt\u00fcl friss\u00fclj\u00f6n, ezeket a l\u00e9p\u00e9seket automatiz\u00e1lni lehet skriptek seg\u00edts\u00e9g\u00e9vel.<\/p>\n<p><\/p>\n<p>M\u00e9g egy dolog, amit meg kell val\u00f3s\u00edtani \u2013 ez a tesztel\u0151 bel\u00e9p\u00e9si pont (LoadBalancer vagy Ingress-en kereszt\u00fcl), amelyen kereszt\u00fcl csak az \u00faj verzi\u00f3 hozhat\u00f3 el. Ezt manu\u00e1lisan is meg lehet tekinteni.<\/p>\n<p><\/p>\n<p>A k\u00f6vetkez\u0151 cikkekben m\u00e1s automatiz\u00e1lt megold\u00e1sokat fogunk megvizsg\u00e1lni, amelyek megval\u00f3s\u00edtj\u00e1k a legt\u00f6bb folytatott l\u00e9p\u00e9st.<\/p>\n<p><\/p>\n<h2 id=\"takzhe-chitayte-drugie-stati-v-nashem-bloge\">Olvasd el t\u00f6bbi cikk\u00fcnket a blogunkban:<\/h2>\n<p><\/p>\n<ul>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/468779\/\">Milyen k\u00f6vetkezm\u00e9nyekkel j\u00e1rt a ClickHouse migr\u00e1ci\u00f3ja a ClickHouse hiteles\u00edt\u00e9ssel t\u00f6rt\u00e9n\u0151 haszn\u00e1lata n\u00e9lk\u00fcl?<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/473578\/\">Dinamikus modulok \u00f6ssze\u00e1ll\u00edt\u00e1sa Nginx-hez<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/news\/t\/502658\/\">nxs-build-tools friss\u00edt\u00e9se - a deb \u00e9s rpm csomagok build-m\u00f3dszere.<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/473014\/\">Bevezet\u00e9s a Hashicorp Consul Kubernetes enged\u00e9lyez\u00e9s\u00e9be<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/504762\/\">Mivel kellett szemben\u00e9zn\u00fcnk a Csync2 utilit\u00e1s haszn\u00e1latakor<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/347526\/\">Telegram-bot Redmine-hoz. Hogyan egyszer\u0171s\u00edts\u00fck meg az \u00e9let\u00fcnket \u00e9s m\u00e1sok\u00e9t<\/a><\/noindex><\/li>\n<\/ul>\n<p>Forr\u00e1s: <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.3 - 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\/hu\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\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\/hu\/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-ben #1: Gitlab CI | ProHoster","description":"A Gitlab CI-t \u00e9s a k\u00e9zi GitOps-ot fogjuk haszn\u00e1lni a Canary-telep\u00edt\u00e9s bevezet\u00e9s\u00e9re \u00e9s haszn\u00e1lat\u00e1ra.","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","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\/hu\/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\/hu\/wp-json\/wp\/v2\/posts\/90272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=90272"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/90272\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media\/90273"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=90272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=90272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=90272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}