{"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\/cs\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci","title":{"rendered":"Canary Deployment v 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\">Budeme pou\u017e\u00edvat Gitlab CI a manu\u00e1ln\u00ed GitOps k zaveden\u00ed a pou\u017e\u00edv\u00e1n\u00ed Canary nasazen\u00ed v Kubernetes.<\/h4>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment v 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\">\u010cl\u00e1nky v t\u00e9to s\u00e9rii:<\/h4>\n<p><\/p>\n<ul>\n<li>(tento \u010dl\u00e1nek)<\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/en\/company\/nixys\/blog\/513118\/\">Canary nasazen\u00ed pomoc\u00ed ArgoCI<\/a><\/noindex><\/li>\n<li>Canary nasazen\u00ed pomoc\u00ed Istio<\/li>\n<li>Canary nasazen\u00ed pomoc\u00ed Jenkins-X Istio Flagger<\/li>\n<\/ul>\n<p><\/p>\n<p>Canary nasazen\u00ed provedeme ru\u010dn\u011b prost\u0159ednictv\u00edm GitOps a vytvo\u0159en\u00edm\/zm\u011bnou z\u00e1kladn\u00edch zdroj\u016f Kubernetes. <strong>Tento \u010dl\u00e1nek je ur\u010den p\u0159edev\u0161\u00edm k sezn\u00e1men\u00ed<\/strong> s t\u00edm, jak funguje Canary nasazen\u00ed v Kubernetes, proto\u017ee existuj\u00ed efektivn\u011bj\u0161\u00ed zp\u016fsoby automatizace, kter\u00e9 probereme v n\u00e1sleduj\u00edc\u00edch \u010dl\u00e1nc\u00edch.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\n<img decoding=\"async\" alt=\"Canary Deployment v 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>P\u0159i strategii Canary aktualizace jsou nejprve aplikov\u00e1ny zm\u011bny pouze pro \u010d\u00e1st u\u017eivatel\u016f. Monitorov\u00e1n\u00edm, \u00fadaji z log\u016f, manu\u00e1ln\u00edm testov\u00e1n\u00edm nebo jin\u00fdmi zp\u016fsoby zp\u011btn\u00e9 vazby se verze testuje p\u0159ed jej\u00edm nasazen\u00edm pro v\u0161echny u\u017eivatele.<\/p>\n<p><\/p>\n<h3 id=\"kubernetes-deployment-rolling-update\">Kubernetes nasazen\u00ed (rolling update)<\/h3>\n<p><\/p>\n<p>V\u00fdchoz\u00ed strategi\u00ed pro Kubernetes nasazen\u00ed je rolling-update, p\u0159i kter\u00e9m b\u011b\u017e\u00ed ur\u010dit\u00e9 mno\u017estv\u00ed pod\u016f s nov\u00fdmi verzemi obraz\u016f. Pokud se vytvo\u0159ily bez probl\u00e9m\u016f, star\u00e9 pody se ukon\u010duj\u00ed a nov\u00e9 pody se vytv\u00e1\u0159ej\u00ed paraleln\u011b.<\/p>\n<p><\/p>\n<h3 id=\"gitops\">GitOps<\/h3>\n<p><\/p>\n<p>V tomto p\u0159\u00edkladu pou\u017e\u00edv\u00e1me GitOps, proto\u017ee:<\/p>\n<p><\/p>\n<ul>\n<li>pou\u017e\u00edv\u00e1me Git jako jedin\u00fd zdroj pravdy<\/li>\n<li>pou\u017e\u00edv\u00e1me Git operace pro sestaven\u00ed a nasazen\u00ed (nen\u00ed t\u0159eba \u017e\u00e1dn\u00fdch p\u0159\u00edkaz\u016f krom\u011b git tag\/merge)<\/li>\n<\/ul>\n<p><\/p>\n<h3 id=\"primer\">P\u0159\u00edklad<\/h3>\n<p><\/p>\n<p>Zavedeme dobrou praxi \u2014 m\u00edt jeden repozit\u00e1\u0159 pro k\u00f3d aplikac\u00ed a jeden pro infrastrukturu.<\/p>\n<p><\/p>\n<h4 id=\"repozitoriy-dlya-prilozheniy\">Repozit\u00e1\u0159 pro aplikace<\/h4>\n<p><\/p>\n<p>Toto je velmi jednoduch\u00e9 API v Pythonu + Flask, kter\u00e9 vrac\u00ed odpov\u011b\u010f ve form\u00e1tu JSON. Sestav\u00edme bal\u00ed\u010dek prost\u0159ednictv\u00edm GitlabCI a nahrajeme v\u00fdsledek do Gitlab Registry. V registru m\u00e1me dv\u011b r\u016fzn\u00e9 verze vyd\u00e1n\u00ed:<\/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>Jedin\u00fd rozd\u00edl mezi nimi je zm\u011bna vracen\u00e9ho JSON souboru. Pou\u017e\u00edv\u00e1me tuto aplikaci k maxim\u00e1ln\u011b jednoduch\u00e9 vizualizaci toho, s jakou verz\u00ed komunikujeme.<\/p>\n<p><\/p>\n<h4 id=\"infrastrukturnyy-repozitoriy\">Infrastrukturn\u00ed repozit\u00e1\u0159<\/h4>\n<p><\/p>\n<p>V tomto repozit\u00e1\u0159i budeme nasazovat prost\u0159ednictv\u00edm GitlabCI do Kubernetes, <code>.gitlab-ci.yml<\/code> vypadat n\u00e1sledovn\u011b:<\/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>Pro jeho spu\u0161t\u011bn\u00ed samostatn\u011b budete pot\u0159ebovat cluster, m\u016f\u017eete pou\u017e\u00edt 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>Mus\u00edte si ud\u011blat 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> a vytvo\u0159it prom\u011bnnou <code>KUBECONFIG<\/code> v GitlabCI, kter\u00e1 bude obsahovat konfiguraci pro p\u0159\u00edstup <code>kubectl<\/code> k va\u0161emu clusteru.<\/p>\n<p><\/p>\n<p>O tom, jak z\u00edskat pov\u011b\u0159en\u00ed pro cluster (Gcloud), si m\u016f\u017eete p\u0159e\u010d\u00edst <noindex><a rel=\"nofollow\" href=\"https:\/\/medium.com\/faun\/manually-connect-to-your-kubernetes-cluster-from-the-outside-d852346a7f0a\">tady<\/a><\/noindex>.<\/p>\n<p><\/p>\n<h4 id=\"infrastrukturnyy-yaml\">Infrastrukturn\u00ed Yaml<\/h4>\n<p><\/p>\n<p>V infrastrukturn\u00edm repozit\u00e1\u0159i m\u00e1me slu\u017ebu:<\/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>A nasazen\u00ed v <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>A dal\u0161\u00ed nasazen\u00ed v <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>V\u0161imn\u011bte si, \u017ee app-deploy zat\u00edm nem\u00e1 definovan\u00e9 repliky.<\/p>\n<p><\/p>\n<h4 id=\"vypolnenie-nachalnogo-deploya\">Prov\u00e1d\u011bn\u00ed po\u010d\u00e1te\u010dn\u00edho nasazen\u00ed<\/h4>\n<p><\/p>\n<p>Pro spu\u0161t\u011bn\u00ed po\u010d\u00e1te\u010dn\u00edho nasazen\u00ed m\u016f\u017eete ru\u010dn\u011b spustit GitlabCI pipeline v hlavn\u00ed v\u011btvi. Pot\u00e9 <code>kubectl<\/code> by m\u011bl vydat n\u00e1sleduj\u00edc\u00ed:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment v Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/e8ea95fe6c3925f46f6430ce2293063c.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>Vid\u00edme <code>app<\/code> nasazen\u00ed s 10 replikami a app-canary s 0. Tak\u00e9 je zde LoadBalancer, na kter\u00fd se m\u016f\u017eeme obracet p\u0159es <code>curl<\/code> p\u0159es External 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 v Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/06e6928002532dbe03b65356964110c7.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>Vid\u00edme, \u017ee na\u0161e testovac\u00ed aplikace vrac\u00ed pouze \u201cv1\u201d.<\/p>\n<p><\/p>\n<h3 id=\"vypolnenie-canary-deploya\">Prov\u00e1d\u011bn\u00ed Canary nasazen\u00ed<\/h3>\n<p><\/p>\n<h4 id=\"shag-1-vypustit-novuyu-versiyu-dlya-chasti-polzovateley\">Krok 1: uvolnit novou verzi pro \u010d\u00e1st u\u017eivatel\u016f<\/h4>\n<p><\/p>\n<p>Nastavili jsme po\u010det replik na 1 v souboru deploy-canary.yaml a obraz nov\u00e9 verze:<\/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>V souboru <code>deploy.yaml<\/code> zm\u011bnili jsme po\u010det replik na 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>Tyto zm\u011bny pos\u00edl\u00e1me do repozit\u00e1\u0159e, ze kter\u00e9ho se spust\u00ed nasazen\u00ed (p\u0159es GitlabCI) a vid\u00edme nakonec:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment v Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/b639716b31e41e8eac573fd365ad6780.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>Na\u0161e slu\u017eba bude ukazovat na ob\u011b nasazen\u00ed, proto\u017ee ob\u011b maj\u00ed selektor app. Vzhledem k n\u00e1hodn\u00e9mu rozd\u011blen\u00ed ve v\u00fdchoz\u00edm nastaven\u00ed v Kubernetes bychom m\u011bli vid\u011bt r\u016fzn\u00e9 odpov\u011bdi na p\u0159ibli\u017en\u011b 10 % dotaz\u016f:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment v Kubernetes #1: Gitlab CI\" src=\"\/wp-content\/uploads\/2020\/07\/d1177207ebd8952fd1994ed0ebdda6a3.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<p>Aktu\u00e1ln\u00ed stav na\u0161\u00ed aplikace (GitOps, bran\u00e9 z Git jako z jedin\u00e9 pravdy) je p\u0159\u00edtomnost dvou nasazen\u00ed s aktivn\u00edmi replikami, po jedn\u00e9 pro ka\u017edou verzi.<\/p>\n<p><\/p>\n<p>~10 % u\u017eivatel\u016f se seznamuj\u00ed s novou verz\u00ed a nen\u00e1hodn\u011b ji testuj\u00ed. Nyn\u00ed je \u010das zkontrolovat p\u0159\u00edtomnost chyb v logech a monitoringov\u00fdch datech, abychom na\u0161li probl\u00e9my.<\/p>\n<p><\/p>\n<h4 id=\"shag-2-vypustit-novuyu-versiyu-dlya-vseh-polzovateley\">Krok 2: uvolnit novou verzi pro v\u0161echny u\u017eivatele<\/h4>\n<p><\/p>\n<p>Rozhodli jsme se, \u017ee v\u0161e dopadlo dob\u0159e a nyn\u00ed pot\u0159ebujeme nasadit novou verzi pro v\u0161echny u\u017eivatele. K tomu jednodu\u0161e aktualizujeme <code>deploy.yaml<\/code> nainstalov\u00e1n\u00edm nov\u00e9 verze obrazu a po\u010dtem replik rovn\u00fd 10. V <code>deploy-canary.yaml<\/code> Nastavujeme po\u010det replik na zp\u011btnou hodnotu 0. Po nasazen\u00ed bude v\u00fdsledek n\u00e1sleduj\u00edc\u00ed:<\/p>\n<p>\n<img decoding=\"async\" alt=\"Canary Deployment v 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\">Shrnut\u00ed<\/h3>\n<p><\/p>\n<p>Pro m\u011b je spu\u0161t\u011bn\u00ed nasazen\u00ed t\u00edmto zp\u016fsobem u\u017eite\u010dn\u00e9, proto\u017ee ukazuje, jak snadno lze prov\u00e9st konfiguraci pomoc\u00ed k8s. Kubernetes umo\u017e\u0148uje aktualizace prost\u0159ednictv\u00edm API, a tyto kroky mohou b\u00fdt automatizov\u00e1ny skripty.<\/p>\n<p><\/p>\n<p>Dal\u0161\u00ed v\u011bc\u00ed, kterou je t\u0159eba implementovat, je vstupn\u00ed bod testera (LoadBalancer nebo p\u0159es Ingress), skrze kter\u00fd je mo\u017en\u00e9 p\u0159istupovat pouze k nov\u00e9 verzi. Ten m\u016f\u017ee b\u00fdt pou\u017eit k manu\u00e1ln\u00edmu sledov\u00e1n\u00ed.<\/p>\n<p><\/p>\n<p>V n\u00e1sleduj\u00edc\u00edch \u010dl\u00e1nc\u00edch prozkoum\u00e1me dal\u0161\u00ed automatizovan\u00e1 \u0159e\u0161en\u00ed, kter\u00e1 realizuj\u00ed v\u011bt\u0161inu toho, co jsme ud\u011blali.<\/p>\n<p><\/p>\n<h2 id=\"takzhe-chitayte-drugie-stati-v-nashem-bloge\">Tak\u00e9 si p\u0159e\u010dt\u011bte dal\u0161\u00ed \u010dl\u00e1nky na na\u0161em blogu:<\/h2>\n<p><\/p>\n<ul>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/468779\/\">K \u010demu vedla migrace z ClickHouse bez autorizace na ClickHouse s autorizac\u00ed<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/473578\/\">Sestaven\u00ed dynamick\u00fdch modul\u016f pro Nginx<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/news\/t\/502658\/\">Aktualizace nxs-build-tools \u2014 asistenta pro sestaven\u00ed deb a rpm bal\u00ed\u010dk\u016f<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/473014\/\">\u00davod do autorizace Kubernetes v Hashicorp Consul<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/504762\/\">S \u010d\u00edm jsme se museli vypo\u0159\u00e1dat p\u0159i pou\u017eit\u00ed n\u00e1stroje Csync2<\/a><\/noindex><\/li>\n<li><noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/nixys\/blog\/347526\/\">Telegram bot pro Redmine. Jak si usnadnit \u017eivot sob\u011b i lidem<\/a><\/noindex><\/li>\n<\/ul>\n<p>Zdroj: <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\/cs\/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=\"cs_CZ\" \/>\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\/cs\/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 v Kubernetes #1: Gitlab CI | ProHoster","description":"Budeme pou\u017e\u00edvat Gitlab CI a ru\u010dn\u00ed GitOps pro zaveden\u00ed a pou\u017eit\u00ed Canary nasazen\u00ed.","canonical_url":"https:\/\/prohoster.info\/cs\/blog\/administrirovanie\/canary-deployment-v-kubernetes-1-gitlab-ci","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"cs_CZ","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\/cs\/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\/cs\/wp-json\/wp\/v2\/posts\/90272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/comments?post=90272"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/posts\/90272\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/media\/90273"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/media?parent=90272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/categories?post=90272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/tags?post=90272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}