万本电子书0元读

万本电子书0元读

顶部广告

DevOps with Kubernetes电子书

售       价:¥

28人正在读 | 0人评论 6.2

作       者:Hideto Saito,Hui-Chuan Chloe Lee,Cheng-Yang Wu

出  版  社:Packt Publishing

出版时间:2017-10-16

字       数:41.1万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Learn to implement DevOps using Docker & Kubernetes. About This Book ? Learning DevOps, container, and Kubernetes within one book. ? Leverage Kubernetes as a platform to deploy, scale, and run containers efficiently. ? A practical guide towards container management and orchestration Who This Book Is For This book is targeted for anyone, who wants to learn containerization and clustering in a practical way using Kubernetes. No prerequisite skills required, however, essential DevOps skill and public/private Cloud knowledge will accelerate the reading speed. If you’re advanced readers, you can also get a deeper understanding of all the tools and technique described in the book. What You Will Learn ? Learn fundamental and advanced DevOps skills and tools ? Get a comprehensive understanding for container ? Learn how to move your application to container world ? Learn how to manipulate your application by Kubernetes ? Learn how to work with Kubernetes in popular public cloud ? Improve time to market with Kubernetes and Continuous Delivery ? Learn how to monitor, log, and troubleshoot your application with Kubernetes In Detail Containerization is said to be the best way to implement DevOps. Google developed Kubernetes, which orchestrates containers efficiently and is considered the frontrunner in container orchestration. Kubernetes is an orchestrator that creates and manages your containers on clusters of servers. This book will guide you from simply deploying a container to administrate a Kubernetes cluster, and then you will learn how to do monitoring, logging, and continuous deployment in DevOps. The initial stages of the book will introduce the fundamental DevOps and the concept of containers. It will move on to how to containerize applications and deploy them into. The book will then introduce networks in Kubernetes. We then move on to advanced DevOps skills such as monitoring, logging, and continuous deployment in Kubernetes. It will proceed to introduce permission control for Kubernetes resources via attribute-based access control and role-based access control. The final stage of the book will cover deploying and managing your container clusters on the popular public cloud Amazon Web Services and Google Cloud Platform. At the end of the book, other orchestration frameworks, such as Docker Swarm mode, Amazon ECS, and Apache Mesos will be discussed. Style and approach Readers will be taken through fundamental DevOps skills and Kubernetes concept and administration with detailed examples. It introduces comprehensive DevOps topics, including microservices, automation tools, containers, monitoring, logging, continuous delivery, and popular public cloud environments. At each step readers will learn how to leverage Kubernetes in their everyday lives and transform their original delivery pipeline for fast and efficient delivery.
目录展开

Title Page

Copyright

DevOps with Kubernetes

Credits

About the Authors

About the Reviewer

www.PacktPub.com

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

Introduction to DevOps

Software delivery challenges

Waterfall and physical delivery

Agile and electrical delivery

Software delivery on the cloud

Continuous Integration

Continuous Delivery

Configuration management

Infrastructure as code

Orchestration

Trend of microservices

Modular programming

Package management

MVC design pattern

Monolithic application

Remote Procedure Call

RESTful design

Microservices

Automation and tools

Continuous Integration tool

Continuous Delivery tool

Monitoring and logging tool

Communication tool

Public cloud

Summary

DevOps with Container

Understanding container

Resource isolation

Linux container concept

Containerized delivery

Getting started with container

Installing Docker for Ubuntu

Installing Docker for CentOS

Installing Docker for macOS

Container life cycle

Docker basics

Layer, image, container, and volume

Distributing images

Connect containers

Working with Dockerfile

Writing your first Dockerfile

Dockerfile syntax

Organizing a Dockerfile

Multi-containers orchestration

Piling up containers

Docker Compose overview

Composing containers

Summary

Getting Started with Kubernetes

Understanding Kubernetes

Kubernetes components

Master components

API server (kube-apiserver)

Controller Manager (kube-controller-manager)

etcd

Scheduler (kube-scheduler)

Node components

Kubelet

Proxy (kube-proxy)

Docker

Interaction between Kubernetes master and nodes

Getting started with Kubernetes

Preparing the environment

kubectl

Kubernetes resources

Kubernetes objects

Namespace

Name

Label and selector

Annotation

Pods

ReplicaSet (RS) and ReplicationController (RC)

Deployments

Services

Volumes

Secrets

ConfigMap

Using ConfigMap via volume

