agenda PAE Docker Docker PAE

Similar documents
Kubernetes introduction. Container orchestration

Scaling Jenkins with Docker and Kubernetes Carlos

TensorFlow on vivo

Package your Java Application using Docker and Kubernetes. Arun

Red Hat Enterprise Linux Atomic Host 7 Getting Started with Kubernetes

@briandorsey #kubernetes #GOTOber

Kubernetes: Twelve KeyFeatures

An Introduction to Kubernetes

A REFERENCE ARCHITECTURE FOR DEPLOYING WSO2 MIDDLEWARE ON KUBERNETES

UP! TO DOCKER PAAS. Ming

OpenShift 3 Technical Architecture. Clayton Coleman, Dan McPherson Lead Engineers

An introduction to Docker

CS-580K/480K Advanced Topics in Cloud Computing. Container III

Code: Slides:

Kubernetes The Path to Cloud Native

CONTAINERS AND MICROSERVICES WITH CONTRAIL

Who is Docker and how he can help us? Heino Talvik

Kubernetes - Networking. Konstantinos Tsakalozos

Container-based virtualization: Docker

Deployment Patterns using Docker and Chef

Installation and setup guide of 1.1 demonstrator

Microservices. Chaos Kontrolle mit Kubernetes. Robert Kubis - Developer Advocate,

Kubernetes: What s New

Triangle Kubernetes Meet Up #3 (June 9, 2016) From Beginner to Expert

Kuber-what?! Learn about Kubernetes

Cisco Virtual Update Container networking. Hans Donnerborg, Lars Granberg, Maj 2018

Creating a Multi-Container Pod

/ Cloud Computing. Recitation 5 February 14th, 2017

Blockchain on Kubernetes

Running MarkLogic in Containers (Both Docker and Kubernetes)

Introduction to Kubernetes Storage Primitives for Stateful Workloads

How to build scalable, reliable and stable Kubernetes cluster atop OpenStack.

Think Small to Scale Big

Arup Nanda VP, Data Services Priceline.com

Blockchain on Kubernetes

Container Orchestration on Amazon Web Services. Arun

Evolution of Kubernetes in One Year From Technical View

Important DevOps Technologies (3+2+3days) for Deployment

Docker All The Things

Introduction to Containers

Harbor Registry. VMware VMware Inc. All rights reserved.

/ Cloud Computing. Recitation 5 September 26 th, 2017

ASP.NET Core & Docker

Buenos Aires 31 de Octubre de 2018

Table of Contents HOL CNA

Kubernetes 101. Doug Davis, STSM September, 2017

Kubernetes Basics. Christoph Stoettner Meetup Docker Mannheim #kubernetes101

Container Orchestration with Kubernetes on SUSE Linux

Blockchain on Kubernetes User Guide

So, I have all these containers! Now what?

Orchestrating Docker containers at scale

OpenStack Magnum Hands-on. By Saulius Alisauskas and Bryan Havenstein

Maximizing Network Throughput for Container Based Storage David Borman Quantum

Life of a Packet. KubeCon Europe Michael Rubin TL/TLM in GKE/Kubernetes github.com/matchstick. logo. Google Cloud Platform

Fixing the "It works on my machine!" Problem with Docker

Containerisation with Docker & Kubernetes

Investigating Containers for Future Services and User Application Support


Understanding and Evaluating Kubernetes. Haseeb Tariq Anubhavnidhi Archie Abhashkumar

Continuous Delivery of Micro Applications with Jenkins, Docker & Kubernetes at Apollo

Kubernetes: Container Orchestration and Micro-Services logo

Kubernetes deep dive

Kubernetes, Persistent Volumes and the Pure Service Orchestrator. Simon Dodsley, Director of New Stack Technologies

What s New in K8s 1.3

Blockchain on vsphere By VMware

Containers, Serverless and Functions in a nutshell. Eugene Fedorenko

Weiting Chen Zhen Fan

Run containerized applications from pre-existing images stored in a centralized registry

