OpenStack and Kubernetes - SUSE

3 downloads 258 Views 687KB Size Report
Linux Cloud/HA Developer [email protected] ... Load balancer http://guestbook.com worker-B gbook-01. 8081 blog-01. 8080 wor
OpenStack and Kubernetes Containers as a Service for everyone

Flavio Castelli Engineering Manager (Containers) [email protected]

Michal Jura Linux Cloud/HA Developer [email protected]

New challenges ●

New age of internet and mobile applications.



Application super portability.



Higher complexity of cloud environments.



Different cloud providers.



Adoption of micro services architectures.



Stay agile in spirit of DevOps.

2

Manage applications, not machines

3

Kubernetes advantages ●

Workload portability: doesn't enforce its directives to the application.



Friendly with legacy applications: smooth migration path.



Avoid vendor lock-in.



Self healing.



Auto-scaling.





Has a solution for many problems: ● Persistent storage. ● Secrets management. ● Blue-Green deployments. Flexible: plug-in architecture 4

Architecture

etcd etcd

Master Master Scheduler

Worker Worker pod pod container

API server

container docker

Controller mgr

kubelet

kubeproxy 5

Architecture http://guestbook.com

8080

Load balancer

8081 gbook-01 worker-A

8080 blog-01

8081 gbook-01 worker-B

8080

8081

blog-01 worker-C

6

Kubernetes deployment ●

Requires an etcd cluster.



Requires one or more master nodes.



Requires one or more worker nodes.



Requires a SDN network joining all the worker nodes.



Requires a load balancer to expose internal applications.



Lots of patience to link all these components together.

7

Kubernetes’ status ●

It’s a pleasure to use as developer deploying your application.



It’s a pleasure to administer as an operator.



It’s a pain to deploy.

8

Things are changing ●

kubeadm: upstream tool for kubernetes deployment.

• Kubernetes deployed with containers, by kubernetes itself. • Introduced with the 1.4 release, still alpha.

9

How to combine OpenStack and Kubernetes worlds?

10

Solution for everyone OpenStack and Kubernetes

11

Introduction to OpenStack Magnum ●

A new service on OpenStack starting from Liberty release



Provides Containers Infrastructure Service



Supports different Linux images



Integrates: ● ● ● ●

Kubernetes Docker Flannel (overlay network) Heat, Keystone, Glance, Cinder, Neutron, Barbican etc.

12

OpenStack Magnum API Magnum provides project isolation for container orchestration engines ●





Management tool for containers within OpenStack ✔ Orchestrate cloud resources and instances with Heat ✔ Clone environments with similar network with Neutron ✔ Implement separate clusters in many projects through Keystone Use different Container Orchestration Engines (COE) ✗ Kubernetes ✗ Swarm ✗ Mesos Access to native API's with dedicated clients. 13

OpenStack Magnum architecture

14

Magnum Kubernetes Cluster

15

Magnum awesomeness ●

Each OpenStack user can have its own Kubernetes cluster.



Kubernetes deployment will take a few minutes.



Whole configuration will be done automatically.



We can auto-scale Kubernetes cluster on request.



Start containerized apps on ready environment.



Expose service to the Internet using LoadBalancer.

16

Why pick up Magnum with Kubernetes ●

Based on Google experience running containers in production



Have this same deployment process for each application



Take care about cloud application, fits especially for web and mobile apps



Big cluster data readiness, fits perfectly with hundreds or thousands of hosts



Choose between virtual machines and bare-metal servers

17

Magnum future ●

Full support for bare metal deployments



Support different CPU architectures ARM, s390



Auto-scaling



Auto-restarts



Support other containers engines



Rolling updates for Kubernetes engine



Node groups feature

18

Magnum potentials ●

Become a Magnum Opus



Provide cloud ready apps and services



Manage projects aware Container Topologies



Use OpenStack as a first class citizen for container technology



Help developers with their work

19

It is time for real demo example!!!

20

Questions ? Flavio Castelli Engineering Manager (Containers) [email protected]

Michal Jura Linux Cloud/HA Developer [email protected]