Using ConfigMap via environment variables

Multi-containers orchestration

Summary

Working with Storage and Resources

Kubernetes volume management

Container volume lifecycle

Sharing volume between containers within a pod

Stateless and stateful applications

Kubernetes Persistent Volume and dynamic provisioning

Persistent Volume claiming the abstraction layer

Dynamic Provisioning and StorageClass

A problem case of ephemeral and persistent setting

Replicating pods with a Persistent Volume using StatefulSet

Persistent Volume example

Elasticsearch cluster scenario

Elasticsearch master node

Elasticsearch master-eligible node

Elasticsearch data node

Elasticsearch coordinating node

Kubernetes resource management

Resource Quality of Service

Configuring the BestEffort pod

Configuring as the Guaranteed pod

Configuring as Burstable pod

Monitoring resource usage

Summary

Network and Security

Kubernetes networking

Docker networking

Container-to-container communications

Pod-to-pod communications

Pod communication within the same node

Pod communication across nodes

Pod-to-service communications

External-to-service communications

Ingress

Network policy

Summary

Monitoring and Logging

Inspecting a container

Kubernetes dashboard

Monitoring in Kubernetes

Application

Host

External resources

Container

Kubernetes

Getting monitoring essentials for Kubernetes

Hands-on monitoring

Meeting Prometheus

Deploying Prometheus

Working with PromQL

Discovering targets in Kubernetes

Gathering data from Kubernetes

Seeing metrics with Grafana

Logging events

Patterns of aggregating logs

Collecting logs with a logging agent per node

Running a sidecar container to forward logs

Ingesting Kubernetes events

Logging with Fluentd and Elasticsearch

Extracting metrics from logs

Summary

Continuous Delivery

Updating resources

Triggering updates

Managing rollouts

Updating DaemonSet and StatefulSet

DaemonSet

StatefulSet

Building a delivery pipeline

Choosing tools

Steps explained

env

script

after_success

deploy

Gaining deeper understanding of pods

Starting a pod

Liveness and readiness probes

Init containers

Terminating a pod

Handling SIGTERM

SIGTERM is not forwarded to the container process

SIGTERM doesn't invoke the termination handler

Container lifecycle hooks

Placing pods

Summary

Cluster Administration

Kubernetes namespaces

Default namespaces

Create a new namespace

Context

Create a context

Switch the current context

ResourceQuota

Create a ResourceQuota for a namespace

Request pods with default compute resource limits

Delete a namespace

Kubeconfig

Service account

Authentication and authorization

Authentication

Service account authentication

User account authentication

Authorization

Attribute-based access control (ABAC)

Role-based access control (RBAC)

Roles and ClusterRoles

RoleBinding and ClusterRoleBinding

Admission control

Namespace life cycle

LimitRanger

Service account

PersistentVolumeLabel

DefaultStorageClass

ResourceQuota

DefaultTolerationSeconds

Taints and tolerations

PodNodeSelector

AlwaysAdmit

AlwaysPullImages

AlwaysDeny

DenyEscalatingExec

Other admission controller plugins

Summary

Kubernetes on AWS

Introduction to AWS

Public cloud

API and infrastructure as code

AWS components

VPC and subnet

Internet gateway and NAT-GW

Security group

EC2 and EBS

Route 53

ELB

S3

Setup Kubernetes on AWS

Install kops

Run kops

Kubernetes cloud provider

L4 LoadBalancer

L7 LoadBalancer (ingress)

StorageClass

Maintenance Kubernetes cluster by kops

Summary

Kubernetes on GCP

Introduction to GCP

GCP components

VPC

Subnets

Firewall rules

VM instance

Load balancing

Health check

Backend service

Creating a LoadBalancer

Persistent Disk

Google Container Engine (GKE)

Setting up your first Kubernetes cluster on GKE

Node pool

Multi zone cluster

Cluster upgrade

Kubernetes cloud provider

StorageClass

L4 LoadBalancer

L7 LoadBalancer (ingress)

Summary

What's Next

Exploring the possibilities of Kubernetes

Mastering Kubernetes

Job and CronJob

Affinity and anti-affinity between pods and nodes

Auto-scaling of pods

Prevention and mitigation of pod disruptions

Kubernetes federation

Cluster add-ons

Kubernetes and communities

Kubernetes incubator

Helm and charts

Gravitating towards a future infrastructure

Docker swarm mode

Amazon EC2 container service

Apache Mesos

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部