VNS3 3.5 Container System Add-Ons

Red Hat Containers Cheat Sheet

Kubernetes Love at first sight?

Well, That Escalated Quickly! How abusing the Docker API Led to Remote Code Execution, Same Origin Bypass and Persistence in the Hypervisor via

RED HAT ENTERPRISE LINUX ATOMIC HOST, CONTAINERS AND KUBERNETES

What s New in K8s 1.3

Dan Williams Networking Services, Red Hat

Docker A FRAMEWORK FOR DATA INTENSIVE COMPUTING

Container System Overview

Bright Cluster Manager: Using the NVIDIA NGC Deep Learning Containers

Kubernetes 1.9 Features and Future

Stackube Documentation

Infrastructure at your Service. Oracle over Docker. Oracle over Docker

WHITE PAPER. Kubernetes Deployment Models: The Ultimate Guide

The Long Road from Capistrano to Kubernetes

Continuous delivery while migrating to Kubernetes

Getting Started With Containers

Dockerfile & docker CLI Cheat Sheet

Introduction to containers

Building a Kubernetes on Bare-Metal Cluster to Serve Wikipedia. Alexandros Kosiaris Giuseppe Lavagetto

Xen and CloudStack. Ewan Mellor. Director, Engineering, Open-source Cloud Platforms Citrix Systems

Docker und IBM Digital Experience in Docker Container

Infoblox Kubernetes1.0.0 IPAM Plugin

GitLab-CI and Docker Registry

Docker Cheat Sheet. Introduction

Red Hat Quay 2.9 Deploy Red Hat Quay - Basic

KubeNow Documentation

$ wget V SOLUTIONS.tar.bz2 \ --user=lftraining --password=penguin2014

A Hands on Introduction to Docker

Managing Compute and Storage at Scale with Kubernetes. Dan Paik / Google

Hacking and Hardening Kubernetes

Backup strategies for Stateful Containers in OpenShift Using Gluster based Container-Native Storage

Transcription:

Docker 2016.03.26

agenda PAE Docker Docker PAE 2

3

PAE PlCloud APP Engine Docker Docker Caas APP 4

APP APP volume images 5

App 6

APP Show Time 7

8

Docker Public DockerHup Private registry push pull AUFS Layered readonly GO Build once run anywhere Read-write Linux os mysql apche run commit LXC Docker OS Namespace cgroups 9

Docker vs VM Hypervisor 10

Docker vs VM Hypervisor <1s KB Linux GB Hypervisior 11

Docker 12

Docker Terminology Registry search: Search for an image on the Docker Hub pull: Download image from repository push: push an image or a repository to the registry 13

Docker Terminology Image pull: Download image from repository push: push an image or a repository to the registry build: an Image from a Dockerfile images: List all local images run: Create a container from an image and execute a command in it tag: Tag an image save: Save an image(s) to a tar archive load: Load an image from a tar archive on STDIN rmi: Delete a local image 14

Docker Terminology Container ps: List all running containers ps a: List all containers (incl. stopped) exec: Run a command in a running container rename: Rename an existing container start: Start a stopped container stop: Stop a running container kill: Kill a running container restart: Restart a running container rm: Delete a container commit: Create an image from a container export: Export a filesystem as a tar archive import: Create an empty filesystem image and import the contents of the tarball into it, then optionally tag it 15

Docker #docker search ubuntu #docker pull ubuntu #docker run ubuntu /bin/echo Hello World Hello World # docker run -i -t ubuntu /bin/bash # docker run -d p 3306:3306 v /data:/var/lib/ mysql mysql mysqld_safe 16

Docker PAE 17

18

Commit Container # docker run it ubuntu /bin/bash # APP # Docker commit [containerid] [image] Dockerfile # # # 19

