Managing Kubernetes and OpenShift with ManageIQ Alissa Bonas @ - - PowerPoint PPT Presentation

managing kubernetes and openshift with manageiq
SMART_READER_LITE
LIVE PREVIEW

Managing Kubernetes and OpenShift with ManageIQ Alissa Bonas @ - - PowerPoint PPT Presentation

Managing Kubernetes and OpenShift with ManageIQ Alissa Bonas @ Container Con Seattle 2015 The stages of containers world Containerizing an app Alissa Bonas @ Container Con Seattle 2015 The stages of containers world Run a container


slide-1
SLIDE 1

Managing Kubernetes and OpenShift with ManageIQ

Alissa Bonas @ Container Con Seattle 2015

slide-2
SLIDE 2
  • Containerizing an app

The stages of containers world

Alissa Bonas @ Container Con Seattle 2015

slide-3
SLIDE 3

The stages of containers world

  • Run a container

Alissa Bonas @ Container Con Seattle 2015

slide-4
SLIDE 4

The stages of containers world

  • Run multiple containers

Alissa Bonas @ Container Con Seattle 2015

slide-5
SLIDE 5
  • Orchestrate containers
  • Run many containers on multiple hosts
  • Manage a containers environment

The stages of containers world

Alissa Bonas @ Container Con Seattle 2015

slide-6
SLIDE 6

Today we’ll focus on

Kubernetes OpenShift ManageIQ

Alissa Bonas @ Container Con Seattle 2015

slide-7
SLIDE 7

Kubernetes

  • Deployment, scaling and orchestration of

containers across clusters of hosts.

  • http://kubernetes.io/
  • 1.0 release - July 2015

Developed in Go

Alissa Bonas @ Container Con Seattle 2015

slide-8
SLIDE 8

Kubernetes main concepts

  • Node - a machine that containers run on
  • Namespace - partitioning resources created

by users into logical groups

  • Pod - a group of containers

Alissa Bonas @ Container Con Seattle 2015

slide-9
SLIDE 9

Kubernetes main concepts

  • Replication controller -

ensures there are always X replicas of pods

  • Service - a base load balancer that provides

traffic to pods

Alissa Bonas @ Container Con Seattle 2015

slide-10
SLIDE 10

OpenShift

  • Platform as a service for building and

running applications - for developers

  • http://www.openshift.org/
  • 3.0 release - June 2015

Developed in Go

Alissa Bonas @ Container Con Seattle 2015

slide-11
SLIDE 11

OpenShift main concepts

  • Built on top of Kubernetes
  • Provides additional capabilities

○ application lifecycle ○ routing - extends service ○ projects - extension of namespaces Build Deploy Run

Alissa Bonas @ Container Con Seattle 2015

slide-12
SLIDE 12
  • How many containers exist in my environment?
  • Does a specific node have enough resources?
  • How many distinct images are used?
  • Which registries are used?

Insight and control

Alissa Bonas @ Container Con Seattle 2015

slide-13
SLIDE 13

ManageIQ

  • A cloud management platform
  • http://manageiq.org/
  • Botvinnik release - June 2015

a Ruby on Rails project

Alissa Bonas @ Container Con Seattle 2015

slide-14
SLIDE 14

ManageIQ concepts

  • “A manager of managers”

○ supports multiple virtualization providers

  • Insight and control

○ inventory overview and events ○ smart state analysis ○ workflow/orchestration

Alissa Bonas @ Container Con Seattle 2015

slide-15
SLIDE 15

New in upstream ManageIQ

  • Providers for container management
  • Support added for

○ Kubernetes ○ OpenShift

Alissa Bonas @ Container Con Seattle 2015

slide-16
SLIDE 16

Working together

ManageIQ Kubernetes / Openshift Master

Node A Node B

Alissa Bonas @ Container Con Seattle 2015

slide-17
SLIDE 17

Container management providers

Alissa Bonas @ Container Con Seattle 2015

slide-18
SLIDE 18

Creating a provider

  • Kubernetes/OpenShift master host/port
  • SSL
  • Token based

Alissa Bonas @ Container Con Seattle 2015

slide-19
SLIDE 19

Inventory

  • Entities
  • Relationships
  • Additional information

Alissa Bonas @ Container Con Seattle 2015

slide-20
SLIDE 20

Creating more insights

  • Modelling additional entities

as first class citizens

  • Deducing relationships

Alissa Bonas @ Container Con Seattle 2015

slide-21
SLIDE 21

Kubernetes provider summary page

Alissa Bonas @ Container Con Seattle 2015

slide-22
SLIDE 22

Kubernetes provider relationships

Alissa Bonas @ Container Con Seattle 2015

slide-23
SLIDE 23

OpenShift provider summary page

Alissa Bonas @ Container Con Seattle 2015

slide-24
SLIDE 24

OpenShift provider relationships

Alissa Bonas @ Container Con Seattle 2015

slide-25
SLIDE 25

Projects

Alissa Bonas @ Container Con Seattle 2015

slide-26
SLIDE 26

