11

Click here to load reader

Cordoba Docker meetup #7: Kubernetes

Embed Size (px)

Citation preview

Page 1: Cordoba Docker meetup  #7: Kubernetes

Kubernetes“Deploying the cool way”

Bazán, Jonathan MaximilianoMentasti, Lisandro JoaquínSalonia, Franco Ariel

Page 2: Cordoba Docker meetup  #7: Kubernetes

about.us()

Page 3: Cordoba Docker meetup  #7: Kubernetes

Kubernetes in a nutshell

Kubernetes is an open-source system for automatingdeployment, operations, and scaling of containerizedapplications.

Page 4: Cordoba Docker meetup  #7: Kubernetes

Knowing kubernetes concepts

Pod: a group of containers, tied together for the purposes ofadministration and networking. It can contain a single container ormultiple. Eg: Content syncer & web server

Image: Each container in a pod has its own image. Currently, the only typeof image supported is a Docker Image.

Replication controller: ensures that a specified number of pod “replicas”are running at any one time. In other words, a replication controller makessure that a pod or homogeneous set of pods are always up and available.

Service: an abstraction which defines a logical set of Pods and a policy bywhich to access them.

Page 5: Cordoba Docker meetup  #7: Kubernetes
Page 6: Cordoba Docker meetup  #7: Kubernetes
Page 7: Cordoba Docker meetup  #7: Kubernetes

Run kubernetes master

Page 8: Cordoba Docker meetup  #7: Kubernetes

Why should I use kubernetes?

Automatic binpacking

Horizontal scaling

Automated rollouts and rollbacks

Storage orchestration

Self-healing

Service Discovery and load balancing

Page 9: Cordoba Docker meetup  #7: Kubernetes

How to check my component’s behavior

Page 10: Cordoba Docker meetup  #7: Kubernetes

Hot deploy implementation example10

Corporative registryMy docker registry

“Java Server” Image

Replicas: 2

Version: 0.0.1

Dev environment

Kubernetes master

• Step 1: import image and scale-down replicas• Step 2: change version (rolling-update)• Step 3: scale-up replicas

1

0.0.2

0.0.1 0.0.10.0.2nothing 0.0.2nothing

Page 11: Cordoba Docker meetup  #7: Kubernetes

Less words.. More demo!