Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!
We spend hours on Instagram and YouTube and waste money on coffee and fast food, but wonβt spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!
Learn from Guru Rajesh Kumar and double your salary in just one year.
What is Kubernetes?
β Launched by Google
β Part of CNCF
β Written in golang
β Kubernetes is a container orchestrator, and helps to manage containerized applications
β Helps in workload placement on different nodes
β Does infrastructure abstraction
β Maintains desired state.
Why Kubernetes?
β speed of deployment
β ability of absorb changes
β ability to recover quickly
β We can deploy a scalable solution using kubernetes
β hide complexity in the cluster
How Kubernetes works?
Components of Kubernetes:
kube-apiserver
β front-end to the control plane.
β expose the Rest API
β uses JSON format
CLuster Store
β Persistent storage cluster state and config
β uses etcd
β Distributed .. consistent .. watchable
kube-controller-manager
Controls different controllers:
β node controller
β endpoint controller
β namespace controller
Watchers the changes
Helps maintain desired state
Kube-scheduler
keep watching api-server
api-server assign work to scheduler.
Assignment of work to worker nodes
β affinity
β constraint
β resources
What is POD?
β- Compute unit
β running in worker node
β pod is instantiated not created by Kubelet
β Atomic unit of scheduling
β Pods cannot be re-deployed
β Contains one or more containers.
β Live till the container is live
β Lifecycle: pending β> running β> Failed / Succeed