Coder Social home page Coder Social logo

kubernetesinaction's Introduction

Kubernetes In Action

Chapter1 Kubernetes Introduction

MicroService -> Same environment

Kubernetes:

  • API server
  • Scheduler
  • Controller Manager
  • etcd
  • Kubelet
  • kube-proxy

Chapter3 Pod

  • nodeSelector
  • label
  • annotation

Custom-Namespace

kubectl explain

Chapter4 Set

liveness probe

  • HTTP GET
  • TCP
  • Exec

ReplicationController(Deprecated)

  • selector
  • template
  • replicas

ReplicaSet

  • matchLabels
  • matchExpressions (In,NotIn,Exits,DoesNotExits)

DaemonSet

  • matchLabels

Job

  • restartPolicy(Always,OnFailure,Never)
  • completions
  • parallelism

CronJob

  • schedule
  • startingDeadlineSeconds

Chapter5 Service

Service

  • sessionAffinity (ClientIP,None)
  • name

EndPoint

  • subset:address

ExternalName

Expose Service to the external client

  • NodePort
  • LoadBalance
  • Ingress (rules,host,paths)

Readiness probe

  • Exec
  • HTTP GET
  • TCP Socket

headless Service

ClusterIp: None

publishNotReadyAddresses

Chapter6 Volume

  • emptyDir
  • hostPath
  • gitRepo
  • nfs
  • configMap,secret,downwardAPI
  • persistentVolumeClaim

PersistentVolume

PersistentVolumeClaim

StorageClass

Chapter7 ConfigMap and Secret

  • command
  • args
  • env

ConfigMap

configMap-volume

Secret

  • stringData
  • data
  • docker-registry

Chapter8 Access pod meta data

DownwardAPI

  • pod Name
  • pod IP
  • pod nameSpace
  • pod Node name
  • pod ServiceAccount
  • pod CPU/Memory request
  • pod CPU/Memory limit
  • pod label
  • pod annotation

Interact with Kubernetes API

  • kubectl proxy
  • ambassador

Chapter9 Deployment

Deployment -> ReplicaSet -> Pod

RollingUpdate Recreate

minReadySeconds

maxSurge, maxUnavailable

Chapter 10 StatefulSet

at-most-one

volumeClaimTemplate

Chapter11 Kubernetes mechanism

  • etcd
  • control plane
  • API Server
  • Scheduler
  • Controller
  • Kubelet
  • Kubernetes Service Proxy -> iptables

Addons: DNS server, Ingress controller

High Availability

Chapter12 Kubernetes Security

  • ServiceAccount
  • RBAC
  • Role, Role binding
  • ClusterRole, ClusterRoleBinding

Chapter13 Cluster Security

Security Context:

  • privileged
  • runAsUser
  • capabilities

PodSecurityPolicy

NetWorkPolicy

  • ingress
  • egress

Chapter14 Resource manage

resource -> request (cpu,memory) -> limits Qos(Quality of Service)

  • BestEffort
  • Burstable
  • Guaranteed

LimitRange

ResourceQuota

Metrics-Server

Chapter15 Auto-Scale

kubectl autoscale

HPA(Horizontal Pod Autoscaler)

Cluster Autoscaler

Advanced Scheduler

Taints

  • NoSchedule
  • PreferNoSchedule
  • NoExecute

tolerations

nodeAffinity

podAffinity/podAntiAffinity

Best Practice

life-cycle

initContainers

Post-start/Pre-stop hook

Extension

CRD (customer resource definition)

Custom Controller

aggregation API Server

Helm

kubernetesinaction's People

Contributors

lee15946 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.