Kubernetes Introduction
What is Kubernetes
Kubernetes, also known as K8s, is an open source system for automating deployment, scaling, and management of containerized applications. It groups containers that make up an application into logical units for easy management and discovery. Kubernetes builds upon 15 years of experience of running production workloads at Google, combined with best-of-breed ideas and practices from the community.
Core Features
Automated Rollouts and Rollbacks
Kubernetes progressively rolls out changes to your application or its configuration, while monitoring application health to ensure it doesn't kill all your instances at the same time. If something goes wrong, Kubernetes will rollback the change for you. Take advantage of a growing ecosystem of deployment solutions.
Service Discovery and Load Balancing
No need to modify your application to use an unfamiliar service discovery mechanism. Kubernetes gives Pods their own IP addresses and a single DNS name for a set of Pods, and can load-balance across them.
Storage Orchestration
Automatically mount the storage system of your choice, whether from local storage, a public cloud provider, or a network storage system such as iSCSI or NFS.
Secret and Configuration Management
Deploy and update Secrets and application configuration without rebuilding your image and without exposing Secrets in your stack configuration.
Automatic Bin Packing
Automatically places containers based on their resource requirements and other constraints, while not sacrificing availability. Mix critical and best-effort workloads in order to drive up utilization and save even more resources.
Batch Execution
In addition to services, Kubernetes can manage your batch and CI workloads, replacing containers that fail, if desired.
Self-healing
Kubernetes restarts containers that crash, replaces entire Pods where needed, reattaches storage in response to wider failures, and can integrate with node autoscalers to self-heal even at the node level.
Horizontal Scaling
Scale your application up and down with a simple command, with a UI, or automatically based on CPU usage.
Vertical Scaling
Automatically adjust resource requests and limits based on actual usage patterns.
Extensibility
Add features to your Kubernetes cluster without changing upstream source code.
Architecture Overview
Control Plane
The control plane is responsible for maintaining the overall state of the cluster:
- API Server: The entry point for all RESTful API operations
- etcd: Distributed key-value store for cluster data
- Scheduler: Assigns Pods to appropriate nodes
- Controller Manager: Runs various controllers to maintain cluster state
Worker Nodes
Worker nodes are where containers actually run. Each node contains:
- Kubelet: Communicates with the control plane, manages containers on the node
- Container Runtime: Responsible for running containers (Docker, containerd, etc.)
- Kube Proxy: Handles network proxying and load balancing
Use Cases
Cloud Computing
Kubernetes is open source giving you the freedom to take advantage of on-premises, hybrid, or public cloud infrastructure, letting you effortlessly move workloads to where it matters to you.
Microservices Architecture
Kubernetes is an ideal platform for running microservices, efficiently managing large numbers of independent service instances.
Machine Learning
Kubernetes is a great platform for machine learning because it comes with all the scheduling capabilities needed for ML workloads.
Continuous Deployment
Supports rapid iteration, enabling multiple deployments of application updates per day.
Benefits
Planet Scale
Designed on the same principles that allow Google to run billions of containers a week, Kubernetes can scale without increasing your operations team.
Never Outgrow
Whether testing locally or running a global enterprise, Kubernetes flexibility grows with you to deliver your applications consistently and easily no matter how complex your need is.
Strong Community Support
Kubernetes has a large and rapidly growing ecosystem with wide-ranging services, support, and tools.
Further Learning
- Understand Kubernetes core concepts
- Learn cluster architecture
- Master container technology fundamentals
- Explore storage and network configuration
