kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · kubernetes kubernetes...

65
Kubernetes Introduction

Upload: others

Post on 20-May-2020

41 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

Kubernetes

Introduction

Page 2: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

WOJCIECHBARCZYŃSKI(hiring)SeniorSoftwareEngineerLeadofWarsawTeam-SMACCSystemEngineerbackgroundInterests:workingsoftwareHobby:teachingsoftwareengineering

Page 3: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

BACKGROUNDAtopAIFinTech➡microservicesandk8sBeforerenewtechstackofatopIndonesianmobileecommerce3.5ywithOpenstack,1000+nodes,21datacentersIdonotlikeINFRA:D

Page 4: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

KUBERNETES

Kubernetes-greekforhelmsmanRunandManagescontainersInspiredbyGoogle'sBorgIntegratedwithAWS,GCP,AzureBecominganintegrationplatformforlargeecosystem

ManagesApplicationsnotMachines!

Page 5: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

GOALS

Utilizedresourcesnearly100%Gettoapplications/servicesmindsetEnforcelooselycouplesoftware-12factorapps,Amazon-APIapproachBestpractisesincluded,e.g.,nameservice,metadatadiscovery,...

Page 6: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

CURRENTWINNER

«AmazonjoinedKuberneteson10.08.2017»

Page 7: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

WHYKUBERNETES?DataCenterasaBlackBoxBatteriesforyour(12factor)apps

Page 8: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

WHYKUBERNETES?GiveyoucompletecontroloveryourapplicationwithsimpleyamlconfigfilesUselabelstoauto-wireyourapptomonitoring,logging,andalarmingLetyouto,almostforget,abouttheinfrastructure

Page 9: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

BatteriesLoadBalancingNameServiceDiscoveryMetadataandAnnotationsupportDecoupledinterfaceandimplementationLabeledbasedmatching

Page 10: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

DATACENTERASABLACKBOX

Page 11: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

KUBERNETES

Kubernetes

IngressController

Node

Node

Node

Node

App

DockerImage

ServiceDeployment

k8sconfig:

makedocker_push;kubectlcreate-fapp-srv-dpl.yaml

Page 12: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

SCALEUP!SCALEDOWN!

Kubernetes

IngressController

Node

Node

Node

NodeApp

App

App

scale3x

kubectl--replicas=3-fapp-srv-dpl.yaml

Page 13: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

INGRESSCONTROLLERapi.smacc.io/v1/users➡service:users-v1api.smacc.io/v2/users➡service:users-v2api.smacc.io/accounts➡service:accountssmacc.io➡service:website

Page 14: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

INGRESSCONTROLLER

API

BACKOFFICE1

DATA

WEB

ADMIN

BACKOFFICE2

BACKOFFICE3

API.DOMAIN.COM

DOMAIN.COM/WEB

BACKOFFICE.DOMA

IN.COM

ORCHESTRATORPRIVATENETWORKINTERNET

API

LISTEN

(DOCKER,SWARM,MESOS...)

Page 15: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

ROLLINGUPDATES!

Kubernetes

IngressController

Node

Node

Node

NodeApp

App

App

DockerImagev2

kubectlsetimagedeployment/appapp=app:v2.0.0

Page 16: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

ROLLINGUPDATES!

Kubernetes

IngressController

Node

Node

Node

Node

App

App

DockerImagev2

Page 17: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

ROLLINGUPDATES!

Kubernetes

IngressController

Node

Node

Node

Node

App

App

DockerImagev2

App

Page 18: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

ROLLINGUPDATES!

Kubernetes

IngressController

Node

Node

Node

NodeApp

App

App

DockerImagev2

Page 19: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

LOADBALANCING

KubernetesWorker

KubernetesWorker

KubernetesWorker

Node

Port30000

Node Node

App

App

KubernetesWorker

Node

App

<<Requests>>

B

Service

Port30000

Port30000

Port30000

LoadBalancer

Page 20: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

RESISTANCE!

Kubernetes

IngressController

Node

Node

Node

NodeApp

App

App

Page 21: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

RESISTANCE!

Kubernetes

IngressController

Node

Node

NodeApp

App

App

Page 22: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