Nodes

  • OS and Software versions
  • How many entities are on a node
  • Capacity and utilization
  • Which infrastructure is it running on

Alissa Bonas @ Container Con Seattle 2015

slide-27
SLIDE 27

Node Summary page

Alissa Bonas @ Container Con Seattle 2015

slide-28
SLIDE 28

What do we know about nodes?

Capacity Docker and Kubernetes info

Alissa Bonas @ Container Con Seattle 2015

slide-29
SLIDE 29

Nodes

  • Quick overview on main nodes properties

Alissa Bonas @ Container Con Seattle 2015

slide-30
SLIDE 30

Cross providers insight

  • Connect all layers of infrastructure, cloud

and containers

  • Currently support cross linking with

○ OpenStack ○ oVirt / RHEV

Alissa Bonas @ Container Con Seattle 2015

slide-31
SLIDE 31

Cross linking demystified

Virtual Machines Hosts Nodes Pods Containers Storage Network

Alissa Bonas @ Container Con Seattle 2015

slide-32
SLIDE 32

Cross linking demystified

Virtual Machines Hosts Nodes Pods Containers Images Storage Network Services Routes

Alissa Bonas @ Container Con Seattle 2015

slide-33
SLIDE 33

Cross provider example - Node

Alissa Bonas @ Container Con Seattle 2015

slide-34
SLIDE 34

Cross provider VM example

Alissa Bonas @ Container Con Seattle 2015

slide-35
SLIDE 35

Nodes capacity and utilization

slide-36
SLIDE 36
slide-37
SLIDE 37
slide-38
SLIDE 38

Resource quotas and limit ranges

  • Limit the number of pods, containers, etc.

○ tracked per a project/namespace scope

  • Limit CPU and memory

○ tracked per pod, container

Alissa Bonas @ Container Con Seattle 2015

slide-39
SLIDE 39

Container

  • Traceability - container id, image
  • Restart count - potential issues?

Alissa Bonas @ Container Con Seattle 2015

slide-40
SLIDE 40

Registries

Alissa Bonas @ Container Con Seattle 2015

slide-41
SLIDE 41

Image from a known registry

Alissa Bonas @ Container Con Seattle 2015

slide-42
SLIDE 42

Image from an unknown source

Alissa Bonas @ Container Con Seattle 2015

slide-43
SLIDE 43

Pods

  • Which containers are part of it
  • Which services work with it
  • Which node does it run on
  • Is it controlled by a replicator?

Alissa Bonas @ Container Con Seattle 2015

slide-44
SLIDE 44

Pods

Alissa Bonas @ Container Con Seattle 2015

slide-45
SLIDE 45

Pod

Alissa Bonas @ Container Con Seattle 2015

slide-46
SLIDE 46

Replicators

Searches for pods with this label

Alissa Bonas @ Container Con Seattle 2015

slide-47
SLIDE 47

Services

  • A portal IP and source/target port pairs
  • Redirects traffic to relevant pods based on a

labels selector

Alissa Bonas @ Container Con Seattle 2015

slide-48
SLIDE 48

Service example

Alissa Bonas @ Container Con Seattle 2015

slide-49
SLIDE 49

OpenShift Routes

  • Exposes a service by giving it an externally

reachable hostname

  • Can be fine tuned by /path
  • Can be also secured

Alissa Bonas @ Container Con Seattle 2015

slide-50
SLIDE 50

Events / Timeline

  • Node

○ ready / not ready / rebooted

  • Pod

○ scheduled

  • More to come...

Alissa Bonas @ Container Con Seattle 2015

slide-51
SLIDE 51

Tagging

  • Leveraging ManageIQ tags

Alissa Bonas @ Container Con Seattle 2015

slide-52
SLIDE 52

A glimpse into the future

slide-53
SLIDE 53

Dashboard - providers overview

slide-54
SLIDE 54

Dashboard - a single provider view

slide-55
SLIDE 55

Dashboard of a project

slide-56
SLIDE 56
  • “A picture is worth a thousand words”
  • Includes cross provider relationships
  • Statuses

Topology

Alissa Bonas @ Container Con Seattle 2015

slide-57
SLIDE 57

Topology demo

slide-58
SLIDE 58

Topology demo

slide-59
SLIDE 59

Open source

  • Rapidly changing projects before their

release

  • Hard to track
  • A chance to influence early

Alissa Bonas @ Container Con Seattle 2015

slide-60
SLIDE 60

ManageIQ community

  • http://talk.manageiq.org
  • https://github.com/ManageIQ/manageiq

○ Follow label #providers/containers

  • #manageiq IRC on freenode

Alissa Bonas @ Container Con Seattle 2015

slide-61
SLIDE 61

Icons Credits

  • The Go gopher - Renee French
  • Diamond by MarkieAnn Packer from the Noun Project
  • Rails by Luis Martins from the Noun Project
  • Light Bulb by artworkbean from the Noun Project
  • Sherlock by James Keuning
slide-62
SLIDE 62

Thank you! @mikeyteva