Contenu connexe Similaire à Containers and Kubernetes (20) Containers and Kubernetes2. Agenda
1) Introductions
2) Evolution of IT
3) Why Containers?
4) Persistent Data Management
5) K8S as a Service
6) Wrap up / Q&A
NetApp Insight © 2017 NetApp, Inc. All rights reserved. NetApp Confidential – Limited Use Only2
3. Unstoppable Drive Towards Data Management
2010
Applications
Infrastructure
Data
2000
Infrastructure
Data
Apps
2020
Infrastructure
Data
Applications
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---
5. What is driving DevOps in Organizations? By the numbers
Organizations that have adopted a DevOps model are more agile, responsive and reliable
more frequent
deployments
faster recovery than
their peers
fewer failure ratesshorter lead times
Source: Puppet Labs 2015 State Of DevOps
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---
6. Databases, VM versus Containers
NetApp Insight © 2017 NetApp, Inc. All rights reserved. NetApp Confidential – Limited Use Only6
• Provision a VMGuest
• Install a supported OSOS
• Install required packagesPrepare Host
• Provision volumesStorage
• Download and install DBInstall
• Configure and run DBRun
• Test DB connectionTest
• kubectl create -f my-db.yamlK8S
VM Containers
8. Containers Fulfill the Promise of Cloud: Agility & Cost Savings
© 2018 NetApp, Inc. All rights reserved. — NETAPP CONFIDENTIAL —
INFRASTRUCTURE
HOST OPERATING SYSTEM
HYPERVISOR
GUEST
OS
BINS/LIBS
APP #1
GUEST
OS
BINS/LIBS
APP #2
GUEST
OS
BINS/LIBS
APP #3
INFRASTRUCTURE
HOST OPERATING SYSTEM
Containers
BINS/LIBS
APP #1
BINS/LIBS
APP #1
BINS/LIBS
APP #1
Less Overhead
Virtual Machine Stack ContainersThe multiple advantages of containers
▪ Provides a consistent application platform for
hybrid cloud deployments
▪ Developers deliver a larger number of
application services from the same
hardware, reducing Capex and Opex costs.
▪ Reusable components enable developers to
deliver more timely, robust, and functional
applications and features
▪ Containerized applications require less staff
time for ongoing management of applications
9. Why Kubernetes?
▪ External Storage management
▪ Distributing secrets
▪ Application health checks
▪ Replicating application instances
▪ Horizontal Pod auto-scaling
▪ Load Balancing
▪ Rolling Updates
▪ Monitoring resources
▪ etc.
What can Kubernetes do?
NetApp Insight © 2017 NetApp, Inc. All rights reserved. NetApp Confidential – Limited Use Only10
10. Kubernetes Is The Clear Winner In Container Orchestration
Kubernetes has become the de facto
orchestration platform for running
cloud native workload.
Forbes March 2018
© 2018 NetApp, Inc. All rights reserved. — NETAPP CONFIDENTIAL —
1%
2%
4%
6%
7%
8%
9%
10%
12%
12%
15%
17%
20%
69%
Other
Oracle
Core OS
CAPS
Rancher
Cloud Foundry
Mesos
Shell Scripts
Azure Container Service
OpenShift
Darker Swarm
Google Container Engine
Amazon ECS
Kubernetes
Kubernetes manages
69% of containers at
organizations surveyed
11. However, Containers Need World Class Storage Solutions …
© 2018 NetApp, Inc. All rights reserved. — NETAPP CONFIDENTIAL — Cloud Native Computing Foundation 2017
10%
23%
25%
28%
39%
44%
44%
48%
Other
Reliability
Logging
Orchestration Solution
Complexity
Networking
Security
Storage
▪ Containers are ephemeral—data is not
▪ There are no real stateless applications
▪ Data persistence requirements in the
enterprise have not changed
▪ Consumption of storage by containers
should be easy
TOP CHALLENGES SIGHTED BY FIRMS USING CLOUD CONTAINERS
12. 13 © 2018 NetApp, Inc. All rights reserved – NETAPP CONFIDENTIAL – Limited Use Only
13. ▪ Released as an open source project in Dec 2016
▪ Natively integrates NetApp storage and services with
container platforms
▪ Supports a broad range of cross portfolio platforms and
services as well as all major container orchestrators
Trident - 1st External Storage Orchestrator
14 © 2018 NetApp, Inc. All rights reserved – NETAPP CONFIDENTIAL – Limited Use Only
14. Trident: Creating Data Persistence Storage
Get storage at the speed of containers
DATA FABRIC
TRIDENT
CONTAINER
PLATFORMS
APPLICATION
WORKLOADS
▪ Trident is an open-source storage provisioner and
orchestrator for the NetApp portfolio which takes
advantage of the StorageClass API object in
Kubernetes
▪ Trident enables applications which are provisioned and
managed using Kubernetes to consume storage
resources on demand, without having to worry about
the details.
▪ Admins can now:
▪ Create meta-classes of storage, such as Gold, Silver, and Bronze,
▪ Span multiple storage providers to seamlessly and transparently
provide homogenized storage features and capabilities
▪ All this regardless of the layout of the backing storage systems.
© 2018 NetApp, Inc. All rights reserved. — NETAPP CONFIDENTIAL —
15. Broad Support for Top Container Platforms
16 © 2018 NetApp, Inc. All rights reserved – NETAPP CONFIDENTIAL – Limited Use Only
HCI & Element
Google GKE
MSFT AKS
NKS*Docker EE
E-Series
C O N T A I N E R O R C H E S T R A T O R S S T O R A G E P L A T F O R M S
* Support pending platform readiness
ONTAP
Cloud Volumes*
16. Managing persistent data store using nDVP and Trident for ONTAP
Example of Containers in DevOps process
projects
users builds PB1 PB2 DB1 DB2
Flexclones
DB – Database
Mount all the containers using NetApp Docker Volume Plugin (nDVP) or Trident
• nDVP manages persistent storage for Docker containers
• Reduced Manageability and complexity - Stateless
• Supports heterogeneous container environment with Docker and Kubernetes for standard data management platform
• Dynamic storage provisioning for K8s containers with Trident based on Service Level Offering (SLO)
PB – Pre-Build
18. The stackpoint.io Kubernetes-as-a-service platform combined with
NetApp’s Cloud Data Services creates a complete DevOps solution,
so customers can focus on innovation, not administration
Creating the Industry’s First Complete Multi-Cloud Kubernetes Platform
NetApp acquires StackPointCloud
19 © 2018 NetApp, Inc. All rights reserved – NETAPP CONFIDENTIAL – Limited Use Only
19. NetApp Kubernetes Service
▪ What is StackPointCloud?
▪ StackPointCloud is a multi-cloud Kubernetes Control Plane that delivers true Kubernetes
across all of the major public clouds and bare metal.
▪ What does this mean?
▪ Developers and IT teams can spend time writing more code and less time on provisioning,
managing and upgrading Kubernetes clusters across clouds.
▪ With just a few clicks, you can go in and deploy a Kubernetes Cluster in AWS. You can
then do the same in Azure, GCP, or DigitalOcean without taking the lengthy steps to get
the cluster up and running, and instead focus on innovation instead of operations.
Overview
21. 22 © 2018 NetApp, Inc. All rights reserved. — NETAPP CONFIDENTIAL —
Solution Options
22. Developers and IT teams need new
tools to meet the scale, complexity and
data gravity challenges that impede
rapid innovation
23. NetApp is a Cloud First Company
Consume Cloud Data Services the Way you Want and Where you Want
Storage
Admins
Application
Developers
Cloud Data
Services
© 2018 NetApp, Inc. All rights reserved. — NETAPP CONFIDENTIAL —
Private Cloud
Cloud
Architects
24. NetApp delivers a Full Stack of Cloud Data Services
25
Storage
Data Services
Orchestrations, Integrations, Controls
Management & Monitoring
© 2018 NetApp, Inc. All rights reserved. — NETAPP CONFIDENTIAL —
25. NetApp Kubernetes Service (NKS) drives Multi Cloud Orchestration
NKS is complementary and additive to our stack
26
Cloud Storage
Data Services
Orchestrations, Integrations, Controls
Management & Monitoring
NFS V3 NFS V4 SMB HDFS* Object* SaaS
Sync Protect Snapshot Clone Tier Secure
OCM NKS COS
Monitoring Analytics Chargeback
* proxy services
© 2018 NetApp, Inc. All rights reserved. — NETAPP CONFIDENTIAL —
New
26. NetApp Kubernetes Service: Upping your productivity
Directly supports the application orchestration capabilities of NetApp’s Data Fabric
▪ Create and manage production-ready Kubernetes clusters
▪ Quickly build a cluster on the cloud of your choice
▪ Easily manage your Kubernetes cluster from a single pane of glass
▪ Readily provide and control access to individuals
▪ Deploying solutions from our collection of cloud native solutions
▪ Set up and managing clusters across clouds
▪ Scale from an individual developer to enterprise grade Kubernetes
management
▪ Federate multiple Kubernetes to manage as one
27. Business Benefits of the NetApp Kubernetes Service (NKS)
▪ Teams can develop software ~ 60% faster
▪ Teams spend ~ 35% more time writing code
▪ Teams save ~ 90% of our time to deploy and maintain Kubernetes clusters
▪ Teams see ~90% reduction in the time-consuming tasks like patching
▪ Teams can deploy to all clouds at the same time from a single console
▪ Teams can deploy, maintain and upgrade clusters, standard packages to the
cluster
▪ Teams can integrate directly with our own github helm charts
▪ Teams can support canary and blue-green deployments
NetApp and its customers see ROI delivered for a single developer to thousands
28 © 2018 NetApp, Inc. All rights reserved. — NETAPP CONFIDENTIAL —
28. 12,500+ Kubernetes clusters deployed
Customer Evidence
Stackpoint customers see significant
benefits from the service, they can spend
time writing more code. They can develop
faster because they spend much less time
provisioning, managing and upgrading
Kubernetes clusters across the clouds
5778 CLUSTERS BUILT
1283 CLUSTERS BUILT
591 CLUSTERS BUILT
OTHER
PLATFORMS 4828 CLUSTERS BUILT
29. NEW: NetApp Kubernetes Service at Cloud Central
Cloud Volumes
Services
Cloud Volumes
ONTAP
Cloud Insights
Cloud Sync SaaS Backup Kubernetes
Service
▪ The Universal Control Plane for Managed
Kubernetes now available for everyone
▪ The simplest way to deploy a Kubernetes
cluster to the clouds.
▪ Deploy a production-ready Kubernetes
cluster in 3 clicks when you want and where
you want
▪ Works on all major clouds
Cluster Deployment on Multiple Clouds in 3 Clicks
30. Soon: NetApp Kubernetes Service on HCI
Cloud Volumes
Services
Cloud Volumes
ONTAP
Cloud Insights
Cloud Sync SaaS Backup Kubernetes
Service
▪ The Universal Control Plane for Managed
Kubernetes now available for everyone
▪ The simplest way to deploy a Kubernetes
cluster to the clouds.
▪ Deploy a production-ready Kubernetes
cluster in 3 clicks when you want and where
you want
▪ Works on all major clouds
Cluster Deployment on Multiple Clouds in 3 Clicks
31. NetApp Insight
32 © 2018 NetApp, Inc. All rights reserved – NETAPP CONFIDENTIAL – Limited Use Only
NetApp for Containers KBYG Primer
NetApp for Containers M1 Intro to Containers
NetApp for Containers M2 Technical deck
1138-2 - Containerized Oracle with Kubernetes
1151-2 - Best Practices for Integrating Trident with Container Orchestrators
1152-1 - Deploying Red Hat OpenShift with NetApp Trident
1153-2 - Cloud Volumes and Containers: A Perfect Match
1269-2 - Accelerate Application Delivery with Red Hat OpenShift Container Platform on NetApp HCI
4106-1 - Automation & Containerized Apps success with NetApp Trident and RedHat OpenShift & Ansible
4111-1 - Kick Your Application Development into Overdrive
5117-2 - Hands-On Lab:Using NetApp with Docker and Kubernetes
9116-2 - Red Hat: Simplifying the DevOps deployment environment with Red Hat OpenShift on NetApp HCI
Trident Sessions at Insight Las Vegas
netapp.io
@NetAppPub
netapp.io/slack
github.com/netapp/trident
32. Conclusion
▪ https://netapp.io/
▪ Join thePub on Slack.
▪ OpenStack
▪ Containers
▪ Configuration Management
▪ CI/CD
▪ SDKs
▪ https://cloud.netapp.com
▪ Cloud Volumes
▪ Cloud Insights
▪ Cloud Backup
▪ NetApp Kubernetes Service
▪ SaaS Backup
33
GitHub
github.com/NetApp/trident
thePub
netapp.io
Twitter
@NetAppPub
Slack
netapp.io/slack
34. DevOps Partner Integrations & Solutions
Development Tools PaaS
(Platform as a Service)
IaaS
(Infrastructure as a Service)
Automation
O = ONTAP SF = SolidFire SG = StorageGRID Webscale E = E-Series
O
O
O, SG
O
O
O, SF
O, SF, E
O, SF, E
O, SF, E SF
O
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---
35. A Brief Overview
What are Containers?
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---36
36. Containers Are Not Virtual Machines
• Virtual Machines
• VMs are heavy, being composed of virtual
hardware, a full OS, and the application,
including dependencies
• Containers
• A container is just the application and its
dependencies
• It runs as an isolated process in user space on
the host OS
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---37
Images: Docker, https://www.docker.com
37. Docker Made Containers Accessible
• Docker abstracts the creation and
management of containers
• Containers for mortals!
• Define application components:
containers, storage, and networking
• The Docker portfolio enables management
for containerized microservice applications
• Docker Engine
• Docker Registry
• Docker Swarm
• Docker Data Center
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---38
# start a container
$ docker run mysql:latest
# map a port
$ docker run –p 3306:3306 mysql:latest
# map a host directory
$ docker run
–v /mysql/data:/var/lib/mysql
mysql:latest
38. • Volumes decouple the data from the
container
• Exist beyond the lifespan of the container
• Local volumes are managed by the
container engine (e.g. Docker)
• External volumes
• Can be a host file/directory
• Or, storage mounted from another device
• Docker Volume Plugin paradigm enables
users to consume non-local storage
devices
Persisting Containerized Applications
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---39
39. Container Orchestrators
• Containerized application deployment
• Service discovery
• Health checking / high availability
• Scale up/down
• Load balancing
• Authentication / authorization
• Secrets management
• Logging
• Monitoring
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---40
Kubernetes
Marathon
Swarm
41. Modernize
Apps
New Apps
Pipelines
Platform
Meet
Business
Requirements
Drivers for Container Adoption
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---42
Lifecycle
Orchestrate
common app operations
Portability
Migrate between clouds
without change
Security
Isolate and introspect with
integrity guarantees
Accelerate
Seamlessly move
along the SDLC
Integrate
APIs and open interfaces
tie everything together
Automate
Rapid repetition improves
quality and time to value
Freedom
Build apps the way you
want without constraints
Innovate
Fully flexible and
scalable micro services
Standardize
Well-defined sharable
app definitions
Cost Savings
Increase density and
reduce VM licensing
Efficiency
Enable self-service
and reduce maintenance
Optimize
Maximize resource
utilization and availability
42. • Monolithic applications
• Hard to update - single massive code base
• Single dimension of scalability
• Waterfall development practices
• Static, linear phases
• Requirements
• Analysis
• Design
• Code
• Test
• Deploy
Applications Are Hard
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---43
Image: https://martinfowler.com/articles/microservices.html
43. • Service-Oriented Architecture
• New term = microservices
• Each component is independently developed and
scaled
• Everything is a platform
• DevOps
• Continuous Integration – Finding and fixing bugs
faster
• Continuous Deployment – Releasing faster
Simplify the Problem
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---44
Image: https://martinfowler.com/articles/microservices.html
44. Virtualization as a First Step
Standardized, automated, efficient
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---45
• Virtual machines are easier than physical
• Lighter weight, deploy quickly
• Decouple the OS from hardware
• Declarative configuration management
• Ansible, Puppet, Chef, Salt, PowerShell DSC
• Remove manual process from deployment and
configuration operations
• AWS and OpenStack made self-service
mainstream
45. Containers Make Everything Better
• Lightweight, fast, portable
• A lot like Object Oriented Programming
• Inheritance, Encapsulation, Abstraction
• Now consumable by mortals!
• DevOps + Microservices + Containers =
Maintainability and Scalability
• Containers decouple the app from the OS
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---46
48. Docker
• Docker Engine
• Docker Swarm Mode
• Docker Enterprise Edition
The one everyone knows
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---49
49. Kubernetes
• Kubernetes
• Open source project managed by the CNCF
• Products built on Kubernetes – open source core, proprietary value-add
• Docker
• Red Hat OpenShift
• IBM Cloud Private
• CoreOS Tectonic (now owned by Red Hat, going away)
• Rancher
• Pivotal Container Service
• Amazon EKS, Azure AKS, Google GKE
The other one everyone knows
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---50
50. Engines vs Orchestrators
• Engines instantiate individual containers
• Start the process and create the namespace around it
• Attach network, storage, and other resources
• Manage cgroups
• Examples:
• Docker, rkt, lxc, lxd
• Orchestrators orchestrate container deployments across many hosts
• Multiple related containers which usually need to communicate with each other
• Decides how to allocate physical/virtual resources to container instances
• Rely on container engines to instantiate the container instance
• Examples:
• Kubernetes, Swarm, Marathon
© 2018 NetApp, Inc. All rights reserved. --- NETAPP CONFIDENTIAL ---51