RESISTANCE!WhenthenodediesinflamesWhenotherapps(withhigherguaranteedquotas)eatsallmemoryWhenyouneedtodrainnodesbeforeupgradeYoucaneasilyscaleup,createmachineandjoinittocluster(easierwithkopsoronGCE)

Page 23: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

FEDERATION

GlobalLoadBalancer

App App App

On-premisePoland

Amazoneu-west-1

Googleasia-southeast1

Page 24: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

MUCHMOREPlug-and-playintegrations:

integrationwithAWS,GoogleCloudPlatform,andAzuremultipledriversfornetwork,storage,...youcanrunonminikube

Page 25: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

MUCHMOREKubernetesadministratedwithkubernetes:

everythingruninpodse.g.,youdeployyourlogcollectorsfork8saspods:http://wbarczynski.pl/centralized-logging-for-kubernetes-with-fluentd-and-elasticsearch/

Page 26: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

BASICCONCEPTS

Name Purpose

Service Interface ServiceName,port,labels,annotations

Deployment Factory Howmanypodswithwhichdockerimages,labels

Pod Implementation 1+dockerimagesrunningin1pod

Page 27: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

BASICCONCEPTSconfig/secret➡configandfilesingress-controller➡urlpattern➡service

Page 28: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

SERVICEservice.yaml:

apiVersion:v1kind:Servicemetadata:name:api-statusspec:ports:-port:80protocol:TCPselector:app:api-status

Page 29: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

SERVICE#createtheserviceanddeploymentkubectlcreate-fapi-status-srv.yamlkubectlcreate-fapi-status-dpl.yaml

#gettoarunningdocker(inapod)kubectl-itexecapp-999-8zh1p/bin/bash

#checkwhethernameserviceworkscurlhttp://api-status/healthOK

Page 30: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

BASICCONCEPTS

Service

Pods

Labels

Deployment Deployment

<<Creates>><<Creates>>

ServiceNameServicePort

Page 31: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

deployment.yamlapiVersion:apps/v1beta1kind:Deploymentmetadata:name:api-status-nginxapp:api-statusspec:replicas:1template:metadata:labels:name:api-status-nginxapp:api-statusspec:containers:-name:nginximage:nginx

Page 32: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

CONFIGenvvariablesindeployment:

env:-name:SEARCH_ENGINE_USERvalue:mighty_mouse

Page 33: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

CONFIGfeedenvsfromconfigmaps:

env:-name:SEARCH_ENGINE_USERvalueFrom:configMapKeyRef:name:my-configkey:search.user

Page 34: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

CONFIGyoucanshipfilesusingconfigmaps/secrets

kubectlcreateconfigmapmy-config-file--from-file=config.json

Page 35: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

CONFIGYoucanalsorunyourown:

HashiCorpConsuloretcdHashiCorpVault

Page 36: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

METADATAANDANNOTATIONSAuto-wiringPrecisediscoveryReportingLabelingtargetsforsecurityscansLabelingcriticalservicesforoncall(seealertmanager)

Page 37: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

MONITORINGWITHKUBERNETESYoudeployamemcachedExposeditsprometheusmetricsonmetrics/Howtoshipmetrics?

Page 38: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

ANNOTATIONS!memcached-0-deployment.yaml

https://github.com/skarab7/kubernetes-memcached

---apiVersion:v1kind:Servicemetadata:name:memcached-0labels:app:memcachedkubernetes.io/name:"memcached"role:shard-0tier:backendannotations:prometheus.io/scrape:"true"prometheus.io/scheme:"http"prometheus.io/path:"metrics"prometheus.io/port:"9150"

Page 39: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

INGRESSCONTROLLERWITHTRAEFIK?

Page 40: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

ANNOTATIONS!Usetraefikinsteadofbuilt-inreverseproxy

apiVersion:extensions/v1beta1kind:Ingressmetadata:name:api-statusnamespace:productionannotations:kubernetes.io/ingress.class:traefikspec:rules:-host:api.example.comhttp:paths:-path:/statusbackend:serviceName:api-status

Page 41: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

LABELS!Monitoringrulethatuseslabels:

AlertManager