Dockerfile FROM ubuntu MAINTAINER liuyang yangliu @powerleader.com RUN apt-get update && apt-get install -y nginx COPY app /usr/local/nginx/html/ ADD nginx.conf /etc/nginx/nginx.conf ENV TZ Asia/Shanghai EXPOSE 80 WORKDIR /var/www/html CMD /usr/sbin/nginx # docker build -t imagename. 20

https 443 80 443 Nginx basic auth debug Docker registry HTTP REST API 5000 5001 Registry Registry Images data registry.plcloud.com 21

Docker registry docker / HTTP REST API Nginx https ssl basic authentication 22

APP app app app app app app app app app Network & Discovery C to C 23

Kubernetes Google GO - Kube-scheduler - ReplicationController - Pod-livenessProbe - ReplicationController-replicas - Service - Kube-proxy 24

Kubernetes pod service replicationco ntroller Pod Pod apiserver master scheduler Kubernetes Controller-manager minion kubelet proxy 25

Kube Pod ReplicationController Pod Service proxy Labels,,, Replication Controller Service Load balancer Scale pods Pod N containers Pod N containers 26

Pod kubernetes Pod : Network IP ports space, localhost : Volumes : container Localhost 3306 8080 mysql website nginx map Service Endpoint 27

Pod 28

ReplicationController Pod replica / Rolling upgrade Replace 29

ReplicationController 30

Service dns Docker link, namespace kube-proxy(iptables Nat) 31

Service 32

Label (key/value) pod rc service frontend pod service Label :app=backend pod Label :app=backend Label Selector pod Label :app=backend replicationcontroller Label :app=backend Replica:3 pod Label :app=backend 33

Namespace ResourcesLimits Resourcequota Persistentvolume/Persistentvolumeclaim Secret 34

Etcd key/value Raft kube-apiserver REST API running in master kube-scheduler Pod / kube-controller-manager endpoint-controller replication-controller Kubelet docker kube-proxy Flanneld Docker 35

Internet Firewall Kubecfg user command Minion Docker kubelet cadvisor Proxy Pod Pod Pod APIs Scheduling actuator Authorization authentication REST pods services rep.contollers Kubelet Info service container container container container container container container container container scheduler scheduler Controller manager Distibuted Watchable Storage implemented via etcd Minion Docker Master components Colocated,or spread across machines, As dictated by cluster size kubelet cadvisor Proxy Pod Pod Pod container container container container container container container container container 36

Docker Network --net=host --net=container:name or ID --net=none --net=bridge 37

--net=bridge Container Container Container eth0 eth0 eth0 vethxx vethyy docker0 docker0 172.17.42.1/16 vethzz 38

Flannel CoreOS TCP UDP VxLAN GRE Docker IP 39

# etcdctl get /coreos.com/network/config {"Network": 10.0.0.0/16"} # nohup flanneld --v=0 --logtostderr=false --log_dir=/var/log/k8s -- etcd-endpoints=http://k8s-master:4001 & # cat /run/flannel/subnet.env FLANNEL_SUBNET=10.0.98.1/24 FLANNEL_MTU=1422 FLANNEL_IPMASQ=false # cat /etc/sysconfig/docker OPTIONS='--bip=10.0.98.1/24 --mtu=1422' 40

41

42

emptydir hostpath gcepersistentdisk GCE disk Google Cloud Engine awselasticblockstore GCE disk, AWS EC2 Glusterfs open source networked filesystem NFS - Network File System Rbd ceph PersistentVolumeClaim PV 43

C C C C C C rbd rbd rbd rbd Kubernetes Docker node node NFS 44

C C C 45

PAE Bind+HA+nginx kubectl RSET API Kube-proxy APPUrl Kube-scheduler Kube-apiserver Kubelet Node Docker/Container Ceph Kube-controller Flanneld app1 app1 app1 app app1 app1 app1 app Etcd 46

save/load,export/import Dockerfile COPY/ADD Docker Registry v1/v2 Pod Resource Limits Request NFS Ceph RBD 47

Kube Master pacemaker active-standly-standly OVS APP Zabbix APP ELK 48

谢谢!