state of the art containerized nodejs
TRANSCRIPT
![Page 1: State of the Art Containerized Nodejs](https://reader030.vdocument.in/reader030/viewer/2022020410/587585b41a28ab901c8b4b1b/html5/thumbnails/1.jpg)
July 25, 2016
State of the Art Containerized Node.js
Ross Kukulinski
![Page 2: State of the Art Containerized Nodejs](https://reader030.vdocument.in/reader030/viewer/2022020410/587585b41a28ab901c8b4b1b/html5/thumbnails/2.jpg)
© 2016 Ross Kukulinski#NeedToNode
2
@RossKukulinski Product Manager — NodeSource
Node.js Evangelist
Container Advocate
Introduction to CoreOS - O’Reilly Media
Welcome
![Page 3: State of the Art Containerized Nodejs](https://reader030.vdocument.in/reader030/viewer/2022020410/587585b41a28ab901c8b4b1b/html5/thumbnails/3.jpg)
© 2016 NodeSource Confidential
Welcome
3
Today’s plan • Container Orchestration for Node.js
• Deploy Node.js to Kubernetes
![Page 4: State of the Art Containerized Nodejs](https://reader030.vdocument.in/reader030/viewer/2022020410/587585b41a28ab901c8b4b1b/html5/thumbnails/4.jpg)
© 2016 NodeSource Confidential4
Containers + Node.js = Happy Ops • Immutability
• Explicit Dependencies
• Fast boot & restart
• Scale at process level
Happy Ops
![Page 5: State of the Art Containerized Nodejs](https://reader030.vdocument.in/reader030/viewer/2022020410/587585b41a28ab901c8b4b1b/html5/thumbnails/5.jpg)
© 2016 NodeSource Confidential5
If your architecture looks like this: Manage Docker applications with Ansible or ECS/Docker Swarm
Container Orchestration
![Page 6: State of the Art Containerized Nodejs](https://reader030.vdocument.in/reader030/viewer/2022020410/587585b41a28ab901c8b4b1b/html5/thumbnails/6.jpg)
© 2016 NodeSource Confidential6
If it looks like this… We need some orchestration help
Container Orchestration
![Page 7: State of the Art Containerized Nodejs](https://reader030.vdocument.in/reader030/viewer/2022020410/587585b41a28ab901c8b4b1b/html5/thumbnails/7.jpg)
© 2016 NodeSource Confidential
Orchestration Overview
7
Container Orchestration • Schedule containers to physical machines
• Service discovery
• Configuration/Secret Management
• Private container network
• Scale up and down
![Page 8: State of the Art Containerized Nodejs](https://reader030.vdocument.in/reader030/viewer/2022020410/587585b41a28ab901c8b4b1b/html5/thumbnails/8.jpg)
© 2016 NodeSource Confidential
Kubernetes 101
8
![Page 9: State of the Art Containerized Nodejs](https://reader030.vdocument.in/reader030/viewer/2022020410/587585b41a28ab901c8b4b1b/html5/thumbnails/9.jpg)
© 2016 NodeSource Confidential
Kubernetes Overview
9
Kubernetes is an open source system for automating
deployment, scaling, and management of containerized
applications
![Page 10: State of the Art Containerized Nodejs](https://reader030.vdocument.in/reader030/viewer/2022020410/587585b41a28ab901c8b4b1b/html5/thumbnails/10.jpg)
© 2016 NodeSource Confidential
Kubernetes Overview
10
Kubernetes + Node.js = Happy Devs/DevOps • Excels at microservice / distributed architectures
• Enables expedited shipping of new Node services
• Automated rollouts and rollbacks
• Service discovery and load balancing
• Secret and configuration management
• Horizontal application scaling
![Page 11: State of the Art Containerized Nodejs](https://reader030.vdocument.in/reader030/viewer/2022020410/587585b41a28ab901c8b4b1b/html5/thumbnails/11.jpg)
© 2016 NodeSource Confidential
Let’s ship to Kubernetes right now!
11
![Page 12: State of the Art Containerized Nodejs](https://reader030.vdocument.in/reader030/viewer/2022020410/587585b41a28ab901c8b4b1b/html5/thumbnails/12.jpg)
© 2016 NodeSource Confidential
Deploying Node with Kubernetes
12
github.com/rosskukulinski/n2n-docker
![Page 13: State of the Art Containerized Nodejs](https://reader030.vdocument.in/reader030/viewer/2022020410/587585b41a28ab901c8b4b1b/html5/thumbnails/13.jpg)
© 2016 NodeSource Confidential
Summary
13
Quick recap • Docker ideal distribution mechanism for Node.js applications
• Leverage best-practices when building Docker images
• Kubernetes provides efficient orchestration, management, and scaling of containerized Node.js Services