ALERTProductionAppServiceInstanceDownIFup{environment="production",app=~".+"}==0FOR4mANNOTATIONS{summary="Instanceof{{$labels.app}}isdown",description="Instance{{$labels.instance}}ofapp{{$labels.app}}hasbeendownformorethan4minutes"}

Page 42: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

LABELS!Callsbifthelabelisseverity=page:

AlertManager

group_by:[cluster]#Ifanalertisn'tcaughtbyaroute,sendittothepager.receiver:team-pagerroutes:-match:severity:pagereceiver:team-pager

receivers:-name:team-pageropsgenie_configs:-api_key:$API_KEYteams:example_team

Page 43: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

THEREISSOMUCHMOREresourcequotaseventsinKubernetesreadinessprobeslivenessprobesvolumesstatefulnamespaces...

Page 44: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

KUBERENTESAwesomecommand-lineResilientplatformsimpleYAMLfilestosetupyourservice,servicediscoveryincludedannotationsandmetadatadiscoveryincluded

Page 45: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

0.1➡1.0Yourcomponentneedstogetmuchmoresmarter.

Page 46: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

SERVICESELF-CONSCIOUSNESSYourendpoint:

metrics/alertrules/-[WIP]health/orhealthz/info/

Page 47: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

DEEPLOOKINSIDEwhenIamreadytoserverequestswhenIneedtorestartmyselfwhattodowhendependentservicesaredown...

Page 48: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

DEEPLOOKINSIDEAmIreallystateless?Caching?fail-fast,startfast

Page 49: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

RELATIONSWITHOTHERSmaster-workerrelationshipswaitingforotherresources/services

Page 50: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

12FACTORAPPSfindservicesbynameorURImovetheimportantconfigtoenvironmentvariables

Page 51: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

LOGGINGlogstashjsonformatmakeconfigurablewithENVvariable

EFKorELK

Page 52: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

WHATWITHYOURDATABASESKeepitinaseparated(k8s)clusterThebest,gowithDaaSWithStateful,youcanrunyourdbink8s

Longdiscussion...

Page 53: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

MIGRATIONOFENVStaging,production,canary,green/blue...:

Ifyouhave$$$,haveaseparatedk8sclusterIfnot,useNamespaces

Page 54: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

APPSINNEWWORLD12factorapps(Heroku,2012)muchmuchsmartermuchfastermuchmorepredictablemuchhardertodevelop:DForgingexperienceintocode[WIP]:https://github.com/microdevs

Page 55: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

THANKYOU

Page 56: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

(hiring)WojciechBarczyński([email protected])

Page 57: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

Backupslides

Page 58: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

6+1STEPSThebig1-makingyourappsmarter

Page 59: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

1.CLEANUPSinglescriptforrepo-Makefile[1]ResurrecttheREADME

[1]Withzshorbashauto-completionplugininyourterminal.

Page 60: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

2.GETBACKALLTHEKNOWLEDGEPuppet,Chef,...➡DockerfileChecktheinstances➡Dockerfile,README.rstNagios,...➡README.rst,checks/

Page 61: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

3.INTRODUCERUN_LOCALmakerun_localAnicesectiononhowtoruninREADME.rstUse:docker-compose

Themostcrucialpoint.

Page 62: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

4.GETTOKUBERNETESmakekube_create_configmakekube_applyGeneratetheyamlfilesifyourenvsdiffer

Page 63: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

5.CONTINUOUSDEPLOYMENTSimplecomponents:

testcode,builddocker,pushtodockerreporuntherollingupdate:kubectlsetimagedeployment/api-statusnginx=nginx:1.9.1IuseTravisCI

Page 64: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

5.CONTINUOUSDEPLOYMENTComplexcomponents:

withlabel-basedmatching,theskyisthelimit

Page 65: Kubernetes - pywaw.orgpywaw.org/media/slides/pywaw-70-kubernetes-taking... · KUBERNETES Kubernetes - greek for helmsman Run and Manages containers Inspired by Google's Borg Integrated

6.KEEPITRUNNINGBrigdethenewwithold:

Youcanaddyourexternalserviestothek8sNameServiceYoucanbridgeKubernetesservicestoyourServiceDiscovery[1]

[1]YoucansubscribetoK8Seventstokeep,e.g.,yourconsulinsync