liquid day - microservicios y contenedores
TRANSCRIPT
![Page 1: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/1.jpg)
Yaerespartedelaevolución
INTEGRACIÓNYENTREGACONTINUACONMICROSERVICIOSYCONTENEDORES
DELINUXHugoGuerrero
[email protected] |@hguerreroo#sgnext
![Page 2: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/2.jpg)
HUGOGUERRERO
• SENIORSOLUTIONARCHITECT• REDHATMÉXICO•
- Desarrollador/Consultor/ArquitectodeSoftware- EspecialistadeMiddleware- EvangelistadeOpenSource- Entusiastadelacomida,losviajesylahistoria-
• @hguerreroo|[email protected]
![Page 3: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/3.jpg)
MICROSERVICIOS
![Page 4: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/4.jpg)
MICROSERVICIOS
l Es un enfoque para desarrollar unaAplicación como un conjuntocoordinado de pequeños servicios,cada uno corre dentro de su propioprocesos y se comunican entre símediante un mecanismo liviano,usualmente HTTP REST.
l
l Adrian Cockcroft de Netflix, defineuna Arquitectura de Microservicios,como una Arquitectura Orientada aServicios compuesta de elementosbajamente acoplados los cualesestán delimitados por contextos.
![Page 5: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/5.jpg)
MICROSERVICIOS
Microservicios es acerca de
AGILIDADEntrega, Despliegue y Mejora Continua
![Page 6: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/6.jpg)
MICROSERVICIOS
![Page 7: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/7.jpg)
MICROSERVICIOS
l BENEFICIOSl Cadaservicioesdesplegado
independientemente,fácilparadesplegarnuevasversiones.
l Múltiplesequipospuedentrabajarparalelamenteenunagranaplicación.
l Suaislamientoprotegeelrestodeloscomponentesdelaaplicación.
l Eliminalosciclosdedesarrollodemasiadolargos.
l DESAFÍOSl Losdesarrolladoresdeben
enfrentar:- Eltestingpuedesercomplejo- Implementaruncasodeusosin
transaccionesdistribuidaspuedesercomplejo.
- Implementarcasosdeusoquerequierenmúltiplesserviciosrequiereunacoordinaciónespecial
l Eldespliegueylaadministraciónpuederesultarentareasadicionalesconrespectoaarquitecturastradicionales.
l IncrementoenconsumodeMemoria
![Page 8: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/8.jpg)
MICROSERVICIOS
Petición de Cambio
36 Semanas
De-construyendo el monolito – en servicios independientemente desplegables – microservicios desplegados en contenedores de Linux
Monolito
![Page 9: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/9.jpg)
OPENBANKPORTAL
![Page 10: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/10.jpg)
ENCAJANPERFECTOENCONTENEDORESDELINUXl Permiteconstruir,desplegaryejecutarrápidamentelosservicios
l Agnósticosdelatecnología
l AislamientodeprocesosOOTB
l Uncontenedoressólounproceso
![Page 11: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/11.jpg)
VMvsContenedor
![Page 12: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/12.jpg)
IMÁGENES
l Las imágenes de los contenedores son plantillas de sólolectura. Se pueden utilizar como punto de partida paraconstruir contenedores, apiladas una encima de otra comoun pastel multicapa.
![Page 13: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/13.jpg)
¿Porquécontenedores?
l Infraestructura inmutablel Entorno de ejecución reproduciblel Aislamientodelprocesol Distribucióndelaplicación(ysuambiente)
- UncontenedortrabajadelamismaformaencualquiermáquinaLinux
- Envíofácildedesarrolloaproducciónl Estandarización
![Page 14: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/14.jpg)
¿Porquécontenedores?
![Page 15: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/15.jpg)
¿Porquécontenedores?
l Las aplicaciones que corren en contenedoresestán diseñadas para asumir que los nodos endonde se ejecutan VAN a fallar.
l La orquestación de contenedores esta diseñadapara matar y re desplegar contenedores en unclúster si estos “se portan mal”.- Incluyenescalabilidadmediantecalendarización- Actualizacionesdelaimagenunoporunootodosalmismo
tiempo
![Page 16: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/16.jpg)
CI/CD
l CONTINUOUS INTEGRATION- Es una práctica que requiere que los desarrolladores integren
código en un repositorio compartido constantemente. Cadacheck-in es entonces verificado por un proceso de construcciónautomatizado, permitiendo que los equipos de desarrollodetecten problemas en una fase temprana. - Martin Fowler(www.thoughtworks.com/continuous-integration)
l CONTINUOUS DELIVERY- Es la habilidad de poder llevar cambios de todo tipo – incluyendo
nueva funcionalidad, cambios de configuración, bug fixes yexperimentos – a producción, o las manos de los usuarios, demanera rápida y segura en modo sustentable. - Jez Humble(continuousdelivery.com)
![Page 17: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/17.jpg)
COMPONENTES
CI/CD
ARTEFACTOS
ISSUES
CALIDAD
PMCVS
![Page 18: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/18.jpg)
OPENSHIFTHABILITACI/CD
![Page 19: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/19.jpg)
ESTRATEGIASPARAIMPLEMENTARCI/CDl Existen varias estrategias para implementar yejecutar ambientes de CI/CD con OpenShift- Usar funcionalidad “Out of the Box” (webhooks, S2I,
imagestreams, y triggers)- Integrar ambientes empresariales de CI/CD usando los API's de
OpenShift.- Mantener la administración actual aprovechando los beneficios
de cómputo elástico.- Ambientes empresariales de CI/CD completamente desplegados
como contenedores de Linux en OpenShift.
![Page 20: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/20.jpg)
INFRAESTRUCTURAEXISTENTEDECI/CDl API de fácil integración con OpenShift paraherramientas existentes- Ambiente empresarial de CI/CD- Pipelines de construcción y/o despliegue- Flujos de trabajo de desarrollo y/u operaciones
l La infraestructura actual de CI/CD provee- Motor de orquestación- Pipelines de construcción y despliegue- Componentes modulares e independientes
l Transición flexible al computo elástico de nube
![Page 21: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/21.jpg)
INFRAESTRUCTURAEXISTENTEDECI/CD
![Page 22: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/22.jpg)
CI/CDEXTERNACONAGENTESENOPENSHIFTl Infraestructura master CI/CD external Agentes corriendo en contenedores de OpenShiftl Habilita características de cómputo elásticol Acercamiento híbrido y flexiblel Habilita capacidades existentes y nuevas
![Page 23: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/23.jpg)
CI/CDEXTERNACONAGENTESENOPENSHIFT
![Page 24: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/24.jpg)
CI/CDENCONTENEDORES
l Utiliza una parte de las plantillas proporcionadaspor OpenShift.
l Permite crear un entorno de CI/CD completo encontenedores dentro de OpenShift.
l Habilita el poder de los contenedores y elcómputo elástico para:- Pipelines de construcción y despliegue- Aplicaciones y servicios
![Page 25: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/25.jpg)
CI/CDENCONTENEDORES
![Page 26: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/26.jpg)
DEMOEMPRESARIAL
Desarrolladores
Operaciones
![Page 27: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/27.jpg)
PIPELINEDECONSTRUCCIÓNYDESPLIEGUE
![Page 28: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/28.jpg)
ECOSISTEMAEMPRESARIAL
GITLAB NEXUS
Control de Versiones Repositorio de Artefactos
JENKINS
OPENSHIFT
Construcción / Orquestación
Todo corriendo en OpenShift!
![Page 29: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/29.jpg)
DEMO
![Page 30: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/30.jpg)
DEVELOPERS?
![Page 31: Liquid Day - Microservicios y contenedores](https://reader031.vdocument.in/reader031/viewer/2022030204/5a67ffdc7f8b9a7e348b491f/html5/thumbnails/31.jpg)
¿Preguntas?linkedin.com/company/red-hatfacebook.com/redhatincyoutube.com/redhat
twitter.com/RedHatNewsplus.google.com/+RedHat