Share
Embed
Introduction to Containers and Container Networking (Melbourne Cisco Data Centre Users Group)
Chris Gascoigne
October 03, 2017
Transcript
42 slides
-
Chris Gascoigne Technical Solutions Architect October 2017 Introduction to Containers
and Container Networking -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential What are containers? -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Running applications – bare metal Server OS App Server OS App Server OS App Server OS App -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Server OS App Hypervisor OS App OS App Server OS App Hypervisor OS App OS App Server OS App Hypervisor OS App OS App Server OS App Hypervisor OS App OS App Running applications – virtualisation -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Running applications – containers -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential • Yes and No … • Yes • Run multiple applications per host • Isolate adjacent applications to prevent conflict • Fair resource usage • No • Shared kernel – security implications • Shared kernel – (generally) containers must be same operating system • Containers use less resources (i.e. much quicker start up, less RAM/CPU required without hypervisor) So containers are like VMs? -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential So containers eliminate VMs? • Yes and No … • … deploying container hosts as VMs is very common Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Hypervisor Hypervisor Hypervisor Hypervisor -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Why are customers adopting containers? -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential I’ll give you a hint, it is not … … because of lower resource requirements -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential I’ll give you a hint, it is not … … because containers start up quicker -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential I’ll give you a hint, it is not … … to save money on vSphere licenses -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential I’ll give you a hint, it is not … … because they’re required for microservices -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential so? … -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Traditional application deployment environment C ++ .Net Java Developers Write Code Development Environment C ++ .Net Java Ops / IT Setup runtime environment IIS / Tomcat / JRE / … Linux / Windows / Unix Production Environment -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Modern application deployment environment Developers Ops / IT Write Code Setup container environment Container platform App Runtime OS packages App Runtime OS packages App Runtime OS packages Containers -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Docker architecture Image source:https://docs.docker.com/introduction/understanding-docker/ -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Demo -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential • CLI tool for defining and running multi container applications • Uses a YAML file • Leverages container linking • Can use dockerfiles Docker Compose https://www.docker.com/docker-compose -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Demo -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Who are the players? -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Container Ecosystem -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Container Ecosystem -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Container Ecosystem - Scheduling Docker Swarm -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Container Ecosystem - Scheduling Kubernetes -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Linux/Win App App App App Container Ecosystem - PaaS Kubernetes OpenShift <code> -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Container Networking -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential • Proposed by Docker • Used by Docker Engine, Swarm, Compose, etc. • Driver APIs for • IPAM • Networks Container Networking Model (CNM) -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential libnetwork 31 BRKCLD-2022 Remote Drivers Contiv, Calico, Weave…. Native Drivers none, bridge, overlay, macvlan Docker Engine Libnetwork (CNM) IPAM • Service Discovery • Distributed Key Value Store • IP Address Mgmt • Gossip Protocol • Encryption “batteries included, but removable” -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Built-in network drivers Driver Model Bridge Host-only bridge NAT to expose services Host Host network namespaces All containers use same interfaces Overlay VXLAN encapsulation Docker control plane MACVLAN IP per container No NAT, No encapsulation -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Docker Bridge Driver -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Docker MACVLAN Driver -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Docker Overlay Driver -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential • Proposed by CoreOS • Used by Kubernetes • No separate IPAM driver Container Networking Interface (CNI) -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Networking challenges for containers -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Demo -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential 100% Open Source The Most Powerful Container Networking Fabric L2, L3, Overlay or ACI Rich Policies DevOps IT Admin Any Networking Any Platform Any Infrastructure Application Intent Rich Policy Declarative Simple Install GUI + CLI LDAP/RBAC Cisco Contiv -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential Docker Certified Plugin 41 https://store.docker.com/plugins/contiv -
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco
Confidential • Use the network model that suits the infrastructure • Contiv provides flexibility on the network side with consistency on the application side • References: • https://github.com/contiv/netplugin • https://github.com/contiv/install Summary