Webinar : Docker in Production
-
Upload
newt-global-consulting-llc -
Category
Technology
-
view
82 -
download
4
Transcript of Webinar : Docker in Production
2017 Newt Global |www.NewtGlobal.com | Confidential
Follow us on:
Docker In Production Webinar Docker Orchestration
Newt Global Overview
Leader in DevOps Transformation, Test Automation and Cloud Enablement
Implemented end-to-end DevOps tool chains for Fortune 50 clients
Global Delivery Capability for any shore solution
Premium Level partnership with product companies
Reusable framework and libraries for faster delivery
Delivering cost optimization & measurable ROI consistently over a decade
Speakers
05/03/2023 Copyright 3
• Venkat is DevOps Practice Leader, His area of expertise includes DevOps and Cloud. Consult Fortune 100 customers on DevOps IT Strategy. Responsible for building the global pre-sales, consulting and delivery team for Newt Global
• He has 16+ years of IT industry experience and delivered multiple enterprise scale projects for Fortune 500 customer base
Venkatnadhan ThirunalaiDevOps, Practice Leader Newt
Global
• AWS solution specialist, DevOps strategist. Area of expertise includes AWS infrastructure management and architectural design, Docker container management solution, DevOps strategy for automation, Ansible scripter for automation, Jenkins work practice for design architecture. Responsible for AWS management, Docker management and DevOps automation works with jenkins and ansible
• Industry experience of 6+ years in IT and worked on 24 projects with smooth deliverables for enterprise clients
Jayakarthi DhanabalanAWS Solution Specialist
Newt Global
Newt Global Overall Offerings
Onboarding Zone Engineering Zone Re-Architecture Zone
DevOps Pipeline CI/CD Enabled QA
Infrastructure Automation
Cloud Enablement
Modernize Architecture
Consulting Tool chain selection,
Implementation and Integration
Test Automation framework,
Intelligent # Tag
Infrastructure as code. Spin up/down
infrastructure on demand and
manage it as code
Assessment of application Refactor application
Data Migration services
Micro services based architecture &
domain based design
Engagements at various levels of maturity
Agile Process
Benefits:
Improve Agility To enable instant change deployment
Accelerate time to marketShorten the development to
deployment lifecycle
Increase ProductivityReduce downtime during deployment & errors caused by manual intervention
Enhance ROIOptimize tooling expenditure, increase
productivity,
Docker in production 1/2
Quick deployment One of the key features of Docker is its ease of deployment.
Containers can be deployed quickly and managed using orchestration tools such as Docker Swarm or Kubernetes.
Resource Management Resource management is a very crucial aspect in Docker systems.
Host machine resources such as CPU, memory, I/O, etc. are shared among the containers.
Over time, traffic spikes can happen and containers may face resource shortage.
Not having enough resources can cause containers to crash, thus disrupting the business.
Backup management Backups are vital for any live server. Disasters may strike any moment unexpectedly and an unavailable website can lead to a loss of business income.
Having backups handy, helps to ensure business continuity and to minimize the downtime. We maintain custom scripts to backup and restore the container data.
Docker in production 2/2
System security By default, Docker containers cannot be accessed from the external network. But when using docker in production, many applications require to be accessed externally.
This is done by exposing Docker container ports by mapping them to the host machine’s port. But when ports are exposed, security issues tag along with it.
Container monitoring Uptime and availability of production servers are crucial for online businesses. But high traffic, abusive users or vulnerable applications can cause containers to crash.
To timely identify crashes and resolve them to ensure uptime, an effective Docker monitoring system such as Zabbix
Image and storage management
The main components of a Docker infrastructure are the data storage for storing the container data and the image repository for saving Docker images.
In Docker, the data stored in the containers would be lost upon restart. To retain the data and to make the system scalable, we configure persistent data storage using data volumes.
Many applications and services require customized Docker images for their business. Keeping these images up-to-date with patches is crucial for Docker security.
Housekeeping Instructions
• All phones are set to mute. If you have any questions, please type them in the Chat window located beside the
presentation panel
• We have already received several questions from the registrants, which will be answered by the speakers during
the Q & A session
• We will continue to collect more questions during the session as we receive and will try to answer them during
today’s session
• In case if you do not receive answers to your question today, you will certainly receive answers via email shortly
• Thanks for your participation and enjoy the session!
05/03/2023 Copyright 7
Docker Familiarize
Production scale clustering and container scheduling for Docker
Docker compose
Docker machine
Docker nodes
Docker CLI
Docker container
Continuous Availability of Services
Docker is all about the high and reliable service to the end user.
Failover setup and sequential execution is at priority for the web applications in HA setup.
Docker is all about resource utilization and saves good quantity of time used for deployment.
Docker deployments are easier and cross platform.
Docker container porting is simplified with the docker hub.
Docker management is handled container management solutions.
Docker Swarm - Features
Docker-native clustering system
Pool of Docker hosts into a single, virtual host.
Multi-host networking.
Load balancing
Rolling updates
Secure by default
Cluster management integrated with Docker Engine
Define the desired state of the various services in the application stack.
Swarm mode CLI - Production
swarm init
swarm join
service create
service inspect
service ls
service rm
service scale
service ps
service update
Swarm – setup
AWS architecture supports terraform for the rolling update and integrates the swarm mode configuration inside a AWS VPC.
• manager1• worker1• worker2
Service Automate – docker
Updating A Service Using Its Image Hash
Stack deployment is being made on automation
Docker service deployment with create and update commands
Lets look into the redis service deployment.
Demo
• We will have a simplified cluster formation in the AWS environment using Jenkins and terraform.
Kubernetes - Pods
Pod is one or more container• Volumes• IP/network• Port Space• CPU / Memory allocation
Ensures co-location / shared fate
Pods are scheduled, then do not move between nodes
Shared resources:
Label/selectors
Labels are arbitrary metadata
Attachable to nearly all API objects
Simple key=value pairs
Can be queried with selectors
Ex: release=stable, release=canary
Kubernetes AWS
Pods are created on EC2 and then the resources are shared.
Pods are working overlay networks.
We can see the service automate as similar to docker swarm cluster management.
Kubernetes – Demo
• Lets see the demo of working of cluster management with kubernetes.