Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to...

18
CNI Container Network Interface Konstantinos Karampogias Software Engineer, Swisscom

Transcript of Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to...

Page 1: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

CNIContainer Network Interface

Konstantinos KarampogiasSoftware Engineer, Swisscom

Page 2: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

Swisscom PAAS & Cloudfoundry

Page 3: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

Agenda

Container Standards

Container Runtime

CNI Introduction

Demo

Conclusions

Page 4: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

Container Standards @CN Landscape

Page 5: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

Container Standards @Cloudfoundry

Page 6: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

Container Standards @Kubernetes

Page 7: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

Generic Architecture

Page 8: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

Container Runtime Engine

Page 9: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

What is CNI

A minimal standard way to connect a container to a network

CNI Speci�cation: de�nes an API between runtimes and network plugins

Library: provide a Go implementation of the CNI speci�cation

Plugins: provide reference implementation for a variety of use-cases

https://github.com/containernetworking/cni https://github.com/containernetworking/plugins

Page 10: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

What is CNI

5 maintainers

60 contributors at 10+ companies

10+ plugin vendors

6+ runtimes (k8s, CF, Mesos, OpenShift, rkt, Amazon ECS)

Started from rkt

Spec separated from rkt April 2015

CNCF project since May 2017

Page 11: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

Single interface

Page 12: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

CNI spec

3 commands: ADD, DEL and VERSION

Con�guration on stdin, results on stdout

Runtime parameters via env (CNI_ARGS for arbitrary runtime params)

Page 13: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

Chained Plugins

Page 14: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

DEMO: Bridge + Port forwarding

Page 15: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

CNI is

about: - actions during creation/deletion - container to internet tra�c - internet to container tra�c - hiding network complexity - vendors to add their stu�

not about: - realtime changes (e.g. policy enforcement) - setting up the network medium (e.g. bridge creation) - multihost host container tra�c (e.g. distribute routes)

Page 16: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

Open Positions

Page 17: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about:

Thank you

Konstantinos KarampogiasSoftware Engineer, Swisscom

@karampok (http://twitter.com/karampok)

Page 18: Container Network Interface - VSHN AG · 2018-01-12 · - container to internet trac - internet to container trac - hiding network complexity - vendors to add their stu not about: