---
# System prepended metadata

title: Kubernetes and DevOps
tags: [kubernetes]

---

Kubernetes and DevOps
===
###### tags: `kubernetes`

## K8S Introduction
#### Whats K8S
+ is Greek for captain or pilot
+ from Google
+ production-grade, open-source platform, container orchestration

#### Why K8S
+ Auto binpacking
+ Horizontal scaling
+ Auto rollouts and rollback
+ Server monitor
+ Self-healing
+ Service discovery and load balancing
+ writen in Go

#### K8S Architecture
![](https://i.imgur.com/JBtUCYP.png)

#### etcd
+ Distributed key, value store
+ Used for configuration and monitoring store
+ Used for Service discovery
+ JSON/REST API

#### FLANNEL
+ a VIRUAL NETWORK THAT GIVES A SUBNET TO EACH HOST FOR USE WITH CONTAINER RUNTIMES

![](https://i.imgur.com/LJ0KFPE.png)

#### The Key Concept
+ Nodes
    + worker machine, vm or physical machine
    + more then one pods
    
+ Pods
    + A group of one or more containers
    + Containers within a pod share iP, port, namespaces and volumes
    + K8S最小單位，scale的單位

+ Service
+ Label
+ Namespace
    + Group + segment pods, rcs, volumes and secrets from each other
+ Deployment (Replication Controller)

## Scaling and Upgrading with K8S


## Resources and References
+ [Play with Kubernetes](https://labs.play-with-k8s.com)

+ [Hands-on](https://hackmd.io/s/BJdd9K5wz#Kubernetes-and-DevOps-Hands-On-%E6%96%B0%E7%AB%B9Agile)

+ Agile Summit 6/28~29

