Kubernetes
Kubernetes
Purpose:
Its primary focus is to automate the deployment of applications inside
software containers and the automation of operating system level
virtualization on Linux. It's more lightweight than standard Containers
and boots up in seconds. A Docker image contains application code,
libraries, tools, dependencies and other files needed to make an
application run. When a user runs an image
KUBERNETES
History:
Kubernetes is an open-source container orchestration platform that was
first developed by Google in 2014. It was initially created as a result of
the company's experience with managing large-scale containerized
workloads, and it was built on top of the lessons learned from Google's
internal container orchestration system called Borg
COMPONENTS
• Etcd
• API Server (Kubectl)
• Controller Manager
• Scheduler
• Kubelet
• Container Runtime
• CNI
• Ingress
• Storage
ETCD
Ingress exposes HTTP and HTTPS routes from outside the cluster
to services within the cluster. Traffic routing is controlled by rules
defined on the Ingress resource
https://
github.com/kubernetes/ingress-nginx/blob/main/docs/exam
ples/rewrite/README.md
RESOURCE OBJECT IN
KUBERNETES
1. Deployment
The Deployment Controller changes the actual state to the
desired state at a controlled rate. You can define Deployments
to create new ReplicaSets, or to remove existing Deployments
and adopt all their resources with new Deployments
2. ReplicaSet
A replica set contains several data bearing nodes and
optionally one arbiter node. Of the data bearing nodes, one and
only one member is deemed the primary node, while the other
nodes are deemed secondary nodes
3. Pod
Pods are simply the smallest unit of execution in
Kubernetes, consisting of one or more containers
K8S DEPLOYMENT IN ACTION
PROBE
S
Its a mechanism provided by Kubernetes which helps determine
if applications running within containers are operational. There
are commonly three types of probes:
1. Liveness
2. Readiness
3. Startup
PROBE
S
Its a mechanism provided by Kubernetes which helps determine
if applications running within containers are operational. There
are commonly three types of probes:
1. Liveness
2. Readiness
3. Startup
Liveness
SERVICE
You can create the Secret by passing the raw data in the command, or
by storing the credentials in files that you pass in the command
ls /etc/secret-volume
To perform a rolling update, simply update the image of your pods using
kubectl set image. This will automatically trigger a rolling update.