{"id":36484,"date":"2019-10-31T22:11:54","date_gmt":"2019-10-31T19:11:54","guid":{"rendered":"https:\/\/prohoster.info\/blog\/kubernetes-priklyuchenie-dailymotion-sozdanie-infrastruktury-v-oblakah-on-premises\/"},"modified":"2019-10-31T22:11:54","modified_gmt":"2019-10-31T19:11:54","slug":"kubernetes-priklyuchenie-dailymotion-sozdanie-infrastruktury-v-oblakah-on-premises","status":"publish","type":"post","link":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kubernetes-priklyuchenie-dailymotion-sozdanie-infrastruktury-v-oblakah-on-premises","title":{"rendered":"P\u00ebrvoja Kubernetes e Dailymotion: nd\u00ebrtimi i infrastruktur\u00ebs n\u00eb cloud + on-premises","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"P\u00ebrvoja Kubernetes e Dailymotion: nd\u00ebrtimi i infrastruktur\u00ebs n\u00eb cloud + on-premises\" src=\"\/wp-content\/uploads\/2019\/07\/a30bdada22eff611ec47864ef988e1ed.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\n<i><b>Sh\u00ebn. p\u00ebrkth.<\/b>: Dailymotion \u2014 nj\u00eb nga sh\u00ebrbimet m\u00eb t\u00eb m\u00ebdha n\u00eb bot\u00ebn e hostimit t\u00eb videove dhe prandaj nj\u00eb p\u00ebrdorues i duksh\u00ebm i Kubernetes. N\u00eb k\u00ebt\u00eb material, arkitekti i sistemit David Donchez ndan p\u00ebrfundimet e krijimit t\u00eb platform\u00ebs prodhuese t\u00eb kompanis\u00eb mbi baz\u00ebn e K8s, e cila filloi me nj\u00eb instalim n\u00eb re n\u00eb GKE dhe p\u00ebrfundoi si nj\u00eb zgjidhje hibride, duke arritur k\u00ebshtu t\u00eb p\u00ebrmir\u00ebsoj\u00eb koh\u00ebn e reagimit dhe t\u00eb kursej\u00eb n\u00eb shpenzimet infrastrukturore.<\/i><\/p>\n<p>Duke marr\u00eb parasysh vendimin p\u00ebr ri-organizimin e API-t kryesor <noindex><a rel=\"nofollow\" href=\"https:\/\/www.dailymotion.com\/\">Dailymotion<\/a><\/noindex> tre vjet m\u00eb par\u00eb, d\u00ebshironim t\u00eb zhvillonim nj\u00eb m\u00ebnyr\u00eb m\u00eb efikase p\u00ebr t\u00eb vendosur aplikacione dhe p\u00ebr t\u00eb leht\u00ebsuar <noindex><a rel=\"nofollow\" href=\"https:\/\/medium.com\/dailymotion\/deploying-apps-on-multiple-kubernetes-clusters-with-helm-19ee2b06179e\">proceset n\u00eb zhvillimin dhe prodhimin<\/a><\/noindex>. P\u00ebr k\u00ebt\u00eb q\u00ebllim, ne vendos\u00ebm t\u00eb p\u00ebrdornim platform\u00ebn e orkestrimit t\u00eb kontejner\u00ebve dhe natyrsh\u00ebm zgjodh\u00ebm Kubernetes.<\/p>\n<p>Pse ia vlen t\u00eb krijosh nj\u00eb platform\u00eb t\u00eb vet\u00ebn mbi baz\u00ebn e Kubernetes?<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h2>API me nivel prodhimi n\u00eb nj\u00eb koh\u00eb t\u00eb shkurt\u00ebr me ndihm\u00ebn e Google Cloud<\/h2>\n<p><\/p>\n<blockquote><p>Ver\u00ebs 2016<\/p><\/blockquote>\n<p>\nTre vjet m\u00eb par\u00eb, menj\u00ebher\u00eb pas blerjes s\u00eb Dailymotion nga <noindex><a rel=\"nofollow\" href=\"https:\/\/www.vivendi.com\/\">Vivendi<\/a><\/noindex>, ekipet tona inxhinierike u p\u00ebrqendruan n\u00eb nj\u00eb objektiv global: t\u00eb krijonin nj\u00eb produkt krejt\u00ebsisht t\u00eb ri Dailymotion.<\/p>\n<p>Pas analiz\u00ebs s\u00eb kontejner\u00ebve, zgjidhjeve p\u00ebr orkestrim dhe p\u00ebrvoj\u00ebs son\u00eb t\u00eb kaluar, u bind\u00ebm se Kubernetes ishte zgjedhja e duhur. Pjesa e zhvilluesve tashm\u00eb kishte njohuri p\u00ebr konceptet baz\u00eb dhe dinin si ta p\u00ebrdornin, q\u00eb ishte nj\u00eb p\u00ebrpar\u00ebsi e madhe p\u00ebr transformimin infrastruktural.<\/p>\n<p>Nga pik\u00ebpamja e infrastruktur\u00ebs, ne kishim nevoj\u00eb p\u00ebr nj\u00eb sistem t\u00eb fuqish\u00ebm dhe fleksib\u00ebl p\u00ebr vendosjen e llojeve t\u00eb reja t\u00eb aplikacioneve cloud-native. Ne preferuam t\u00eb q\u00ebndronim n\u00eb re n\u00eb fillim t\u00eb udh\u00ebtimit ton\u00eb, p\u00ebr t\u00eb nd\u00ebrtuar nj\u00eb platform\u00eb lokale sa m\u00eb t\u00eb besueshme. Aplikacionet tona vendos\u00ebm t'i shp\u00ebrndanim p\u00ebrmes Google Kubernetes Engine, edhe pse e dinim se m\u00eb von\u00eb do t\u00eb kalonim n\u00eb qendrat tona t\u00eb t\u00eb dh\u00ebnave dhe do t\u00eb aplikonim nj\u00eb strategji hibride.<\/p>\n<h3>Pse zgjodh\u00ebm GKE?<\/h3>\n<p>\nNe b\u00ebm\u00eb k\u00ebt\u00eb zgjedhje kryesisht p\u00ebr arsye teknike. Gjithashtu, u desh t\u00eb ofronim shpejt infrastruktur\u00eb q\u00eb i p\u00ebrgjigjej nevojave t\u00eb biznesit t\u00eb kompanis\u00eb. Kishim disa k\u00ebrkesa p\u00ebr vendosjen e aplikacioneve, si\u00e7 jan\u00eb shp\u00ebrndarja gjeografike, shkall\u00ebzueshm\u00ebria dhe q\u00ebndrueshm\u00ebria ndaj d\u00ebshtimeve.<\/p>\n<p><img decoding=\"async\" alt=\"P\u00ebrvoja Kubernetes e Dailymotion: nd\u00ebrtimi i infrastruktur\u00ebs n\u00eb cloud + on-premises\" src=\"\/wp-content\/uploads\/2019\/07\/87b01007260066aa7814fb5dacca8707.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<i>Klasteret GKE n\u00eb Dailymotion<\/i><\/p>\n<p>Duke qen\u00eb se Dailymotion \u00ebsht\u00eb nj\u00eb platform\u00eb videosh, e accessible n\u00eb t\u00eb gjith\u00eb bot\u00ebn, ne d\u00ebshironim shum\u00eb t\u00eb p\u00ebrmir\u00ebsonim cil\u00ebsin\u00eb e sh\u00ebrbimit duke ulur koh\u00ebn e pritjes <i>(latency)<\/i>. M\u00eb par\u00eb <noindex><a rel=\"nofollow\" href=\"https:\/\/developer.dailymotion.com\/\">API jon\u00eb<\/a><\/noindex> ishte t\u00eb ishte n\u00eb Paris, q\u00eb nuk ishte optimal. Kishim d\u00ebshir\u00eb t\u00eb vendosnim aplikacionet jo vet\u00ebm n\u00eb Evrop\u00eb, por edhe n\u00eb Azi dhe Shtetet e Bashkuara.<\/p>\n<p>Kjo ndjeshm\u00ebri ndaj vonesave n\u00ebnkuptonte se do t\u00eb duhej t\u00eb punonim seriozisht mbi arkitektur\u00ebn rrjetore t\u00eb platform\u00ebs. Nd\u00ebrsa shumica e sh\u00ebrbimeve cloud e detyronin t\u00eb krijonim rrjetin ton\u00eb n\u00eb \u00e7do rajon dhe pastaj t'i lidhim ato p\u00ebrmes VPN ose ndonj\u00eb sh\u00ebrbimi t\u00eb menaxhuar, Google Cloud lejonte krijimin e nj\u00eb rrjeti t\u00eb unifikuar t\u00eb plot\u00eb, t\u00eb routing-uar, q\u00eb mbulon t\u00eb gjitha rajonet e Google. Kjo \u00ebsht\u00eb nj\u00eb avantazh i madh n\u00eb aspektin e operimit dhe efikasitetit t\u00eb sistemit.<\/p>\n<p>P\u00ebr m\u00eb tep\u00ebr, sh\u00ebrbimet rrjetore dhe balancuesit e ngarkes\u00ebs nga Google Cloud funksionojn\u00eb shk\u00eblqyer. Ato lejojn\u00eb thjesht p\u00ebrdorimin e adresave IP publike nga \u00e7do rajon, dhe protokolli i shk\u00eblqyer BGP kujdeset p\u00ebr gjith\u00e7ka tjet\u00ebr (dmth, drejton p\u00ebrdoruesit n\u00eb klasterin m\u00eb t\u00eb af\u00ebrt). \u00cbsht\u00eb e qart\u00eb se n\u00eb rast t\u00eb d\u00ebshtimit, trafik fillimisht do t\u00eb derdhet automatikisht n\u00eb nj\u00eb rajon tjet\u00ebr pa ndonj\u00eb nd\u00ebrhyrje t\u00eb njeriut.<\/p>\n<p><img decoding=\"async\" alt=\"P\u00ebrvoja Kubernetes e Dailymotion: nd\u00ebrtimi i infrastruktur\u00ebs n\u00eb cloud + on-premises\" src=\"\/wp-content\/uploads\/2019\/07\/fa6a14cf56fbf16fb6ca5da837dbd915.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<i>Monitorimi i balancimit t\u00eb ngarkes\u00ebs n\u00eb Google<\/i><\/p>\n<p>Platforma jon\u00eb gjithashtu aktivisht p\u00ebrfshin procesor\u00ebt grafik\u00eb. Google Cloud lejon p\u00ebrdorimin e tyre shum\u00eb efikasish n\u00eb klasteret Kubernetes.<\/p>\n<p>N\u00eb at\u00eb koh\u00eb, ekipi i infrastruktur\u00ebs kryesisht p\u00ebrqendrohej n\u00eb teknologjin\u00eb e vjet\u00ebr, t\u00eb vendosur n\u00eb serverat fizik\u00eb. Pik\u00ebrisht p\u00ebr k\u00ebt\u00eb arsye, p\u00ebrdorimi i sh\u00ebrbimeve t\u00eb menaxhuara (p\u00ebrfshir\u00eb komponent\u00ebt kryesor\u00eb t\u00eb Kubernetes) p\u00ebrmbushte k\u00ebrkesat tona dhe lejonte trajnimin e ekipeve p\u00ebr t\u00eb punuar me klasteret lokale.<\/p>\n<p>Si rezultat, arrit\u00ebm t\u00eb fillonim t\u00eb merrnim trafik production n\u00eb infrastruktur\u00ebn Google Cloud vet\u00ebm 6 muaj pas fillimit t\u00eb pun\u00ebs.<\/p>\n<p>Megjithat\u00eb, p\u00ebrve\u00e7 disa avantazheve, puna me nj\u00eb ofrues cloud vjen me disa kosto q\u00eb mund t\u00eb rriten n\u00eb var\u00ebsi t\u00eb ngarkes\u00ebs. Kjo \u00ebsht\u00eb arsyeja pse ne kemi analizuar me kujdes \u00e7do sh\u00ebrbim t\u00eb menaxhuar q\u00eb p\u00ebrdorim, duke llogaritur n\u00eb t\u00eb ardhmen p\u00ebr ta implementuar n\u00eb ambientin ton\u00eb on-premises. N\u00eb t\u00eb v\u00ebrtet\u00eb, implementimi i klastereve lokale filloi n\u00eb fund t\u00eb vitit 2016 dhe po ashtu u iniciua nj\u00eb strategji hibride.<\/p>\n<h2>Lansimi i platform\u00ebs lokale t\u00eb orkestrimit t\u00eb konteiner\u00ebve Dailymotion<\/h2>\n<p><\/p>\n<blockquote><p>Vjeshta e vitit 2016<\/p><\/blockquote>\n<p>\nN\u00eb kushtet kur e gjith\u00eb staku ishte i gatsh\u00ebm p\u00ebr production, dhe puna mbi API-n\u00eb <noindex><a rel=\"nofollow\" href=\"https:\/\/tartiflette.io\/\">po vazhdonte<\/a><\/noindex>, kishim t\u00eb p\u00ebrqendrohemi n\u00eb klasteret rajonale.<\/p>\n<p>N\u00eb at\u00eb koh\u00eb, p\u00ebrdoruesit shihnin m\u00eb shum\u00eb se 3 miliard video \u00e7do muaj. Sigurisht, kishte disa vite q\u00eb ndodhej n\u00eb funksion nj\u00eb rrjet i gjer\u00eb t\u00eb shp\u00ebrndarjes s\u00eb p\u00ebrmbajtjes. Ne donim t\u00eb shfryt\u00ebzonim k\u00ebt\u00eb rast dhe t\u00eb vendosnim klastere Kubernetes n\u00eb qendrat ekzistuese t\u00eb t\u00eb dh\u00ebnave.<\/p>\n<p>Infrastruktura e Dailymotion p\u00ebrfshinte m\u00eb shum\u00eb se 2,5 mij\u00eb server\u00eb n\u00eb gjasht\u00eb qendra t\u00eb t\u00eb dh\u00ebnave. T\u00eb gjith\u00eb ato konfigurohen me ndihm\u00ebn e Saltstack. Filluam t\u00eb p\u00ebrgatisnin t\u00eb gjith\u00eb receta t\u00eb nevojshme p\u00ebr t\u00eb krijuar nodet master dhe worker, si dhe klasterin etcd.<\/p>\n<p><img decoding=\"async\" alt=\"P\u00ebrvoja Kubernetes e Dailymotion: nd\u00ebrtimi i infrastruktur\u00ebs n\u00eb cloud + on-premises\" src=\"\/wp-content\/uploads\/2019\/07\/1b9924fd95cbf729126be6ad8b5e401e.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<h3>Pjesa rrjetore<\/h3>\n<p>\nRrjeti yn\u00eb \u00ebsht\u00eb plot\u00ebsisht i adresuesh\u00ebm. \u00c7do server shpall IP-n\u00eb e tij n\u00eb rrjet me Exabgp. Ne e krahasuam disa plugina rrjetesh dhe i vetmi q\u00eb p\u00ebrmbushte t\u00eb gjitha nevojat (p\u00ebr shkak t\u00eb qasjes s\u00eb p\u00ebrdorur n\u00eb nivelin L3) ishte <noindex><a rel=\"nofollow\" href=\"https:\/\/www.projectcalico.org\/\">Calico<\/a><\/noindex>. Ai u p\u00ebrshtat mjaft mir\u00eb me modelin ekzistues t\u00eb rrjetit t\u00eb infrastruktur\u00ebs.<\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u043e\u044f\u043b\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043d\u0430\u0448\u0435\u0439 \u0434\u043e\u043c\u043e\u0440\u043e\u0449\u0435\u043d\u043d\u043e\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445): \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0435\u0439 \u0434\u043b\u044f \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u043e\u0432 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0432 \u0441\u0435\u0442\u0438 \u0441 Kubernetes-\u0443\u0437\u043b\u0430\u043c\u0438. \u041c\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0438 Calico \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441\u0430 pod&#8217;\u0430\u043c, \u043d\u043e \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0435\u0433\u043e \u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u043b\u044f BGP-\u0441\u0435\u0441\u0441\u0438\u0439 \u043d\u0430 \u0441\u0435\u0442\u0435\u0432\u043e\u043c \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0438. \u041f\u043e \u0444\u0430\u043a\u0442\u0443 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f Exabgp, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u0443\u0435\u0442 \u043f\u043e\u0434\u0441\u0435\u0442\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 Calico. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u0447\u0430\u0442\u044c\u0441\u044f \u043a \u043b\u044e\u0431\u043e\u043c\u0443 pod&#8217;\u0443 \u0438\u0437 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0439 \u0441\u0435\u0442\u0438 (\u0438 \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u043e\u0432 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438).<\/p>\n<h3>Si menaxhojm\u00eb trafikun ingress<\/h3>\n<p>\nP\u00ebr t\u00eb ridrejtuar k\u00ebrkesat e ardhshme n\u00eb sh\u00ebrbimin e duhur, vendos\u00ebm t\u00eb p\u00ebrdorim Ingress Controller p\u00ebr shkak t\u00eb integrimit t\u00eb tij me burimet ingress t\u00eb Kubernetes.<\/p>\n<p>T\u00eb tre vjet m\u00eb par\u00eb, nginx-ingress-controller ishte kontrolluesi m\u00eb i zhvilluar: Nginx ishte p\u00ebrdorur prej shum\u00eb Koh\u00ebsh dhe ishte i njohur p\u00ebr stabilitetin dhe performanc\u00ebn e tij.<\/p>\n<p>\u0412 \u0441\u0432\u043e\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b \u043d\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 10-\u0433\u0438\u0433\u0430\u0431\u0438\u0442\u043d\u044b\u0445 \u0431\u043b\u0435\u0439\u0434-\u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445. \u041a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b\u0441\u044f \u043a endpoint&#8217;\u0443 kube-apiserver \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430. \u041d\u0430 \u044d\u0442\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f Exabgp \u0434\u043b\u044f \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0445 \u0438\u043b\u0438 \u0447\u0430\u0441\u0442\u043d\u044b\u0445 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432. \u0422\u043e\u043f\u043e\u043b\u043e\u0433\u0438\u044f \u043d\u0430\u0448\u0435\u0439 \u0441\u0435\u0442\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c BGP \u0438\u0437 \u044d\u0442\u0438\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430 pod&#8217;\u044b \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0442\u0438\u043f\u0430 NodePort. \u0422\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 \u0443\u0437\u043b\u0430\u043c\u0438 \u0438 \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c.<\/p>\n<p><img decoding=\"async\" alt=\"P\u00ebrvoja Kubernetes e Dailymotion: nd\u00ebrtimi i infrastruktur\u00ebs n\u00eb cloud + on-premises\" src=\"\/wp-content\/uploads\/2019\/07\/5f715a395d72579a2d123520ccd6c933.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<i>\u0414\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043a pod&#8217;\u0430\u043c<\/i><\/p>\n<p>Tani q\u00eb u shqyrtuam me platform\u00ebn ton\u00eb hibride, mund t\u00eb thellohemi n\u00eb procesin e migrimit t\u00eb trafikut.<\/p>\n<h2>Migrimi i trafikut nga Google Cloud n\u00eb infrastruktur\u00ebn e Dailymotion<\/h2>\n<p><\/p>\n<blockquote><p>Vjeshta e 2018-\u00ebs<\/p><\/blockquote>\n<p>\nPas gati dy vitesh krijimi, testimi dhe konfiguroi, ne p\u00ebrfundimisht mor\u00ebm nj\u00eb stack t\u00eb plot\u00eb Kubernetes, gati p\u00ebr t\u00eb pranuar nj\u00eb pjes\u00eb t\u00eb trafikut.<\/p>\n<p><img decoding=\"async\" alt=\"P\u00ebrvoja Kubernetes e Dailymotion: nd\u00ebrtimi i infrastruktur\u00ebs n\u00eb cloud + on-premises\" src=\"\/wp-content\/uploads\/2019\/07\/6028f9f810c3e0e3f2a32819a1f38df5.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nStrategjia aktuale e routimit \u00ebsht\u00eb mjaft e thjesht\u00eb, por plot\u00ebson nevojat. P\u00ebrve\u00e7 adresave IP publike (n\u00eb Google Cloud dhe Dailymotion), p\u00ebrdoret AWS Route 53 p\u00ebr t\u00eb vendosur politika dhe p\u00ebr t\u00eb redirektuar p\u00ebrdoruesit n\u00eb grupin e zgjedhur prej nesh.<\/p>\n<p><img decoding=\"async\" alt=\"P\u00ebrvoja Kubernetes e Dailymotion: nd\u00ebrtimi i infrastruktur\u00ebs n\u00eb cloud + on-premises\" src=\"\/wp-content\/uploads\/2019\/07\/e3878f4d34deabfa872e4d20aef9376e.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<i>Shembulli i politik\u00ebs s\u00eb routimit duke p\u00ebrdorur Route 53<\/i><\/p>\n<p>Me Google Cloud, kjo \u00ebsht\u00eb e thjesht\u00eb, pasi ne p\u00ebrdorim nj\u00eb IP t\u00eb vetme p\u00ebr t\u00eb gjith\u00eb grupet, dhe p\u00ebrdoruesi redirektohet n\u00eb grupin GKE m\u00eb t\u00eb af\u00ebrt. P\u00ebr grupet tona teknologjia \u00ebsht\u00eb e ndryshme, pasi adresat e tyre IP ndryshojn\u00eb.<\/p>\n<p>Gjat\u00eb migrimit, p\u00ebrpiqeshim t\u00eb redirektonim k\u00ebrkesat rajonale nga p\u00ebrdoruesit n\u00eb grupet p\u00ebrkat\u00ebse dhe vler\u00ebsuam p\u00ebrfitimet e k\u00ebtij qasje.<\/p>\n<p>Duke qen\u00eb se grupet tona GKE jan\u00eb konfiguruar p\u00ebr shkatht\u00ebsin\u00eb automatike duke p\u00ebrdorur Custom Metrics, ato rrisin\/pak\u00ebsojn\u00eb kapacitetin n\u00eb p\u00ebrputhje me trafikun q\u00eb hyjn\u00eb.<\/p>\n<p>\u0412 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0432\u0435\u0441\u044c \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0440\u0430\u0444\u0438\u043a \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440, \u0430 GKE \u0441\u043b\u0443\u0436\u0438\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u043e\u043c \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c (health-check&#8217;\u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u044f\u0442\u0441\u044f Route 53).<\/p>\n<h2>\u2026<\/h2>\n<p>\nN\u00eb t\u00eb ardhmen, ne d\u00ebshirojm\u00eb t\u00eb automatizojm\u00eb plot\u00ebsisht politikat e rutimit p\u00ebr t\u00eb arritur nj\u00eb strategji autonome hibrid q\u00eb p\u00ebrmir\u00ebson vazhdimisht disponueshm\u00ebrin\u00eb p\u00ebr p\u00ebrdoruesit. Si p\u00ebrfitim, shpenzimet p\u00ebr cloud u reduktuan ndjesh\u00ebm dhe arrit\u00ebm madje t\u00eb ul\u00ebm edhe koh\u00ebn e reagimit t\u00eb API-ve. Ne besojm\u00eb n\u00eb platform\u00ebn ton\u00eb t\u00eb cloud e cila \u00ebsht\u00eb e gatshme t\u00eb drejtoj\u00eb m\u00eb shum\u00eb trafik kur t\u00eb nevojitet.<\/p>\n<h2>P.S. nga p\u00ebrkthyesi<\/h2>\n<p>\nMund t\u00eb jeni t\u00eb interesuar edhe p\u00ebr nj\u00eb publikim tjet\u00ebr t\u00eb fundit nga Dailymotion n\u00eb lidhje me Kubernetes. Ai i kushtohet implementimit t\u00eb aplikacioneve me Helm n\u00eb shum\u00eb klaster\u00eb Kubernetes dhe <noindex><a rel=\"nofollow\" href=\"https:\/\/medium.com\/dailymotion\/deploying-apps-on-multiple-kubernetes-clusters-with-helm-19ee2b06179e\">u publikua<\/a><\/noindex> para nj\u00eb muaji.<\/p>\n<p>Lexoni gjithashtu n\u00eb blogun ton\u00eb:<\/p>\n<ul>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/440278\/\">Kalimi i Tinder n\u00eb Kubernetes<\/a><\/noindex>\u00bb.<\/li>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/441754\/\">Histori suksesi t\u00eb Kubernetes n\u00eb prodhim. Pjesa 10: <b>Reddit<\/b><\/a><\/noindex>\u00bb;<\/li>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/412571\/\">Histori suksesi t\u00eb Kubernetes n\u00eb prodhim. Pjesa 9: <b>CERN dhe 210 klaster\u00eb K8s<\/b><\/a><\/noindex>\u00bb;<\/li>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/349940\/\">Histori suksesi t\u00eb Kubernetes n\u00eb prodhim. Pjesa 8: <b>Huawei<\/b><\/a><\/noindex>\u00bb;<\/li>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/347098\/\">Histori suksesi t\u00eb Kubernetes n\u00eb prodhim. Pjesa 7: <b>BlackRock<\/b><\/a><\/noindex>\u00bb;<\/li>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/345780\/\">Histori suksesi t\u00eb Kubernetes n\u00eb prodhim. Pjesa 6: <b>BlaBlaCar<\/b><\/a><\/noindex>\u00bb;<\/li>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/342412\/\">Histori suksesi t\u00eb Kubernetes n\u00eb prodhim. Pjesa 5: <b>banku digjital Monzo<\/b><\/a><\/noindex>\u00bb;<\/li>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/339724\/\">Histori suksesi t\u00eb Kubernetes n\u00eb prodhim. Pjesa 4: <b>SoundCloud (autoret e Prometheus)<\/b><\/a><\/noindex>\u00bb;<\/li>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/335814\/\">Histori suksesi t\u00eb Kubernetes n\u00eb prodhim. Pjesa 3: <b>GitHub<\/b><\/a><\/noindex>\u00bb;<\/li>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/334770\/\">Histori suksesi t\u00eb Kubernetes n\u00eb prodhim. Pjesa 2: <b>Concur dhe SAP<\/b><\/a><\/noindex>\u00bb;<\/li>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/334140\/\">Histori suksesi t\u00eb Kubernetes n\u00eb prodhim. Pjesa 1: <b>4200 pod dhe TessMaster n\u00eb eBay<\/b><\/a><\/noindex>\u00bb.<\/li>\n<\/ul>\n<p>Burimi: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/460877\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041f\u0440\u0438\u043c. \u043f\u0435\u0440\u0435\u0432.: Dailymotion \u2014 \u043e\u0434\u0438\u043d \u0438\u0437 \u043a\u0440\u0443\u043f\u043d\u0435\u0439\u0448\u0438\u0445 \u0432 \u043c\u0438\u0440\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u0432\u0438\u0434\u0435\u043e \u0438 \u043f\u043e\u0442\u043e\u043c\u0443 \u0437\u0430\u043c\u0435\u0442\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c Kubernetes. \u0412 \u044d\u0442\u043e\u043c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u043e\u0440 David Donchez \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u0438\u0442\u043e\u0433\u0430\u043c\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f production-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043d\u0430 \u0431\u0430\u0437\u0435 K8s, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0430\u0441\u044c \u0441 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 \u0432 GKE \u0438 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0430\u0441\u044c \u043a\u0430\u043a \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043b\u0443\u0447\u0448\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0440\u0435\u0430\u043a\u0446\u0438\u0438 \u0438 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043d\u0430 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043d\u044b\u0445 \u0437\u0430\u0442\u0440\u0430\u0442\u0430\u0445. [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":27305,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-36484","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.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\".\" \/>\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\/kubernetes-priklyuchenie-dailymotion-sozdanie-infrastruktury-v-oblakah-on-premises\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\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\udd47Kubernetes-\u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 Dailymotion: \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432 \u043e\u0431\u043b\u0430\u043a\u0430\u0445 + on-premises | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\".\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kubernetes-priklyuchenie-dailymotion-sozdanie-infrastruktury-v-oblakah-on-premises\" \/>\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=\"2019-10-31T19:11:54+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:11:54+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\udd47Aventura Kubernetes e Dailymotion: krijimi i infrastruktur\u00ebs n\u00eb cloud + on-premises | ProHoster","description":".","canonical_url":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kubernetes-priklyuchenie-dailymotion-sozdanie-infrastruktury-v-oblakah-on-premises","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\udd47Kubernetes-\u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 Dailymotion: \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432 \u043e\u0431\u043b\u0430\u043a\u0430\u0445 + on-premises | ProHoster","og:description":".","og:url":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/kubernetes-priklyuchenie-dailymotion-sozdanie-infrastruktury-v-oblakah-on-premises","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":"2019-10-31T19:11:54+00:00","article:modified_time":"2019-10-31T19:11:54+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"36484","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":"2026-01-22 03:31:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 01:44:22","updated":"2026-01-22 03:31:19","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\/36484","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=36484"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/36484\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media\/27305"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media?parent=36484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/categories?post=36484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/tags?post=36484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}